Appearance
0003: Build each pull request description from its commits
Status: accepted
Date: 2026-12-04
PR: #2
Context
Reviewers need to know why a pull request exists and what to read first. A description written by hand takes time, and each author writes it in a different shape.
Options considered
- The why of a pull request from the body of its first commit: it explains one commit, not the pull request.
- The why from the first sentence of each commit body: it is long for a pull request with many commits.
- A complexity size from S to XL in the callout: the risk verdict replaced it when the risk scan arrived.
- A pie chart by commit type: most commits are
feat, so the chart showed almost one slice.
Decision
The PR summary workflow writes the description of each pull request from its commits. The description starts with a callout that gives the risk verdict and the riskiest file. A pie chart shows the changed lines by Surface. The commits follow, grouped by Surface, each with its body. The title of the pull request is the answer to the last question of PR Prep. It is a Conventional Commits title, and its subject states the why.
Consequences
Reviewers see what to read first and what to skip, and nobody writes it. Each description has the same shape, and the same diff always gives the same description. A commit with no body gets the needs: commit reasons label.