Slack integration with GitLab

Receiving event notifications via Incoming Webhooks is a simple way to post messages from GitLab to Slack. In order to set up an incoming webhook integration in your Slack workspace do the following steps:

  1. Click the Slack notifications text in the Settings -> Integrations -> Project services list:

    Screenshot

  2. Select Active checkbox to activate Slack service. Select the triggers you need:

    Screenshot

  3. Go to your Slack appsopen in new window and create new application for incoming webhooks by clicking the green Create New App button:

    Screenshot

  4. On the next screen enter App Name, select Development Slack Workspace and press the Create App button:

    Screenshot

  5. On the next screen Basic Information select the Incoming Webhooks block from the Add features and functionality dropdown:

    Screenshot

  6. Turn on the Activate Incoming Webhooks switch on the Incoming Webhooks screen:

    Screenshot

  7. Click the Add New Webhook to Workspace button at the bottom of the screen:

    Screenshot

  8. Select the Slack channel from the Post to dropdown to authorize (all webhook notifications will be sent to this channel), then click the Authorize button:

    Screenshot

  9. Click the Copy button next to your channel name:

    Screenshot

  10. Return back to Slack notifications screen and paste just copied Webhook URL into the Webhook field. Enter some name for this webhook into Username field and click the Test settings and save changes button:

    Screenshot

  11. Once Slack notifications was successfully configured the indicator Slack notifications turn to the green color:

    Screenshot