Hooks
Going over the entire list of issues, there are requests that would need extra logic from subtle changes to pretty wild out there ideas or edge cases that would be hard to implement and maintain.
With hooks the burden for customization is with the user. That way the focus here can be more on making sure the mechanics around basic GitLab interactions are solid.
Add hooks for customizing pipeline message (!469 - merged) introduced a mechanism that might work.
Here's a brain dump of what might be needed and what it might cover, locations and ordering might not be accurate, names are just ideas, and I'll keep updating as I find more issues, feel free to add stuff.
-
startup
- entire app cycle
- setup, massage config
- Support for webhook (#389) e.g. single targeted run triggered from webhook
-
run
- every run iteration
- more dynamic config based on some state/time of run etc
-
post-collect
- almost the same as above, but massage collected MRs
-
pre-push
-
embargo
- when skipping during embargoes
-
pre-merge
- custom checks for mergeable MRs
-
post-merge
(+ batch) -
shutdown
- cleanup
- make marge-bot to reuse the repo for HTTPS (#408 - closed) (might be needed per loop though)
- cleanup
...
Edited by Nejc Habjan