GitLab

How to automatically create a new MR on GitLab with GitLab CI

Sep 5, 2017Riccardo Padovani
How to automatically create a new MR on GitLab with GitLab CI
SummaryAI, from the source post

Introduced a script that leverages GitLab CI and the GitLab API to automatically create a 'WIP' merge request for a new commit if one doesn't already exist for that branch. The script identifies the default branch, checks for existing open merge requests for the source branch, and if none are found, creates a new merge request assigned to the committer with `remove_source_branch` enabled.

More from the Issue Tracking and Merge Request Workflow Integration trail