Keep code changes moving without manual clicks. The workflow checks for merge requests on a schedule, opens one when needed, adds notes, and merges only after checks pass. It fits teams that want clean branches and faster releases.
It runs on a timer. First it calls GitLab to find open merge requests for the source branch. If none exist, it creates a new one, posts a custom comment, waits 30 seconds for reviews and the pipeline, then merges when the pipeline succeeds. If older or duplicate requests are found, it loops through them in batches and closes each one. All API calls use a private token in the request header.
Set your project ID, source branch, target branch, title, and note text. Map the merge request id from the create step into the note, close, and merge steps. Expect fewer delays and fewer mistakes, with less context switching. Teams often save 20 to 30 minutes per release cycle. Adjust the wait time to match your CI runtime. Great for nightly promotions and cleanup after feature branches. See the Tools Required section above to set up accounts and keys.