Search code examples
gitlabnotificationsslack

Sending personal notifications from GitLab to Slack


I'd like to receive all my personal GitLab notification that are normally sent as emails to my own private Slack channel.

I'm quite familiar with Slack incoming webhooks, and I also know that GitLab officially supports Slack integration. But according to related GitLab documentation (https://docs.gitlab.com/ee/user/project/integrations/slack.html#triggers-for-slack-notifications)., the Slack integration seems to be designed to work only for particular project, providing all notification related to that project across all users.

I want to achieve something different. I want to get only my personal notifications, but across all projects I participate in (e.g. changes made for tickets assigned to me, review results, results of pipelines triggered by my etc.).

Is there any way how to do it using just the standard GitLab's Slack integration or standard GitLab configuration? I'm using GitLab Enterprise.

What I have tried already:

  • going through GitLab documentation
  • Google search for this problem (including stack overflow)
  • reading a few tutorials on GitLab ≤≥ Slack connection

Solution

  • It is not directly supported but you can use Slack Email app to forward all the GitLab email notifications to a slack channel:

    1. Add the "Slack Email app" to your workspace
    2. Create an email address and select the channel used to receive the notifications e.g. Slackbot
    3. Go to your GitLab's profile settings page and in the "Email" section, add the new email address
    4. Go to the "Notifications" section of your GitLab's profile and use the new email address as "Notification email"