如何通过命令行创建一个GitLab合并请求 [英] How to create a GitLab merge request via command line

查看:851
本文介绍了如何通过命令行创建一个GitLab合并请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在努力将GitLab(企业版)集成到我们的工具中,但是仍然需要在清单上做一件事的是,通过命令行(或批处理文件或类似文件)在GitLab中创建合并请求.我们希望将其集成到我们的工具中.在这里和网络上搜索使我相信,使用本机GitLab无法做到这一点,但是我们需要其他工具.

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 line (or batchfile or similar, for that matter). We would like to integrate this in our tooling. Searching here and on the web lead me to believe that this is not possible with native GitLab, but that we need additional tooling for that.

我正确吗?而我想使用哪种工具呢?

Am I correct? And what kind of tooling would I want to use for this?

推荐答案

本机不支持它,但将其组合在一起并不难. gitlab API支持打开MR: https: //github.com/gitlabhq/gitlabhq/blob/master/doc/api/merge_requests.md#create-mr

It's not natively supported, but it's not hard to throw together. The gitlab API has support for opening MR: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/merge_requests.md#create-mr

这篇关于如何通过命令行创建一个GitLab合并请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆