maubot / gitlab

A GitLab client and webhook receiver for maubot.
GNU Affero General Public License v3.0
95 stars 30 forks source link

Send job events as edits to pipeline event messages #29

Closed tulir closed 3 years ago

tulir commented 5 years ago

Currently job events are sent as separate messages, but really we should only have one announcement per pipeline and edit that each time a job is updated.

This probably involves storing the pipeline state somewhere so that we can regenerate the message when editing. I think the best solution would be to cache the pipeline data in memory and also send it in the Matrix event. If the bot is restarted during a pipeline, the data can be loaded from the event. The event ID is already stored in the db.

tulir commented 3 years ago

Job events were moved into reactions