GitHub PR Templates: 5 Self-Checks CI Can't Automate (and 3 Principles)
Every team that has shipped a PR titled just "fix" knows the next thirty minutes. The reviewer reads the diff, reconstructs what the author was thinking, and asks three questions the description could have answered.
Multiply by the number of PRs per week and the cost of that missing recipe is measured in reviewer hours, not in lines of code. A .github/pull_request_template.md is how you stop paying it. Not with a long template, which gets ignored. With a short one that makes the reviewer's job human: judging the parts CI cannot.
This is chapter 8 of my book on systematizing AI code review, applied to the GitHub side of the pipeline. The whole pattern fits in three design principles and five self-check items.
What goes in the template
Start concrete. This is the one I ship on new repos.
<!-- .github/pull_request_template.md -->
## Summary
<!-- What changed. 1-3 sentences. -->
## Why
<!-- The reason. Link the issue if there is one. -->
Closes #
## Type
- [ ] Feature
- [ ] Bugfix
- [ ] Refactor (no behavior change)
- [ ] Tests
- [ ] Docs
- [ ] Dependencies
## How to review
<!-- For large PRs: which file to read first. -->
## Screenshots (UI changes)
<!-- Before / after. -->
## Self-check
- [ ] All automated gates (lint / type check / tests) pass
- [ ] Tests added or updated
- [ ] Follows the `Code Direction` section of AGENTS.md
- [ ] Refactor and feature work not mixed in the same PR
- [ ] Under 300 lines (or split rationale documented)
Five self-check items. Stop before you reach ten. The line where a checklist stops being read and starts being ticked without reading is a lot closer to ten than you think.
My first template had nine. Nobody read item nine, including the person who ticked it.
Three principles for the checklist
Every item in that self-check survives against three rules. If a candidate item fails any of them, it does not go in.
- Keep it short
Ten-plus items turn the checklist into performance theater. Target is five to seven. If item count creeps past that, either a rule can be automated out, or the template is being used to compensate for a weakness elsewhere (team norms, onboarding docs, the issue template). Fix the real place; the PR template is not the catch-all.
- Make it specific, not abstract
The classic failure mode is "I verified the code quality." That sentence passes code review training and does zero work in review.
Bad:
- [ ] Code quality verified
Good:
- [ ] All automated gates (lint / type check / tests) pass
The "good" version is specific enough that an author checking it has an actual action in mind. Abstract items get ticked by default; specific items do not.
- Do not duplicate what CI already owns
If pnpm test is going to run in CI on every push, do not put "tests pass" in the author's self-check. CI will tell you.
Unnecessary:
- [ ] All tests pass (CI will tell us)
Necessary:
- [ ] Refactor and feature work not mixed in the same PR
The second item is what makes the checklist valuable. CI cannot see mixed intent. Humans can. The whole template earns its keep by concentrating on exactly the judgments CI cannot make: separation of concerns, PR scope, alignment with the project's Code Direction, and the "did you remember to screenshot the UI change" items that live outside the test suite.
Apply the three principles together and the self-check lands somewhere between four and six items on most repos. On mine, five is the modal count. It fits on one screen and still carries weight.
Draft PRs for design feedback
Not every PR wants a shippable review. Some want a sanity check on the approach before you spend three days finishing. GitHub's Draft PRs plus a second template file handle this. Put it at .github/PULL_REQUEST_TEMPLATE/draft.md:
<!-- Draft PR template -->
## This is a Draft PR
Design feedback wanted. Do not nitpick the code yet.
## What I want to discuss
<!-- The design decision I am unsure about. -->
## Approach I tried
<!-- Why I went this direction. -->
## Concerns
<!-- Problems I can already see. -->
The reason this matters: a lot of "huge review burden" PRs are actually two PRs stacked. One is the design decision; one is the implementation. If the design decision is wrong, the implementation review is wasted work.
Draft PRs let reviewers answer the design question first, cheaply, before anyone has produced a 1,400-line diff to redo.
Multiple templates on one repo
.github/PULL_REQUEST_TEMPLATE/ is a directory (not a single file) as soon as you have more than one template. One per PR shape:
.github/
└── PULL_REQUEST_TEMPLATE/
├── feature.md
├── bugfix.md
├── refactor.md
└── draft.md
Appending ?template=feature.md to the PR URL loads that one. Point to these links from your contributing docs so authors do not have to remember.
On repos with a steady mix of feature and bugfix work, this is the lowest-friction way to get the right template in front of the author without a "please use the right template" comment on every PR.
The payoff is small-per-PR and large-in-aggregate. A bugfix PR without "reproduction steps" takes an extra ten minutes to review; a feature PR without "screenshots" bounces back and forth once or twice. The template catches both before they become comments.
What to leave out
The honest limit of what a PR template can do:
- It will not catch logic bugs. CodeRabbit, Copilot, a human reviewer, and tests do that. The template shapes the review request; it does not do the review.
- It cannot enforce items the author ticks without reading. That is a culture problem, not a template problem. The rules above (short, specific, non-duplicative with CI) keep the ticking cost high enough that reading is cheaper.
- It does not replace a design doc. Draft PRs help, but for a change that affects three services, a separate design doc still carries more than a draft PR template can.
If any of those three looks like a problem your template is trying to solve, the problem belongs somewhere else. A PR template stays valuable because it stays small.
The shape I recommend
Five self-check items. Three design principles behind them. A separate draft template for design feedback. Change-type-specific templates when the mix justifies it.
That is enough structure to remove most "where do I even start" friction from review, and small enough that nobody treats the checklist as a form to speed-click. The reviewer gets a recipe with the dish; the author gets fewer "could you explain what this PR is for" comments; CI keeps doing the parts CI is good at.
The full pipeline this chapter belongs to covers how AGENTS.md drives the review, how three AI reviewers (CodeRabbit, Copilot, Claude Code) read a PR differently, and how to keep the review loop under thirty minutes per PR: Systematizing AI Code Review (Kindle Unlimited).
Comments
No comments yet. Start the discussion.