diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-04-05 16:22:28 +1000 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-04-05 16:22:28 +1000 |
commit | 4865a7ab92bd74f6376d50be4dd3b2e3937c5841 (patch) | |
tree | 84860e331b7c196b6a117503d072cc0a7d55ca23 /lib/api/deploy_keys.rb | |
parent | ced322c5f6de61c30794140a08fa45b612474850 (diff) | |
download | gitlab-ce-4865a7ab92bd74f6376d50be4dd3b2e3937c5841.tar.gz |
Enable creation of deploy keys with write access via the API
* Documentation was incorrectly advertising the missing param
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r-- | lib/api/deploy_keys.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb index b888ede6fe8..8a54f7f3f05 100644 --- a/lib/api/deploy_keys.rb +++ b/lib/api/deploy_keys.rb @@ -47,6 +47,7 @@ module API params do requires :key, type: String, desc: 'The new deploy key' requires :title, type: String, desc: 'The name of the deploy key' + optional :can_push, type: Boolean, desc: "Can deploy key push to the project's repository" end post ":id/deploy_keys" do params[:key].strip! |