Automatic merge of an MR on GitLab

85 views Asked by At

I have recently stumbled upon a use-case where I want to make MRs into my master branch automatically. Every one of those MRs would edit a documentation file which does not in any way affect business flows or local / remote app config. I unfortunately need to make an MR to trigger a webhook that talks to a different repo, instead of just committing the documentation file to master directly.

The closest I have found to "automatically" is the merge_request.merge_when_pipeline_succeeds push option which is available since Git 2.10. I was wondering if there is a way for me to even skip the pipeline stage as, in my case, it is useless and just wastes time. I suspect that this is not supported out of an abundance of caution, but it couldn't hurt to ask.

0

There are 0 answers