git 实现 TFS 拉取请求
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20829991/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Implementing TFS Pull Requests
提问by Otávio Décio
Now that TFS 2013 supports git natively, how does one go about implementing a pull request policy / workflow - that is, mandating pull requests and code reviews to get code merged in?
既然 TFS 2013 本身就支持 git,那么如何实施拉取请求策略/工作流——也就是说,强制拉取请求和代码以合并代码?
回答by jessehouwing
As of Oct 2014:
截至 2014 年 10 月:
Pull requests are now supported in both TFS 2013 update 4and in Visual Studio Online. Combined with removing the Push permission to certain branches, this effectively allows you to setup a policy.
TFS 2013 更新 4和 Visual Studio Online现在都支持拉取请求。结合删除对某些分支的推送权限,这有效地允许您设置策略。
For more advanced policy like features, you can use the ISubscriber interface to build a 'commit hook' until Microsoft fully implements such features. Read more here.
对于更高级的策略等功能,您可以使用 ISubscriber 接口构建“提交挂钩”,直到 Microsoft 完全实现此类功能。在这里阅读更多。
More information on Pull Requests can be found in this blog post from the Visual Studio team.