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/app
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-07-23 23:01:23 +0300
committerPeter Leitzen <pl@neopoly.de>2018-08-10 17:45:11 +0300
commit7405a7ae5fd9155ef90cc62988214135503eb99b (patch)
treebc5ae82eb4984ea7d4ec0c1abd29ae0d4ef3c6cc /app
parent18611f0eebe0bb3646c7f32bd333b92c184771eb (diff)
Rename Commits::UpdateService to Commits::TagService
Diffstat (limited to 'app')
-rw-r--r--app/services/commits/tag_service.rb (renamed from app/services/commits/update_service.rb)8
-rw-r--r--app/services/notes/quick_actions_service.rb2
2 files changed, 2 insertions, 8 deletions
diff --git a/app/services/commits/update_service.rb b/app/services/commits/tag_service.rb
index 45c971d153a..0d361a3b77b 100644
--- a/app/services/commits/update_service.rb
+++ b/app/services/commits/tag_service.rb
@@ -1,14 +1,8 @@
# frozen_string_literal: true
module Commits
- class UpdateService < BaseService
+ class TagService < BaseService
def execute(commit)
- tag_commit(commit)
- end
-
- private
-
- def tag_commit(commit)
# TODO authorize
return unless params[:tag_name]
diff --git a/app/services/notes/quick_actions_service.rb b/app/services/notes/quick_actions_service.rb
index d183f280d77..4c14d834949 100644
--- a/app/services/notes/quick_actions_service.rb
+++ b/app/services/notes/quick_actions_service.rb
@@ -5,7 +5,7 @@ module Notes
UPDATE_SERVICES = {
'Issue' => Issues::UpdateService,
'MergeRequest' => MergeRequests::UpdateService,
- 'Commit' => Commits::UpdateService
+ 'Commit' => Commits::TagService
}.freeze
def self.noteable_update_service(note)