如何使用GitLab函数“创建合并请求”从bash外壳? [英] How to use GitLab function "Create Merge Request" from the bash shell?
本文介绍了如何使用GitLab函数“创建合并请求”从bash外壳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在运行bash脚本的同时从分支的GitLab存储库创建一个合并请求到原始存储库。
I need to create a merge request from a forked GitLab repository into the original repository, while running a bash script.
推荐答案
使用 API
示例合并请求如下所示:
An example merge request would look like this:
curl --header PRIVATE-TOKEN: -X POST
https://gitlab.example。 com / api / v3 / projects / project_id / merge_requests /?target_project_id = id_of_parent_project
这篇关于如何使用GitLab函数“创建合并请求”从bash外壳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文