How do I view comments from an earlier code review in Team Foundation Service?

走远了吗. 提交于 2019-12-04 15:50:02

问题


I'm using Microsoft's online Team Foundation Service with Visual Studio 2012 Premium.

I performed a code review for a colleague a couple of months ago, and now another code review has come through for the same project.

I want to be able to view the comments I made on the first code review to make sure everything has actioned. However, I can't find anywhere in Visual Studio or TFS that shows me the previous code review's comments.


回答1:


OK, I've found my answer by trial and error:

  1. In Visual Studio 2012 open the Team Explorer
  2. Under Work Items, click "New Query"
  3. Run a query to find the relevant code review item
  4. In the query results, double click the code review work item
  5. Click "Open Code Review in Team Explorer (top left)
  6. The code review will open in the Team Explorer panel



回答2:


If you do not perform many code reviews, this may also be easier: In Team Explorer, under My Work, there is a Code Reviews section near the bottom. A subtle drop down menu can let you pick other choices, such as:

  • My Code Reviews
  • Incoming Requests
  • Recently Finished
  • Recently Closed

If you select "Recently Finished", you should be able to view your completed code reviews and pick the one you want from there.




回答3:


In Visual Studio 2017 the link Open Code Review in Team Explorer might not appear. To display the link on code review work items go to the following starting from the main menu:

Tools -> Options -> Work Items

Change Open work items in: from Default browser to Visual Studio.

Now you can execute queries on work items of type Microsoft.CodeReviewResponseCategory or Microsoft.CodeReviewRequestCategory and the link should appear in the top left corner of the work item.


Thank you user735232 for your comment, I added this as answer to make the solution more visible.



来源:https://stackoverflow.com/questions/16146666/how-do-i-view-comments-from-an-earlier-code-review-in-team-foundation-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!