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:
Click the
Slack notifications
text in theSettings -> Integrations -> Project services
list:Select
Active
checkbox to activate Slack service. Select the triggers you need:Go to your Slack appsopen in new window and create new application for incoming webhooks by clicking the green
Create New App
button:On the next screen enter
App Name
, selectDevelopment Slack Workspace
and press theCreate App
button:On the next screen
Basic Information
select theIncoming Webhooks
block from theAdd features and functionality
dropdown:Turn on the
Activate Incoming Webhooks
switch on theIncoming Webhooks
screen:Click the
Add New Webhook to Workspace
button at the bottom of the screen:Select the Slack channel from the
Post to
dropdown to authorize (all webhook notifications will be sent to this channel), then click theAuthorize
button:Click the
Copy
button next to your channel name:Return back to
Slack notifications
screen and paste just copiedWebhook URL
into theWebhook
field. Enter some name for this webhook intoUsername
field and click theTest settings and save changes
button:Once Slack notifications was successfully configured the indicator
Slack notifications
turn to the green color: