Ray's Knowledge Base
Unlock

A PR description has one required section, Summary, and other sections only when they have something true to say

DecisionVerified 30 Sep 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

A PR description template must guide reviewers without filling PRs with empty sections. The structure follows the practice of Google, Meta, Kubernetes, HackerOne and Circle, as an observer note records it.

Decision#

Only ## Summary is required. These appear only when they have something true to say:

  • ## Why
  • ## How, only for design choices the diff does not show, plus rejected options
  • ## Risk and rollback, only for deploys, migrations, auth and billing
  • ## Breaking changes
  • ## Reviewer notes

Why#

Empty sections add noise, and reviewers skip a long template.

Rejected options#

A long fixed template with every section always present.

Also found by searching

  • PR template has empty ## Testing ## Screenshots ## Risk sections filled with N/A
  • my pull request descriptions are long fixed templates that reviewers skip
  • which sections should a pull request description have, and which only when needed?
  • PR body structure: only summary required, why/how/risk/breaking changes optional, like Google Kubernetes practice
  • what sections should a pull request description template require?
  • PR template has lots of empty headings, how to structure Summary Why How Risk
  • how should I write a PR body, which sections are mandatory versus optional?
  • pull request description format used by Google Meta Kubernetes, rollback section only when relevant