debian-mirror-gitlab/app/services/notification_recipients/builder/attention_requested.rb
2022-01-26 12:08:38 +05:30

23 lines
509 B
Ruby

# 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