Code review
Who this is for
Section titled “Who this is for”Authors and reviewers of pull requests.
When to use it
Section titled “When to use it”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.
What good looks like
Section titled “What good looks like”The PR ends with a clear approve, or a short must-fix list. Taste comments are marked as optional.
What to do
Section titled “What to do”Author
- Self-review the diff.
- Link the ticket and test notes.
- Respond to must-fix items or explain why not.
Reviewer
- Read the ticket, then the diff.
- Run or reason about the tests.
- Leave must-fix vs optional comments.
- Approve only when must-fix is done.