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

查看:38
本文介绍了如何通过命令行创建 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天全站免登陆