ドキュメント

Unity Version Control

Code reviews

Learn how code reviews work in Unity Version Control, including their comment types and statuses.
読み終わるまでの所要時間 1 分最終更新 1日前

Code reviews let you collaborate on your project through peer review. After you complete work on a changeset or branch, you can request a code review from someone to check over or contribute to the changes. Code reviews can improve your code quality because they help you catch bugs and share knowledge.

Code review contents

A code review has three tabs:
  • Conversation: comments about the code review as a whole, and all the other comments on the review.
  • Changed Files: a diff of each file that the review changes, and comments on specific lines of code.
  • Changesets: the changesets that the review includes.
For information on how to use these tabs, refer to Navigate code reviews.

Comments

A comment can apply to the code review as a whole, or to specific lines of code. A comment on lines of code can be a Comment, a Question, or a Change request. Questions and change requests are either Resolved or Unresolved.

Statuses

A reviewer can change the status of the code review to one of the following statuses:

Status

Description

Under reviewThe code review is unfinished.
Rework requiredThe code review requires changes before you can merge it.
ReviewedThe code review is approved and ready to merge.
By default, you can't merge the code review until a reviewer marks the review as Reviewed. For more information, refer to Create merge rules.

Additional resources