The pull request description is part of the work

A PR with no context asks the reviewer to rebuild your afternoon from a diff. Write down what changed, why, and how you checked it.

A pull request that is only a title and a diff asks the reviewer to reconstruct your afternoon. Sometimes they can. Often they guess, approve the parts they recognize, and miss the part that actually needed a second set of eyes.

I treat the description as part of the change. If I do not have time to write it, I do not have time to ask someone else to review it.

What I put in it

A useful description answers four questions:

  • What is different after this lands?
  • Why this approach, especially if another one was obvious?
  • How did I check it? Tests run, pages I opened, cases I could not cover.
  • What should a reviewer stare at? A risky migration, a change in caching, a contract another service depends on.

If there is a ticket or an issue, I link it. I do not paste the whole ticket back into the PR. The link is enough, plus the parts that are not in the ticket: the leftover risk, the follow-up, the thing I almost broke.

I already wrote about [what I look for in a review](/journal/what-i-look-for-code-reviews). The description is how you help that review start in the right place.

What I leave out

I do not list every file. Git already does that. I do not write "as discussed" with no link to the discussion. I do not include secrets, production URLs with tokens, or private data from a fixture I used while testing.

I also do not use the description to hide a change. If the title says "docs" and the diff rewrites an API, the description should say that plainly, and the title should change. Reviewers should not have to catch a surprise in the last file.

A short template I actually fill in

## What
-

## Why
-

## How I checked
-

## Please pay attention to
-

Empty headings are worse than no template, so I delete a section if it does not apply. The point is not a ritual. The point is that a reviewer who opens this tomorrow, or I who opens it in six months, can tell what we thought we were doing.

Writing this down also catches sloppy work before anyone else sees it. If I cannot explain the change in a few lines, I usually do not understand it well enough to ship it. That is a cheaper discovery in the description than in production.

Back to Journal