I have a quite simple question. We have setup Gitlab CI and want to allow auto merge as soon as the build succeeds for some of our branches.
Thing is, we see that the build passes, but the merge does not actually happen and the status stays at "to be merged automatically once the build succeeds".
Do you have any idea why?
I attached a screenshot of the bogus behaviour.
EDIT: Some additional information that was requested:
Thanks, Julien
You can use push options to automatically create a merge-request in GitLab, like so: $ git push -o merge_request. create ... The current branch will be pushed, it will be followed locally, a merge request based on that branch will be created, and the option to "Remove source branch" after merge checked on GitLab.
Push a new commit to the source branch for a merge request. Select Run pipeline from the Pipelines tab in a merge request. This option is only available when merge request pipelines are configured for the pipeline and the source branch has at least one commit.
merge_request_event is defined as follows: For pipelines created when a merge request is created or updated. Required to enable merge request pipelines, merged results pipelines, and merge trains. As per your question.
Maybe your merge job is scheduled or dead.
Admin Area
button.Click Monitoring
-> Background Jobs
Then,click the dashboard
and check the if your merge job is in the Scheduled
queue or Dead
queue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With