Black Friday: 40% off ThatPrompt. $23.40 instead of $39, until 30 November. Get the deal

ThatPrompt

Pull request description prompt

Write a pull request description from a diff and its issue, so reviewers know what changed, why, how it was tested and where to start reading.

Category
Coding
Tags
GitCode reviewDocumentation
Added
Added

Fill in the prompt

The prompt below changes as you type, and Copy prompt copies it filled in. What you type stays in this browser. Leave a box empty to fill it in after you paste.

The prompt

Write a pull request description for the change below.

The issue or ticket it addresses:
{{issue}}

The diff:
{{diff}}

Use these sections:

## What
What changes, in two or three sentences a reviewer can read in ten seconds.

## Why
The problem this solves, taken from the issue.

## How to review
Where to start reading, which files hold the real change and which are mechanical, and anything the reviewer should look at closely.

## Testing
How the change was tested. Only state tests you can see in the diff. List anything else as "Not verified" so I can fill it in.

## Risks
What could break, and how to roll back if it does.

Use plain language and no marketing words. Don't invent ticket numbers, metrics or test results.

Replace each {{highlighted part}} with your own text before you send it.

How to use it

Paste the issue text or the ticket description into {{issue}}, with its acceptance criteria if it has any. The model needs it to write the Why section. Without it, the model guesses, and a guessed reason is worse than no reason at all.

Put the diff in {{diff}}. For a big branch, the output of git diff main...HEAD --stat plus the files that hold the real change is enough.

Example for {{issue}}: "Users can't reset a password when their email has a plus sign. The reset link returns a 404."

The Testing section only claims tests the model can see in the diff, and it marks everything else as not verified. Fill those in yourself before you ask for a review. Reviewers trust that section more than any other, so it's the one that must be true.

All coding prompts