Pull request description: what to write, and in what order
A pull request description tells the reviewer why the change exists, what it does and how you tested it, before they open the diff.
What goes in a pull request description?
Three things, in a sentence or two each: why the change exists, what it does, and how you know it works. Add the issue it closes, and say if anything breaks for users. That is what the five templates on the home page ask for, from React's two headings to Kubernetes' six.
| Section | Who asks for it | What the reviewer gets |
|---|---|---|
| Why (motivation, problem) | React, Kubernetes, Rails, dbt | the reason to read the diff at all |
| What changed (detail, solution, new behavior) | Kubernetes, Angular, Rails, dbt | what to look for |
| How it was tested | React (required), and the Angular, Rails and dbt checklists | proof, not a promise |
| Linked issue | Kubernetes ("Fixes #"), Rails ("Fixes #ISSUE"), dbt ("Resolves #") | the issue closes on merge |
| Breaking or user-facing change | Kubernetes, Angular | a release note |
A pull request description example from React
React's pull request #38172, merged November 9, 2026, fills its template in full:
## Summary
The legacy events pipeline isn't currently in use, after the modern
one (that lives in the RN repo) was enabled by default everywhere.
This deletes the legacy pipeline from here to clean up the now
unused code.
## How did you test this change?
Tested e2e on react-native
Why first, then the proof, in five lines. Of React's last 60 merged pull requests (November 9 to December 3, 2026), 42 kept the Summary heading and 38 kept the testing heading (React's merged pull requests).
In what order do big projects ask for it?
Four of the five ask for the why before the what: React, Kubernetes, Rails and dbt. Angular starts with its checklist and the PR type, then describes the behavior before and after.
| Project | Order its template asks in |
|---|---|
| React | Summary (the motivation) → How did you test this change? |
| Kubernetes | PR type → what it does / why → linked issue → notes for the reviewer → user-facing change → AI use |
| Angular | checklist → PR type → current behavior → new behavior → breaking change → other |
| Rails | Motivation / Background → Detail → Additional information → checklist |
| dbt | Resolves # → Problem → Solution → checklist |
What do 62 pull request description templates ask for?
Of the 100 most-starred GitHub repositories, 62 have a template. This is how many ask for each field. The survey, one row per repository with a link to each file, is pull-request-templates-top-100-repos-2026-12-03.csv (CC BY 4.0).
| Field | Templates | Share |
|---|---|---|
| What changed | 54 | 87% |
| How it was tested | 48 | 77% |
| A checklist | 44 | 71% |
| Why the change | 43 | 69% |
| Docs updated | 40 | 65% |
| Link to a contributing guide | 38 | 61% |
| Linked issue | 36 | 58% |
| Mentions AI | 28 | 45% |
| Screenshots | 21 | 34% |
| Type of change | 15 | 24% |
| Breaking change or release note | 15 | 24% |
| Risk or impact | 14 | 23% |
| Licence, CLA or sign-off | 13 | 21% |
| Asks you to disclose AI use | 13 | 21% |
The method: a field counts when a heading, prompt or checkbox asks for it, matched by phrase and read by hand where the match was unclear. "Mentions AI" counts any line about AI tools; "asks you to disclose AI use" counts only templates that ask the author to say whether AI was used.
How long should a pull request description be?
As long as it takes to answer each section; the templates themselves are short. The median template is 24 non-blank lines, with 122 words outside its HTML comments, so the reader's part is a few lines a section. Rails says to discard its template "when you just fix a typo". A one-line change can have a one-line description.
How do you link the issue so it closes on merge?
Write a closing keyword and the issue number in the description: Fixes #123, or Fixes owner/repo#123 for another repository. GitHub reads close, closes, closed, fix, fixes, fixed, resolve, resolves and resolved, with or without a colon, in any case.
The keyword works only when the pull request targets the default branch. Into any other branch, GitHub ignores it and the issue stays open (GitHub docs).
Is the description the same as the commit message?
No. Git keeps the commit messages; the description stays on GitHub with the pull request. Closing keywords work in both, but an issue closed from a commit message doesn't list the pull request as linked. Rails' checklist asks for both: a detailed commit message, and the template filled in.
What should a description say when an AI agent wrote the code?
Say so, and say how. Kubernetes asks every author "YES" or "NO" and, if yes, how AI was used. 13 of the 62 templates ask for that, and 28 mention AI somewhere. In React, 7 of the last 60 merged pull requests end with a "Generated with Claude Code" line, as #38227 does under its filled-in Summary and test sections.
Some review apps read a block the agent adds to the description. IonWarp reads an optional session block with the coding agent and its model and each step's minutes, and shows how long the agent took to open the pull request; the block never gates CI.
Who checks the code after the description is written?
A reviewer, reading the diff with your why in mind: GitHub asks the people a CODEOWNERS file names for the paths you touched. On GitHub, a review app can read every push first. IonWarp is the pick for GitHub teams: up to eight agents per push, each finding on its line with P0, P1 or P2 and a fix, for $49 a month per workspace with 5 seats. Its agents read the diff and the repository, not the description, and it doesn't run on GitLab or Bitbucket. The other apps, with prices, are on the home page.
Pull request description questions
Should the description repeat the diff?
No. The diff shows what changed line by line; the description says why, what to look at first, and how you know it works.
What if the pull request has no issue?
Say so. Kubernetes asks you to write N/A; dbt's template says code changes without an issue will not be merged, so open one first there.
Can I edit the description after review starts?
Yes, and a closing keyword added later still links the issue, as long as the pull request targets the default branch (GitHub docs).
Does the description end up in git history?
Not by itself. It lives on GitHub with the pull request; the commit messages are what git keeps. That is why Rails asks for a detailed commit message as well.
Should a coding agent write it?
It can draft it from the diff, but the why and the testing are yours to check. Kubernetes asks you to say whether AI was used and how.
How this page was checked
- React template
- Kubernetes template
- Angular template
- Rails template
- dbt template
- GitHub: linking a pull request to an issue
- GitHub: creating a pull request template
- IonWarp session analytics docs, IonWarp review docs and IonWarp pricing
- The 100-repository survey (CSV)
All read December 3, 2026.