Send gitlab notification to google chat in 3 minutes
Cooking noodles only takes 3 minutes, what else can be done in just 3 minutes?
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,
Click on the Manage webhooks,
fill out the details, the click save,
finally you’ll get the Webhook URL to be used on the last of step 3.
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.
On image below, check which notification you want to receive, and fill the Webhook url.
finally, you can finish by click save changes, but you can also test the notification first by click Test Settings.
Now your space will continuously receiving notification from gitlab for all event and branches that you selected.
Thank you for reading to the end.