Skip to content

Code review

Editor
Engineering leadership

Authors and reviewers of pull requests.

On every pull request.

  • Must: At least one person other than the author approves before merge. This is the engineering form of Reviewing work.
  • Must: Reviewers check correctness, risk, tests, and secrets — not only style.
  • Must: Authors do not merge with unresolved must-fix comments unless the reviewer agrees in writing on the PR.
  • Should: Review within one working day, or say when you will.
  • Should: Prefer questions and must-fix lists over rewriting the author’s code in comments.
  • Team decides: Who the default reviewers are, and whether two approvals are required for high-risk areas.

The PR ends with a clear approve, or a short must-fix list. Taste comments are marked as optional.

Author

  1. Self-review the diff.
  2. Link the ticket and test notes.
  3. Respond to must-fix items or explain why not.

Reviewer

  1. Read the ticket, then the diff.
  2. Run or reason about the tests.
  3. Leave must-fix vs optional comments.
  4. Approve only when must-fix is done.