[2024] How to set a notification from GitLab to Slack
I’ll share how to set up notifications to be sent to Slack when triggered by actions such as a push to a GitLab repository!
<Setting Incoming Webhooks in Slack setting>
Here are the steps for setting up in Slack, taken from the official Slack page
1. Create a Slack app (if you don’t have one already)
You won’t get very far without doing this step, but luckily it’s very simple, we even have a nice green button for you to click:
Pick a name, choose a workspace to associate your app with (bearing in mind that you’ll probably be posting lots of test messages, so you might want to create a channel for sandbox use), and then click Create App. If you’ve already created one, you can use it too, also have a cookie .
2. Enable Incoming Webhooks
After creating, you’ll be redirected to the settings page for your new app (if you are using an existing app, just load its settings via your app’s management dashboard).
From here select the Incoming Webhooks feature, and click the Activate Incoming Webhooks toggle to switch it on. If you already have this activated…