Google Chat: Support inline replies
What does this MR do and why?
Support spaces with inline replies by setting the messageReplyOption
query parameter to REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD
, indicating that
messages should be created as replies to the specified threads. The
default value, MESSAGE_REPLY_OPTION_UNSPECIFIED
, always starts a new
thread
This commit also specifies the thread key in the request body instead of
via the deprecated threadKey
query parameter
https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption
https://developers.google.com/chat/api/guides/v1/messages/create#create-message-thread
Fixes #438452 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Create a new Google Chat space
- Add a webhook to the space
- Enable the Google Chat integration in GitLab
- Perform multiple actions that should result in messages that should be created as replies to the same thread, such as opening and closing a merge request