How to create a merge request at the end of a successful pipeline in Gitlab?

后端 未结 3 1571
孤独总比滥情好
孤独总比滥情好 2021-02-06 02:15

I\'m very new to gitlab and gitlab CI and I have put a pipeline in place that is successfully completing. My master and development branches are protected so a merge request is

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 03:02

    Another approach it to:

    • not use GitLab API
    • get the patch represented by the code checked out by the pipeline
    • use an email(!), since GitLab 11.5 (Nov. 2018)

    Open a merge request with a patch via email

    GitLab has supported opening a merge request via email for a long time, but before sending the email the branch must already exist on the server. Now you can open a merge request with only an email by attaching one or more patch files (.patch).

    Patch files are the standard for sharing and transmitting changes between systems. In future releases of GitLab we will build on this foundation for distributed merge requests, which will allow merge requests between GitLab instances, and other Git hosting tools too.

    See documentation and issue.

提交回复
热议问题