Unable to merge MR if CI was skipped but project requires builds to succeed
Summary
If a MR is issued with a single commit, for which the CI build was skipped via the [ci skip]
tag in the commit message, trying to merge the MR via the web interface's button errors out with a generic:
/!\ This merge request failed to be merged automatically
Please reload the page to find out the reason.
However, if I reload, I see nothing different apart from the merge button being clickable again, but leading to the same behavior.
Steps to reproduce
- Commit on a new branch, including the
[ci skip]
tag in the message - Create MR
- Obtain all needed approvals by members
- Try to merge back into master
Expected behavior
"Clean" merge with no errors in the process.
Actual behavior
Cryptic error message with no followup, solution is to be found by instinct.
Possible fixes
- Temporarily disable the Only allow merge requests to be merged if the build succeeds flag in the project's setting
- Merge the MR - it'll now complete without errors
- Re-enable the said setting's flag.