debian-mirror-gitlab/app/services/notification_recipients/builder/project_maintainers.rb
2020-04-08 18:37:08 +05:30

24 lines
428 B
Ruby

# frozen_string_literal: true
module NotificationRecipients
module Builder
class ProjectMaintainers < Base
attr_reader :target
def initialize(target, action:)
@target = target
@action = action
end
def build!
return [] unless project
add_recipients(project.team.maintainers, :mention, nil)
end
def acting_user
nil
end
end
end
end