This topic explains how reviewers use Code Review to examine authors’ code, then either accept it or request additional changes.
Sections include:
Reviewers use Code Review as follows:
Note that the following icon indicates a revision that needs to be reviewed:
The following icon indicates a code review issue that has already been entered:
If your source control repository was not previously specified, a configuration dialog will open after you double-click the file node. You must complete this before the code can be opened in the Com-pare pane. |
Specify the related code in one of the following ways:
To add a comment for this... | Do this... |
---|---|
A specific line of code | 1) Right-click that line of code in the Compare panel. 2) Choose Add Code Review Issue from the shortcut menu. 3) Add your comment. Code Review automatically adds the file path to your comments. |
One or more general issues | 1) Right-click the related To Review task node(s). 2) Choose Add General Issue. 3) Add your comment. You can select multiple To Review task nodes if they have the same session tag, task name or comment, and owner and reviewers. A general issue that is created for files from the same project will also have this project set. A general issue that is created for files from the same package will also have this package set. This issue will have the same session tag, task name and reviewer configuration as set in the original selection. |
A group of files (not tied to any specific issue) | 1) Right-click the appropriate code review tree item. 2) Choose Add General Thread. 3) Add your comment. |
If you want to indicate that a previously-entered issue has been resolved, click Accept.
This indicates that no additional action is needed for the current issue. If your team is following the default workflow policy, the issue will be considered "closed" after this action is committed. Otherwise, it will be sent to the author, who can then close the revision
The following diagrams illustrate the various workflows available.
For more details, see Workflow Overview.
If you want to reject a review (e.g., if you want the code for the submitted change to be reverted to its original state), right-click the appropriate item(s) in the code review tree, then choose Reject from the shortcut menu.
If you want to add another reviewer (e.g., for a second opinion), right-click the appropriate item(s) in the code review tree, choose Add Reviewer from the shortcut menu.
If you want to reassign the review to another reviewer, right-click the appropriate item(s) in the code review tree, then choose Reassign from the shortcut menu.