lummerland / hangouts-notification-for-bamboo

Send build notifications to your Google Hangouts chat
GNU General Public License v3.0
0 stars 4 forks source link

[Request] make use of "thread" feature of Hangouts Chat #3

Open fkusei opened 4 years ago

fkusei commented 4 years ago

It would be nice if messages could be configured to be grouped by build plan (for example, when building branches).

lummerland commented 4 years ago

Hi @fkusei, I don't really understand what you mean. Could you please go into more detail? Thanks :)

fkusei commented 4 years ago

hm, after reading it myself, i see it's a bit confusing ...

Hangouts Chat allows to organize messages in threads. It would be nice if the Bot would be able to group all messages of (for example) a branch build in one thread, so it's easier to track what happened in the history.

lummerland commented 4 years ago

This could be implemented by using the Hangouts REST API instead of webhooks. I think this would be a bigger change but it could be interesting to think about this in detail.

fkusei commented 4 years ago

It's possible to use the 'threadKey' key in the webhook request, there should be no need to use the API.

See https://bitbucket.apps.seibert-media.net/projects/VID/repos/viri-gchat/browse/viri.py#77 for an example.

lummerland commented 4 years ago

Working on it -> https://github.com/lummerland/hangouts-notification-for-bamboo/commit/7dc7ccc1c39937990dd05d97710bac49ab58476c