summaryrefslogtreecommitdiff
path: root/lib/api/v3
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-01 13:11:11 +0000
committerRémy Coutable <remy@rymai.me>2017-06-01 13:11:11 +0000
commitf07aee72bef4604312e11a43fce3a47865bce100 (patch)
treea7adcdbe50246caf24dc27a16db397a7b8d34483 /lib/api/v3
parent483d88a9cdc8dc8f699b962c206eaa007aa370ef (diff)
parent00893f31b32bd5118e8d7eea3e0e90fe8fa90cb8 (diff)
downloadgitlab-ce-f07aee72bef4604312e11a43fce3a47865bce100.tar.gz
Merge branch 'bugfix/deploy_keys__can_push__usage_in_api' into 'master'
Add missing `can_push` parameter to POST /v3/deploy_keys See merge request !11607
Diffstat (limited to 'lib/api/v3')
-rw-r--r--lib/api/v3/deploy_keys.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/v3/deploy_keys.rb b/lib/api/v3/deploy_keys.rb
index bbb174b6003..b90e2061da3 100644
--- a/lib/api/v3/deploy_keys.rb
+++ b/lib/api/v3/deploy_keys.rb
@@ -41,6 +41,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/#{path}" do
params[:key].strip!