How to use GitLab function “Create Merge Request” from the bash shell? [duplicate]

只谈情不闲聊 提交于 2020-03-23 08:23:13

问题


I need to create a merge request from a forked GitLab repository into the original repository, while running a bash script.


回答1:


Use the 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



来源:https://stackoverflow.com/questions/41228561/how-to-use-gitlab-function-create-merge-request-from-the-bash-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!