问题描述
有谁知道如何使用 TFS 查询或类似方法搜索没有关联代码审查的变更集?也可以是对 TFS 数据仓库的查询.
Anyone knows how to search for changesets with no Associated Code Review with a TFS Query or similar? It can be also a query on TFS Data Warehouse.
推荐答案
当您从变更集请求代码审查时,它不是双向,仅以一种方式链接.
When you request a code review from a changeset, it's not Bi-directional, only link one way.
这意味着您无法从变更集 ID 直接知道变更集是否经过代码审查.要获得关联,您需要通过工作项.有一个名为 code review work item 的工作项,如下所示的示例查询,通过这种方式,您可以找到任何变更集的代码审查工作项,只要该变更集与 TFS 工作相关联项.
This means you can't directly know if a changeset was code-reviewed or not from changeset ID. To get the association, you need to go through work item. There 's a work item called code review work item, a sample query as below, through that way you could find the code review work item for any changeset, as long as that changeset was associated with a TFS work item.
但是,根据您的要求,它无法使用工作项查询来执行此操作.您可能必须按照 jessehouwing 建议的那样使用 TFS API 来实现它.
However, for your requirement, it's not able to use a work item query to do this. You may have to use TFS API to ahcieve it just as jessehouwing suggested.
这篇关于无需代码审查的变更集的 TFS 查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!