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>2015-11-21 20:51:41 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2015-11-21 20:51:41 +0300
commit6f7e90f6dba300591281aba08ffbe30ce3cc5c90 (patch)
treeebc223b60ee1edfe286b457f5888ee95c8c7d940 /lib/api/tags.rb
parentfaef95af1a07bdcfd02eead36d144f332b428f1f (diff)
Use POST to create a new release instead of PUT
Diffstat (limited to 'lib/api/tags.rb')
-rw-r--r--lib/api/tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb
index 0721b9cc844..48f630d58e5 100644
--- a/lib/api/tags.rb
+++ b/lib/api/tags.rb
@@ -48,7 +48,7 @@ module API
# description (required) - Release notes with markdown support
# Example Request:
# PUT /projects/:id/repository/tags/:tag_name/release
- put ':id/repository/tags/:tag_name/release', requirements: { tag_name: /.*/ } do
+ post ':id/repository/tags/:tag_name/release', requirements: { tag_name: /.*/ } do
authorize_push_project
required_attributes! [:description]
result = CreateReleaseService.new(user_project, current_user).