The Slack Notifications Service allows your GitLab project to send events (e.g. issue created) to your existing Slack team as notifications. This requires configurations in both Slack and GitLab.
Note: You can also use Slack slash commands to control GitLab inside Slack. This is the separately configured Slack slash commands.
- Sign in to your Slack team and start a new Incoming WebHooks configuration.
- Select the Slack channel where notifications will be sent to by default. Click the Add Incoming WebHooks integration button to add the configuration.
- Copy the Webhook URL, which we'll use later in the GitLab configuration.
- Navigate to the Integrations page in your project's settings, i.e. Project > Settings > Integrations.
- Select the Slack notifications project service to configure it.
- Check the Active checkbox to turn on the service.
- Check the checkboxes corresponding to the GitLab events you want to send to Slack as a notification.
- For each event, optionally enter the Slack channel where you want to send the event. (Do not include the
#symbol.) If left empty, the event will be sent to the default channel that you configured in the Slack Configuration step.
- Paste the Webhook URL that you copied from the Slack Configuration step.
- Optionally customize the Slack bot username that will be sending the notifications.
- Configure the remaining options and click
Your Slack team will now start receiving GitLab event notifications as configured.