Navigate code reviews
Find the files, comments, and changesets in a Unity Version Control code review in the Unity Dashboard.
読み終わるまでの所要時間 3 分最終更新 8日前
Use a code review in the Unity Dashboard to read the comments on the review, check the changes to each file, and view the changesets that the review includes. A code review has three tabs: Conversation, Changed Files, and Changesets.
Open a code review
To open a code review:
- Open the repository.
- Select the Code reviews tab.
- Select the code review.
View files
The Changed Files tab lists the files that the code review changes, and displays a side-by-side diff of each file. The Changed Files tab toolbar shows the number of changed files and the number of comments.
To view the changes in one changeset of the review, select the changeset in Changeset.
Find files
To find files in the Changed Files tab, use the following options:
- Search by file or folder name.
- Filter by file type with Type.
- Filter by Action: Added, Changed, Deleted, or Moved.
- Switch between a tree view and a list view of the files.
To move between files, select the arrows next to the number of files in the toolbar.
Change how diffs display
The Changed Files tab can display the following types of diff:
Diff type | Description |
|---|---|
| Text diff | Compares the files line by line. |
| Semantic diff | Compares the structure of the code. Letters next to the code show which code elements changed (C), were added (A), or were deleted (D). |
To switch between the diff types, select Text diff or Semantic diff.
To change other diff settings, select the gear icon to open the Display settings dialog. The dialog has the following settings:
Setting | Description |
|---|---|
| Group changes by merge source | Separates the changes that come from a rebase or merge source. |
| Text comparison method | Sets which differences the diff ignores: Ignore End of lines (EOLs), Ignore whitespaces, or Ignore EOLs and whitespaces. To show all differences, select Recognize all. |
View comments
The Conversation tab lists all the comments on the code review, including the questions and change requests on specific lines of code.
To view a question or change request next to the code it refers to:
- In the Changed Files tab toolbar, select the comments list, which shows the number of comments.
- Select the comment you want to view.
If a change request is unresolved, the code review shows an Unresolved button. To go to the unresolved comments, select Unresolved.
View changesets
The Changesets tab lists the changesets in the code review, grouped by date. Each changeset shows its number, comment, author, and branch.
You can do the following tasks in the Changesets tab:
Task | How |
|---|---|
| View the details of a changeset, such as its GUID, other code reviews, labels, merge details, and attributes | Select the expand arrow next to the changeset. |
| Add or change the attributes of a changeset | Expand the changeset, then select Edit or add attributes. |
| Move between pages of changesets | Select Previous or Next. |