Skip to content

Add GitLab CI stage to automatically create merge request

Gary Cao requested to merge feature/merge-request into develop

This script automatically creates a merge request, setting target branch based on GitFlow, automatically tags it as WIP and assigns to the user owner of the Private Access Token.

The following environment variable needs to be set:

  • GITLAB_PRIVATE_TOKEN: Go to your profile settings to create this private token.

Adapted from: https://about.gitlab.com/2017/09/05/how-to-automatically-create-a-new-mr-on-gitlab-with-gitlab-ci/

Edited by Wes Turner

Merge request reports