TFS 2012 - 如何判断变更集是否经过代码审查? [英] TFS 2012 - How can I tell if a changeset was code-reviewed?

查看:20
本文介绍了TFS 2012 - 如何判断变更集是否经过代码审查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近开始使用 Team Foundation Server 2012,并且正在使用代码审查功能让其他开发人员审查代码更改.它似乎很好用;但是,作为项目负责人,我希望能够看到给定的变更集已被其他人审核.

We recently started using Team Foundation Server 2012 and are using the code-review feature to have other developers review code changes. It seems to work great; however, as a project lead I would like to be able to see that a given changeset has been reviewed by someone else.

例如,假设开发人员 Bob 进行了更改并请求对这些更改进行审核.这将为更改生成一个搁置集,并为请求的审查创建代码审查工作项.开发人员 Alice 审查更改,提出一些意见,然后完成审查.Bob 将 Alice 的建议合并到变更集中.

For example, say Developer Bob makes changes and requests a review on those changes. This generates a shelveset for the changes and creates a code-review work item for the requested review. Developer Alice reviews the changes, makes some comments, and finishes the review. Bob incorporates Alice's suggestions and checks in the changeset.

作为项目负责人,我搜索变更集并看到 Bob 签入了变更集 123.如果我查看此变更集,Bob 正在处理的任务有一个关联的工作项,但没有迹象表明该变更集已被审查其他人.

As a project lead, I search for changesets and see that Bob checked in changeset 123. If I look at this changeset, there is an associated work item for the task Bob was working on, but no indication that the changeset was reviewed by anyone else.

如果我查看代码审查工作项,我可以找到已审查的内容并查看注释.这很麻烦,因为我必须筛选工作项并找到恰好相关的项.

If I look at code-review work items, I can find the things that have been reviewed and see the comments. This is cumbersome as I have to sift through work items and find the one that happens to be related.

如何从给定的变更集判断它已被审核,以及如何查看审核评论?

推荐答案

变更集可以链接到任何类型的工作项,包括代码审查.当您请求对一组待定更改进行审查时,它们会自动关联到新的审查工作项.当您双击变更集时,您应该能够在相关工作项下看到如下内容:

Changesets can be linked to any kind of Work Item, including Code Reviews. When you request a review on a set of pending changes, they are automatically associated to the new review Work Item. When you double click on the changeset you should be able to see under Related Work Items something like this:

在这种情况下,此变更集有 2 个评论,第二个在被请求时自动存在.第一个必须手动链接,就像任务一样.

In this case there were 2 reviews for this changeset, the second one was automatically there when it was requested. The first one had to be manually linked, just like the Task.

如果您双击评论项目,您可以看到所有评论.

If you double click on the review item, you can see all the comments.

提示:如果您想在签入后进行审查:转至历史视图 --> 双击变更集 --> 操作 --> 请求审查.

Tip: If you want to do a review post-checkin: go to the History view --> double click on the changeset --> Actions --> Request Review.

提示 2:您必须手动检查每个变更集是否都有审核,这有点烦人.如果缺乏审核对您的团队来说确实是个问题,我建议您制定签入政策.

Tip2: It is a bit annoying that you have to manually check that each changeset has a review. If lack of review is really a problem for your team, I would suggest setting up a check-in policy.

这篇关于TFS 2012 - 如何判断变更集是否经过代码审查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆