我正在使用 cakebuid作为 TFS 2017 Update 2 的构建工具并试图实现传统的 Git Flow .在此流程中,每次更改进入 时都会发生一些自动合并。大师 ,这些更改需要传播到 开发 分支。
使用 cake 我可以运行 PowerShell 脚本或使用 LibGit2Sharp完成最佳情况下的自动合并。但是,当合并发生冲突时怎么办?我是否需要因为合并过程失败而使整个构建失败?
我们当然需要处理 TFS 中的合并,这就是 拉取请求 .
题
Is there any tool or add-in for cake that allows me to create Pull Request during the execution of a build step?
最佳答案
我认为没有任何加载项可用于创建拉取请求,但由于您可以运行 PowerShell,因此您可以轻松使用 TFS rest api 来创建拉取请求
https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests/pull-requests
关于tfs - Cake Build 自动合并功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47084822/