Navigate code reviews
On the code reviews tab, you can:
- View code reviews assigned to you.
- Search code reviews by authors, branches, status, and reviewers.
- Delete code reviews.
Conversations
Inside a code review, conversations happen alongside your code. You can leave comments on the code, ask questions, or add suggestions.
Manage reviewers
Inside a code review, on the Conversations tab, you can manage reviewers.
Select Manage to add or remove users that can request changes or approve a particular review.
Changed files
The Changed Files tab allows you to:
- View the review status (under review, rework required or reviewed).
- View and search comments.
- Preview changes with diff views.
- Enter focus mode.
- Edit the name of the code review.
- Mark files as Viewed.
Enter focus mode
On the top navigation bar of the Unity dashboard, select the expand icon or press the ⌘ + SHIFT + F keys. This collapses both left-hand navigation bars for a more focused view. To exit focus mode, select the expand icon again.
Select files to review
On the navigation bar, you can see the number of files available for review.
Select the box to display the Files tab. All changed files are indicated by a “C” next to the file name. You can also filter by file type and action (Added, Changed, Deleted, Removed).
You can change the file view to:
- Tree view.
- List view.
Choose how to display diffs
You can change the way diffs are displayed to suit your reviewing needs.
To change how you view diffs, select the gear icon. The following are the diff display options:
- Side by side with diff lines: Highlights added, edited, and deleted code right next to the original file, so you can easily spot changes.
- Side by side: Shows changed files next to each other.
- Unified: Shows changes linearly.
Mark files as viewed
To keep track of how many files you’ve reviewed, check the Viewed box.
This collapses the files so you can quickly move on to the next review.
Choose how to view comments
The navigation bar shows the number of comments on the code review.
Select the box to display the Comments tab:
You can filter the comments to show Resolved/Unresolved comments.
To collapse the Comments tab, select the collapse icon:
You can also view comments next to changed lines in the code review. To disable this functionality, select the 3 dots on the top-right corner of the file and click Show comments.