@@ -10,7 +12,7 @@ class DiscordService < ChatNotificationService
...
@@ -10,7 +12,7 @@ class DiscordService < ChatNotificationService
end
end
defdescription
defdescription
s_("DiscordService|Receive event notifications in Discord")
s_("DiscordService|Send notifications about project events to a Discord channel.")
end
end
defself.to_param
defself.to_param
...
@@ -18,13 +20,8 @@ class DiscordService < ChatNotificationService
...
@@ -18,13 +20,8 @@ class DiscordService < ChatNotificationService
end
end
defhelp
defhelp
"This service sends notifications about project events to Discord channels.<br />
docs_link=link_to_('How do I set up this service?'),Rails.application.routes.url_helpers.help_page_url('user/project/integrations/discord_notifications'),target: '_blank',rel: 'noopener noreferrer'
To set up this service:
s_('Send notifications about project events to a Discord channel. %{docs_link}').html_safe%{docs_link: docs_link.html_safe}
<ol>
<li><a href='https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks'>Setup a custom Incoming Webhook</a>.</li>
<li>Paste the <strong>Webhook URL</strong> into the field below.</li>
<li>Select events below to enable notifications.</li>
</ol>"
end
end
defevent_field(event)
defevent_field(event)
...
@@ -36,13 +33,12 @@ class DiscordService < ChatNotificationService
...
@@ -36,13 +33,12 @@ class DiscordService < ChatNotificationService
@@ -10,7 +10,8 @@ info: To determine the technical writer assigned to the Stage/Group associated w
...
@@ -10,7 +10,8 @@ info: To determine the technical writer assigned to the Stage/Group associated w
The Discord Notifications service sends event notifications from GitLab to the channel for which the webhook was created.
The Discord Notifications service sends event notifications from GitLab to the channel for which the webhook was created.
To send GitLab event notifications to a Discord channel, create a webhook in Discord and configure it in GitLab.
To send GitLab event notifications to a Discord channel, [create a webhook in Discord](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)