debian-mirror-gitlab/doc/user/project/integrations/hangouts_chat.md

65 lines
2.5 KiB
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
2022-11-25 23:54:43 +05:30
stage: Manage
2021-10-27 15:23:28 +05:30
group: Integrations
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2021-06-08 01:23:25 +05:30
# Google Chat integration **(FREE)**
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
Integrate your project to send notifications from GitLab to a
room of your choice in [Google Chat](https://chat.google.com/) (former Google
Hangouts).
2018-11-18 11:00:15 +05:30
2022-10-11 01:57:18 +05:30
## Integration workflow
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
To enable this integration, first you need to create a webhook for the room in
Google Chat where you want to receive the notifications from your project.
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
After that, enable the integration in GitLab and choose the events you want to
be notified about in your Google Chat room.
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
For every selected event in your project, GitLab acts like a bot sending
notifications to Google Chat:
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
![Google Chat integration illustration](img/google_chat_integration_v13_11.png)
2018-11-18 11:00:15 +05:30
2022-10-11 01:57:18 +05:30
## Enable the integration in Google Chat
2018-11-18 11:00:15 +05:30
2022-10-11 01:57:18 +05:30
To enable the integration in Google Chat:
2018-11-18 11:00:15 +05:30
2021-06-08 01:23:25 +05:30
1. Enter the room where you want to receive notifications from GitLab.
2023-01-13 00:05:48 +05:30
1. Open the room dropdown list on the top-left and select **Manage webhooks**.
2021-06-08 01:23:25 +05:30
1. Enter the name for your webhook, for example "GitLab integration".
2022-01-26 12:08:38 +05:30
1. Optional. Add an avatar for your bot.
2021-06-08 01:23:25 +05:30
1. Select **Save**.
1. Copy the webhook URL.
2021-09-30 23:02:18 +05:30
For further details, see [the Google Chat documentation for configuring webhooks](https://developers.google.com/chat/how-tos/webhooks).
2021-06-08 01:23:25 +05:30
2022-10-11 01:57:18 +05:30
### Enable threads in Google Chat
2021-06-08 01:23:25 +05:30
2022-10-11 01:57:18 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/27823) in GitLab 15.4.
To enable threaded notifications for the same GitLab object (for example, an issue or merge request):
1. Go to [Google Chat](https://chat.google.com/).
1. In **Spaces**, select **+ > Create space**.
1. Enter the space name and (optionally) other details, and select **Use threaded replies**.
1. Select **Create**.
You cannot enable threaded replies for existing Google Chat spaces.
## Enable the integration in GitLab
To enable the integration in GitLab:
2021-06-08 01:23:25 +05:30
1. In your project, go to **Settings > Integrations** and select **Google Chat**.
1. Scroll down to the end of the page where you find a **Webhook** field.
1. Enter the webhook URL you copied from Google Chat.
1. Select the events you want to be notified about in your Google Chat room.
2022-01-26 12:08:38 +05:30
1. Optional. Select **Test settings** to verify the connection.
2021-06-08 01:23:25 +05:30
1. Select **Save changes**.
To test the integration, make a change based on the events you selected and
see the notification in your Google Chat room.