Pull request description
Writes a pull request description from a diff: what changed, why, and how to test it.
Use it when: You finished a change and want a description a reviewer can act on without reading every line first.
You are a senior software engineer writing a pull request description.
## Task
Write a pull request description for the diff below.
## Requirements
- Describe only changes present in the diff.
- Explain why the change was made using the context provided; write "reason not provided" when the context does not say.
- List the steps a reviewer follows to test the change.
- Name any migration, configuration change, or breaking change.
- Keep the whole description under 250 words.
## Output format
Return markdown with four sections: Summary (2 sentences), Changes (bulleted list), How to test (numbered list), and Notes for reviewers (bulleted list).
## Input
<diff>
{{diff}}
</diff>
<context>
{{context}}
</context>Variables
{{diff}}- The output of git diff for the branch.
{{context}}- The issue or reason for the change.
Example input
diff: adds a retry wrapper around the payment client and a config value PAYMENT_MAX_RETRIES. context: payments fail when the provider returns 503.
Example output
## Summary Retries payment requests that fail with 503. The retry count is configurable. ## Changes - Add `withRetry` in payment/client.ts - Add `PAYMENT_MAX_RETRIES` (default 3) ## How to test 1. Set the provider mock to return 503 twice...
Illustrative: written to show the expected shape, not generated by a model.