summaryrefslogtreecommitdiff
path: root/app/controllers/projects/tags_controller.rb
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-12-21 17:40:14 +0100
committerShinya Maeda <shinya@gitlab.com>2018-12-31 14:34:15 +0900
commit6a2decf5454922441606fce1560389acbbd9eff1 (patch)
tree1434716df04a5a8623943c85bd5b074b53320cee /app/controllers/projects/tags_controller.rb
parenta7aaad96f3cca5be2886bf3e18c81a7b06e5129f (diff)
downloadgitlab-ce-6a2decf5454922441606fce1560389acbbd9eff1.tar.gz
Refactor Release services
CreateReleaseService and UpdateReleaseService now takes all the release attributes as constructor parameters. This will simplify attribute expansion
Diffstat (limited to 'app/controllers/projects/tags_controller.rb')
-rw-r--r--app/controllers/projects/tags_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/tags_controller.rb b/app/controllers/projects/tags_controller.rb
index 35d798c0fda..555e066b810 100644
--- a/app/controllers/projects/tags_controller.rb
+++ b/app/controllers/projects/tags_controller.rb
@@ -48,8 +48,8 @@ class Projects::TagsController < Projects::ApplicationController
if result[:status] == :success
# Release creation with Tags was deprecated in GitLab 11.7
if params[:release_description].present?
- CreateReleaseService.new(@project, current_user)
- .execute(params[:tag_name], params[:release_description])
+ release_params = { tag: params[:tag_name], description: params[:release_description] }
+ CreateReleaseService.new(@project, current_user, release_params).execute
end
@tag = result[:tag]