BigW Consortium Gitlab

slack.md 1.28 KB
Newer Older
1
# Slack integration
2

3
## On Slack
4

5
To enable Slack integration you must create an Incoming WebHooks integration on Slack:
6

7 8
1.  [Sign in to Slack](https://slack.com/signin)

9
1.  Visit [Incoming WebHooks](https://my.slack.com/services/new/incoming-webhook/)
10 11

1.  Choose the channel name you want to send notifications to.
12

13
1.  Click **Add Incoming WebHooks Integration**
14 15 16 17
    - 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.

18

19
## On GitLab
20 21 22

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

23 24 25 26 27 28
1.  Sign in to GitLab

1.  Pick the repository you want.

1.  Navigate to Settings -> Services -> Slack

29
1. Pick the triggers you want to activate
30

31 32 33 34
1.  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
35
    - Mark it as active
36 37
    
1. Save your settings
38 39 40

Have fun :)

41
*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.*