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

25 lines
424 B
Ruby

# frozen_string_literal: true
module NotificationRecipients
module Builder
class NewRelease < Base
attr_reader :target
def initialize(target)
@target = target
end
def build!
add_recipients(target.project.authorized_users, :custom, nil)
end
def custom_action
:new_release
end
def acting_user
target.author
end
end
end
end