Descrição de pull request
Escreve a descrição de um pull request a partir de um diff: o que mudou, por quê e como testar.
Use quando: Você terminou uma mudança e quer uma descrição com a qual o revisor possa agir sem ler cada linha antes.
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>Variáveis
{{diff}}- A saída de git diff da branch.
{{context}}- A issue ou o motivo da mudança.
Entrada de exemplo
diff: adds a retry wrapper around the payment client and a config value PAYMENT_MAX_RETRIES.
context: payments fail when the provider returns 503.Saída de exemplo
## 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...Ilustrativa: escrita para mostrar a forma esperada, não gerada por um modelo.