Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-01 16:11:11 +0300
committerRémy Coutable <remy@rymai.me>2017-06-01 16:11:11 +0300
commitf07aee72bef4604312e11a43fce3a47865bce100 (patch)
treea7adcdbe50246caf24dc27a16db397a7b8d34483 /lib
parent483d88a9cdc8dc8f699b962c206eaa007aa370ef (diff)
parent00893f31b32bd5118e8d7eea3e0e90fe8fa90cb8 (diff)
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')
-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!