← All files

CODE REVIEW POLICY TEMPLATE

A code review policy template: approvals, author and reviewer duties, checklist, merging, and escalations.

[ DOWNLOAD ][ MARKDOWN ][ SOURCE ]

A code review policy template covering who reviews, required approvals, author and reviewer responsibilities, a review checklist, merge rules, stale pull requests, and escalation.

USE

  • Set approval counts to match the team size.
  • Make the checklist specific to the project risks.
  • Explain how disagreements are resolved.

NOTES

  • Review the change, not the author.
  • Keep optional comments clearly marked so blocking issues are obvious.

SOURCE

https://google.github.io/eng-practices/review/

FULL TEXT

[ DOWNLOAD ]
CODE REVIEW POLICY — TEMPLATE
=============================
Version 1.0 — 2026-10-17

TEMPLATE ONLY. Adapt the thresholds and timelines to the size of the
project and its maintainers. Delete this notice from the published
version.

Replace every value in [SQUARE BRACKETS].

---
# Code Review Policy — [PROJECT NAME]

## GOALS

Review exists to keep the code correct, secure, maintainable, and
understandable — not to enforce personal style preferences. Reviews are
technical, specific, and respectful.

## WHO REVIEWS

- Any maintainer or reviewer may review.
- Pull requests require [ONE/TWO] approving review(s).
- Changes touching [SECURITY, RELEASES, DATA MIGRATIONS] require an
  additional maintainer approval.
- Authors do not approve their own changes.

## AUTHOR RESPONSIBILITIES

- Keep pull requests small and focused.
- Describe the problem, the approach, and how it was tested.
- Ensure CI passes before requesting review.
- Respond to comments; resolve conversations only after the reviewer agrees.
- Do not force-push during review unless requested; add commits instead.

## REVIEWER RESPONSIBILITIES

- Respond within [TWO] business days when possible; if you cannot review,
  say so and suggest someone else.
- Review the change, not the author.
- Distinguish blocking issues from suggestions: prefix optional comments
  with "nit:" or "optional:".
- Ask questions rather than assuming intent.
- Approve when the change improves the codebase, even if it is not perfect.

## REVIEW CHECKLIST

- Correctness: does it do what it claims, with edge cases handled?
- Tests: do they cover the change and fail without it?
- Security: input validation, authentication, secrets, dependencies.
- Performance: any obvious regressions or unbounded work?
- Compatibility: API, behaviour, data formats, migration path.
- Documentation: code comments where needed, user docs, changelog.
- Accessibility and i18n where relevant.
- Licensing: new files carry the required headers and compatible licences.
- AI-generated content disclosed and understood by the author.

## MERGING

- All conversations must be resolved.
- CI must pass on the latest commit.
- Merge method: [SQUASH / REBASE / MERGE COMMIT].
- Delete the branch after merge unless it is a long-lived release branch.

## STALE PULL REQUESTS

Pull requests with no activity for [60] days may be closed after a
check-in comment. They can be reopened when work resumes.

## ESCALATION

Disagreements are resolved by discussion, then by [MAINTAINERS / GOVERNANCE
PROCESS]. Conduct issues follow the [CODE OF CONDUCT].

## REFERENCES

- Google — Code Review Developer Guide: https://google.github.io/eng-practices/review/
- GitHub — About pull request reviews: https://docs.github.com/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests

VERIFY SHA-256

Download the file, then choose it here. The checksum is compared locally in your browser.

Expected 53a5e567248dbf723345f7788fbb0e0c2fd7c9f3870651be00afb758aa4d2fec

CITE

CODE REVIEW POLICY TEMPLATE (v1.0, 2026-10-17). Original. https://original.wales/files/code-review-policy/ SHA-256: 53a5e567248dbf723345f7788fbb0e0c2fd7c9f3870651be00afb758aa4d2fec. Source: https://google.github.io/eng-practices/review/.

← All files