debian-mirror-gitlab/app/models/integrations/slack.rb

32 lines
536 B
Ruby
Raw Normal View History

2021-09-04 01:27:46 +05:30
# frozen_string_literal: true
module Integrations
2023-01-13 00:05:48 +05:30
class Slack < BaseSlackNotification
2021-09-04 01:27:46 +05:30
include SlackMattermostNotifier
def title
'Slack notifications'
end
def description
'Send notifications about project events to Slack.'
end
def self.to_param
'slack'
end
2023-01-13 00:05:48 +05:30
override :webhook_help
def webhook_help
2021-09-04 01:27:46 +05:30
'https://hooks.slack.com/services/…'
end
2023-03-04 22:38:38 +05:30
private
override :metrics_key_prefix
def metrics_key_prefix
'i_ecosystem_slack_service'
end
2021-09-04 01:27:46 +05:30
end
end