通过VSTS API将一个分支合并到另一个分支 [英] Merging one branch to another through VSTS API
问题描述
是否可以使用API将一个分支合并到另一个分支?
Is there a way to merge one branch to another using the API?
我在这里看了一下,但似乎并没有为我提供所需的解决方案(按入单个文件很乏味): https://www.visualstudio.com/zh-cn/docs/integrate/api/git/pushes
I had a look here, but it doesn't seem to offer me a solution to what I want (pushing individual files is tedious): https://www.visualstudio.com/en-us/docs/integrate/api/git/pushes
我想如果没有办法使用rest API来做到这一点,能否通过在私有构建代理上通过powershell脚本运行的git命令来完成?
I suppose if there isn't a way to do this using the rest API, can it be done via git commands run through a powershell script on the private build agent?
推荐答案
首先,请参考VonC的解决方案.
First, refer to VonC’s solution.
第二,您可以通过Pull Request REST API来实现.(在构建/发布期间创建拉取请求,
Secondly, you can do it through Pull Request REST API. (Create a pull request during build/release, update pull request status to completed)
这篇关于通过VSTS API将一个分支合并到另一个分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!