git - 要求 Git TFS 推送链接到工作项

标签 git tfs azure-devops

我如何确保推送到 Visual Studio Online 上托管的 git 存储库(即 [company].visualstudio.com)链接到有效的工作项(即提交消息包含“# 12345"其中 12345 是有效的工作项 ID)?

更新 Hook ?登机门控?

最佳答案

不幸的是,在服务上,目前没有办法做到这一点。

对于内部部署版本的 TFS,您可以使用 server side hook阻止推送,但由于该服务目前不支持服务器端 Hook ,所以这不是一个选项。

我的建议是考虑使用跨分支 pull 请求,并作为审查的一部分确保 checkin 评论中包含 # 引用。

关于git - 要求 Git TFS 推送链接到工作项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26186606/

相关文章:

git - TFS Build 在推送到远程代表时挂起

git - 如何从 Git 导出所有更改/添加的文件?

c# - TFS REST API .NET 客户端,TFS2017,个人访问 token : "You must pass a valid patch document in the body of the request."

git - 带有 TFS 的 Visual Studio 2013 联机使用 Git : Saving files checks-in automatically

visual-studio - VSTS 包提要没有从上游源 (nuget.org) 拉包

azure - 在 ubuntu Azure DevOps 代理上安装 sqlpackage 和 azureps

Git 错误 : object xxxx: hasDot: contains '.'

Git - 更新了远程 URL,但不更改旧 URL?

visual-studio - Visual Studio 警告 : “Some of the properties associated with the solution could not be read”

azure - 通过 REST API 将 secret 变量传递到 Azure DevOps 发布管道时出错