Execute Approval Gates webhook on MR change
Why are we doing this work
As part of the ability to implement "Approval Gates", once an Approval Gate is created on a project as an approval rule, a HTTP payload should be sent to the approval service to start an external service.
Relevant links
Implementation plan
-
When an MR is updated (this includes the MR or the commits for the MR), it should fire a webhook payload to all API approval rules. -
The webhook payload should include a randomly generated authentication token which will be used when the external service posts back to GitLab.
Out of scope
This issue excludes the ability for an external service to post back a response to GitLab via the API. As a result, with this implementation issue completed, the feature is not ready for use in production so should remain behind a feature flag.
Edited by Max Woolf