Git-TFS - 如何在批准拉取请求之前确保分支是最新的?

时间:2017-10-22 12:09:56

标签: git tfs branch git-tfs

我推送分支stav并向master创建拉取请求。我想确保仅当分支stav包含分支master的最后更改时才能批准提取请求。

我正在使用Microsoft Visual Studio Team Foundation Server版本14.95.25122.0。

有可能吗?如果没有,我可能会在系统中创建一个错误,因为不会对masterstav之间的“合并”内容进行任何测试。

GitHub有这个选项: enter image description here

1 个答案:

答案 0 :(得分:0)

我不确定是否完全明白你的观点。 Make sure that the pull request can be approved only if branch stav contain the last changes from branch master.你想要做的是将master与stav合并,然后将stav合并回master。在TFS中的单个拉取请求过程中,这是不可能的。

Require branches to be up-to-date before merging如果你在谈论GitHub中的Enabling required status checks。 TFS中没有此类功能,您可以添加 uservoice here,TFS PM会审核您的建议。

相关问题