gitlab-org--gitlab-foss/doc/integration/slack.md
2016-01-25 13:06:09 +00:00

1.5 KiB

Slack integration

On Slack

To enable Slack integration you must create an Incoming WebHooks integration on Slack;

  1. Sign in to Slack

  2. Select Apps & Custom Integrations from the dropdown next to your team name.

  3. Click the Configure link (right-upper corner).

  4. Select the Custom integrations tab.

  5. Click the Incoming WebHooks row.

  6. Click the Add configuration button.

  7. Choose the channel name you want to send notifications to.

  8. Click Add Incoming WebHooks Integration

    • Optional step; You can change bot's name and avatar by clicking modifying the bot name or avatar under Integration Settings.
  9. Copy the Webhook URL, we'll need this later for GitLab.

On GitLab

After Slack is ready we need to setup GitLab. Here are the steps to achieve this.

  1. Sign in to GitLab

  2. Pick the repository you want.

  3. Navigate to Settings -> Services -> Slack

  4. Pick the triggers you want to activate

  5. Fill in your Slack details

    • Webhook: Paste the Webhook URL from the step above
    • Username: Fill this in if you want to change the username of the bot
    • Channel: Fill this in if you want to change the channel where the messages will be posted
    • Mark it as active
  6. Save your settings

Have fun :)

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.