diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-17 12:11:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-17 12:11:44 +0300 |
commit | e750680e89a6f98803709c172943962741eeb9e7 (patch) | |
tree | d3e28a3692460fb37c4891d646220d06e68dfa3d /app/services/notification_recipients | |
parent | a17e8b168778e5a107928671fd2829ab284e612d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notification_recipients')
-rw-r--r-- | app/services/notification_recipients/build_service.rb | 4 | ||||
-rw-r--r-- | app/services/notification_recipients/builder/attention_requested.rb | 23 |
2 files changed, 0 insertions, 27 deletions
diff --git a/app/services/notification_recipients/build_service.rb b/app/services/notification_recipients/build_service.rb index e63e19e365c..bdeebc641b8 100644 --- a/app/services/notification_recipients/build_service.rb +++ b/app/services/notification_recipients/build_service.rb @@ -36,9 +36,5 @@ module NotificationRecipients def self.build_requested_review_recipients(*args) ::NotificationRecipients::Builder::RequestReview.new(*args).notification_recipients end - - def self.build_attention_requested_recipients(*args) - ::NotificationRecipients::Builder::AttentionRequested.new(*args).notification_recipients - end end end diff --git a/app/services/notification_recipients/builder/attention_requested.rb b/app/services/notification_recipients/builder/attention_requested.rb deleted file mode 100644 index cdc371fcece..00000000000 --- a/app/services/notification_recipients/builder/attention_requested.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module NotificationRecipients - module Builder - class AttentionRequested < Base - attr_reader :merge_request, :current_user, :user - - def initialize(merge_request, current_user, user) - @merge_request = merge_request - @current_user = current_user - @user = user - end - - def target - merge_request - end - - def build! - add_recipients(user, :mention, NotificationReason::ATTENTION_REQUESTED) - end - end - end -end |