Send gitlab notification to google chat in 3 minutes

Akbar Dzulfikar
Gravel Product & Tech
3 min readJul 26, 2023

Cooking noodles only takes 3 minutes, what else can be done in just 3 minutes?

Gitlab X Google Chat

In this article, we’ll learn the easy steps needed to enable notifications from Gitlab to rooms in Google Chat in 3 minutes. This will help your team stay up-to-date on events like code pushes, merges, etc.

Step 1. Have a project on Gitlab.

The first step is to have the project on Gitlab .
and next you need owner or manager permission for the project because developer permission is not enough to access settings tab in project.

Step 2. Create a Space in Google Chat

The next step is to create a Space on Google Chat. You can add all project stakeholders to this room to ensure that everyone stays informed of the changes. You can also use an existing room if you don’t want to create another room for a project but the author recommend selling this room as it may get flooded with notifications you have activated.

Now click on the space name and select the Apps & Integration option,

Space Settings

Click on the Manage webhooks,

Manage Webhooks

fill out the details, the click save,

Webhook Details

finally you’ll get the Webhook URL to be used on the last of step 3.

Webhook URL

Step 3. Integrate Webhook to Gitlab

Open Gitlab and open the options in the settings tab, click integrations. You can see all popular tools listed in project services, and click on Google Chat.

Google Chat Integration

On image below, check which notification you want to receive, and fill the Webhook url.

Notification Settings

finally, you can finish by click save changes, but you can also test the notification first by click Test Settings.

Sample Alert

Now your space will continuously receiving notification from gitlab for all event and branches that you selected.

Thank you for reading to the end.

--

--