To enable Slack integration you must create an Incoming WebHooks integration on Slack:
Visit Incoming WebHooks
Choose the channel name you want to send notifications to.
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.
Copy the Webhook URL, we'll need this later for GitLab.
After Slack is ready we need to setup GitLab. Here are the steps to achieve this.
Sign in to GitLab
Pick the repository you want.
Navigate to Settings -> Services -> Slack
Pick the triggers you want to activate and respective channel (
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
- Mark it as active
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.