How do I associate a review request with multiple changesets in TFS 2012

前端 未结 4 980
鱼传尺愫
鱼传尺愫 2021-02-02 08:58

Our development process works like this: Every 2 weeks the team lead (me) goes in and reviews everyone\'s changesets to make sure they are up to the coding standards. I would li

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 09:16

    1. Unsolicited, no.
    2. You can rightclick a changset in the history screen to request a review post checkin.

    And there is a nasty workaround to get what you want to achieve. Check out all files you want to review and request a review. You can then undo your checkout, the shelveset and the review request will remain.

    Alternatively you can just go to the source control tab and do a checkout-all on the rootfolder of your solution, request the review, undo your checkout and do the review.

    As for linking changesets to a Work Item, this can be done post checkin. Open the work item, go to the links tab and click "Link to..." The dropdown there will have a "Changeset" option. But I don't think this link type is enabled for Code Review Requests, since these use a Shelveset and not a set of changesets as the source for the code to review.

    enter image description here

    I expect you could use the TFS API to generate a shelveset with all the changes from a specific developer in a given timerange, put these on a shelveset and request a review on that. But no existing feature to do that exists.

    Or you might be able to edit the shelveset of associated to the review by creating a new one with the same name.

提交回复
热议问题