Add Merge Trains support for Gitaly auto-update MRs
What does this MR do?
This MR includes 3 changes:
- Allow to skip CI in
UpdateComponentService
: this is needed so that we don't have to wait for the first-push pipeline to finish before the Merge Train pipeline can start - Introduce support for GraphQL queries in
GitlabClient
(adding an MR to the Merge Train is only possible via GraphQL at the moment) - Introduce a new
ApproveService
to reduce duplication. - Introduce a new
AutoMergeService
- Support Merge Train for Gitaly auto-update MRs: if Merge Trains are enabled, we skip CI for the auto-update commit, and add the MR to the Merge Train directly
Todo
-
Add tests
Author Check-list
-
Has documentation been updated?
Closes #479.
Edited by Rémy Coutable