How to create a GitLab merge request via command line

后端 未结 9 1167
清酒与你
清酒与你 2020-12-13 23:49

We are working on integrating GitLab (enterprise edition) in our tooling, but one thing that is still on our wishlist is to create a merge request in GitLab via a command li

9条回答
  •  粉色の甜心
    2020-12-14 00:27

    You can use following utility.

    Disclosure : I developed it.

    https://github.com/vishwanatharondekar/gitlab-cli

    You can create merge request using this.

    Some of the features it has are.

    1. Base branch is optional. If base branch is not provided. Current branch is used as base branch.
    2. target branch is optional. If target branch is not provided, default branch of the repo in gitlab will be used.
    3. Created pull request page will be opened automatically after successful creation.
    4. If title is not supported with -m option value. It will be taken from in place editor opened. First line is taken as title.
    5. In the editor opened third line onwards takes as description.
    6. Comma separated list of labels can be provided with its option.
    7. Supports CI.
    8. Repository specific configs can be given.
    9. squash option is available.
    10. remove source branch option is available.

提交回复
热议问题