Module: Integrations::Base::SlackNotification
Constant Summary
collapse
- SUPPORTED_EVENTS_FOR_USAGE_LOG =
%w[
push issue confidential_issue merge_request note confidential_note tag_push wiki_page deployment
].freeze
ChatNotification::EVENT_CHANNEL, ChatNotification::GROUP_ONLY_SUPPORTED_EVENTS, ChatNotification::LABEL_NOTIFICATION_BEHAVIOURS, ChatNotification::SECRET_MASK, ChatNotification::SUPPORTED_EVENTS, ChatNotification::SUPPORTED_EVENTS_FOR_LABEL_FILTER
Instance Method Summary
collapse
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
#api_field_names, #channel_limit_per_event, #confidential_issue_channel, #confidential_note_channel, #event_channel_name, #event_channel_names, #event_channel_value, #execute, #fields, #form_fields, #initialize_properties, #mask_configurable_channels?, #sections, #webhook_help
#notify_for_branch?
Instance Method Details
#configurable_channels? ⇒ Boolean
52
53
54
|
# File 'app/models/concerns/integrations/base/slack_notification.rb', line 52
def configurable_channels?
true
end
|
#default_channel_placeholder ⇒ Object
33
34
35
|
# File 'app/models/concerns/integrations/base/slack_notification.rb', line 33
def default_channel_placeholder
_('#general, #development')
end
|
#get_message(object_kind, data) ⇒ Object
38
39
40
41
42
|
# File 'app/models/concerns/integrations/base/slack_notification.rb', line 38
def get_message(object_kind, data)
return Integrations::ChatMessage::AlertMessage.new(data) if object_kind == 'alert'
super
end
|
#supported_events ⇒ Object
45
46
47
48
49
|
# File 'app/models/concerns/integrations/base/slack_notification.rb', line 45
def supported_events
additional = group_level? ? %w[group_mention group_confidential_mention] : []
(super + additional).freeze
end
|