Create a new branch from the master branch and merge all MR only if it's ready.
npx --no-install gitlab-merge merge --token $CI_TOKEN --project-id $CI_PROJECT_ID --clone $CI_REPOSITORY_URL --dir .
-
--gitlab-url
Gitlab url, default `https://gitlab.com -
--token
Gitlab token -
--project-id
Gitlab project id -
--clone
Gitlab repository url -
--dir
Branch name -
--branch-pattern
Branch pattern, defaultfeature/*
-
--source-branch
Source branch, defaultmaster
-
--destination-branch
Target branch, defaultdev
-
--no-pipeline
Disable check pipeline, defaultfalse
-
--accept-draft
Accept draft MR, defaultfalse
-
--dry-run
Dry run, defaultfalse