gitlab-org--gitlab-foss/doc/integration/slack.md

43 lines
1.2 KiB
Markdown
Raw Normal View History

2014-04-24 22:48:22 +00:00
# Slack integration
2014-04-14 00:26:48 +00:00
2014-04-24 22:48:22 +00:00
## On Slack
2014-04-14 00:26:48 +00:00
To enable Slack integration you must create an Incoming WebHooks integration on Slack;
1. [Sign in to Slack](https://slack.com/signin)
1. Select **Configure Integrations** from the dropdown next to your team name.
1. Select the **All Services** tab
1. Click **Add** next to Incoming Webhooks
2014-04-24 22:48:22 +00:00
1. Pick Incoming WebHooks
2014-04-14 00:26:48 +00:00
1. Choose the channel name you want to send notifications to
1. Click **Add Incoming WebHooks Integration**Add Integrations.
- Optional step; You can change bot's name and avatar by clicking modifying the bot name or avatar under **Integration Settings**.
1. Copy the **Webhook URL**, we'll need this later for GitLab.
2014-04-14 00:26:48 +00:00
2014-04-24 22:48:22 +00:00
## On GitLab
2014-04-14 00:26:48 +00:00
After Slack is ready we need to setup GitLab. Here are the steps to achieve this.
2014-04-24 22:48:22 +00:00
1. Sign in to GitLab
1. Pick the repository you want.
1. Navigate to Settings -> Services -> Slack
1. Fill in your Slack details
2014-04-14 00:26:48 +00:00
- Mark it as active
- Paste in the webhook URL you got from Slack
2014-04-14 00:26:48 +00:00
Have fun :)
2014-04-24 22:48:22 +00:00
*P.S. You can set "branch,pushed,Compare changes" as highlight words on your Slack profile settings, so that you can be aware of new commits when somebody pushes them.*