问题
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:
- In Visual Studio 2012 open the Team Explorer
- Under Work Items, click "New Query"
- Run a query to find the relevant code review item
- In the query results, double click the code review work item
- Click "Open Code Review in Team Explorer (top left)
- 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