debian-mirror-gitlab/app/services/notification_recipients/builder/attention_requested.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
509 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# 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