Support ghc forks on GitLab
spuriobot works by listening to job events. But job events are only configured per-project or per-group. To support fork projects present and future, we can do the following:
- Implement a system hook receiver endpoint that listens for
group_create
events - Use the endpoint to install spuriobot in the new group
- Add spuriobot to all existing groups by some other means.
The route design can be
-
/
: backward-compatible endpoint for/job
-
/job
: endpoint that processes job events -
/sys
: endpoint that processes system events