2020-04-08 14:13:33 +05:30
|
|
|
# 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)
|
2022-05-07 20:08:51 +05:30
|
|
|
add_recipients(project.team.owners, :mention, nil)
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def acting_user
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|