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.

Code reviews tab

Conversations

Inside a code review, conversations happen alongside your code. You can leave comments on the code, ask questions, or add suggestions.

Conversations tab

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.

Manage reviewers

Changed files

The Changed Files tab allows you to:

  1. View the review status (under review, rework required or reviewed).
  2. View and search comments.
  3. Preview changes with diff views.
  4. Enter focus mode.
  5. Edit the name of the code review.
  6. Mark files as Viewed.

Change files tab

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.

Review files

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.

Files reviewed

This collapses the files so you can quickly move on to the next review.

Mark as viewed

Choose how to view comments

The navigation bar shows the number of comments on the code review.

View comments

Select the box to display the Comments tab:

View comments tab

You can filter the comments to show Resolved/Unresolved comments.

To collapse the Comments tab, select the collapse icon:

Collapse comments

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.