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
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2019-02-14 13:40:28 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2019-08-26 11:45:37 +0300
commitefafc98bd8ca7d4ed4c86f19325eb2aa51edd227 (patch)
tree3a0c83856bbab2356b06fc1747053413d0b8f99e /lib/api/labels.rb
parent41412f73604159ca735420396df73f7b6eef6f86 (diff)
Move promote to put and add more specs
Diffstat (limited to 'lib/api/labels.rb')
-rw-r--r--lib/api/labels.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/labels.rb b/lib/api/labels.rb
index 9f847c39fac..321ffa241b5 100644
--- a/lib/api/labels.rb
+++ b/lib/api/labels.rb
@@ -70,7 +70,7 @@ module API
params do
requires :name, type: String, desc: 'The name of the label to be promoted'
end
- post ':id/labels/promote' do
+ put ':id/labels/promote' do
authorize! :admin_label, user_project
label = find_label(user_project, params[:name], include_ancestor_groups: false)