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-04-06 13:11:31 +0300
committerRémy Coutable <remy@rymai.me>2017-04-06 13:11:31 +0300
commitd7e3f2322fd0ad632687f2f27a1cf2aac5474ac9 (patch)
tree43be97aec914f2331f262f4de9c542fd93c84406 /lib
parent38c90cdcacaa9a75944aced2eede8fe9c7224040 (diff)
parent4865a7ab92bd74f6376d50be4dd3b2e3937c5841 (diff)
Merge branch '30021-api-deploy_keys-can_push-is-not-honoured' into 'master'
Enable creation of deploy keys with write access via the API Closes #30021 See merge request !10488
Diffstat (limited to 'lib')
-rw-r--r--lib/api/deploy_keys.rb1
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!