Pull request description generator prompt
Paste a diff and get a clear PR description with summary, motivation, testing notes, and what reviewers should focus on.
متى تستخدم هذا البرومبت
- Right before opening a pull request.
- When a PR touches several files and needs a clear summary for reviewers.
- When your team requires a consistent PR template to be filled in.
نص البرومبت
Write a pull request description for this change: {{focus}}. Include a summary, why it's needed, how it was tested, and any risks reviewers should focus on.
{{CLIPBOARD}}{{focus}}{{CLIPBOARD}}الكتلة {{CLIPBOARD}} تُستبدل تلقائياً بما نسخته قبل الضغط على «نسخ».
كيف تستخدمه
- انسخ البرومبت بالزر أو املأ المتغيرات أولاً.
- الصقه في ChatGPT أو Claude أو Gemini.
- عدّل النتيجة أو أعد الطلب بتغيير المتغيرات.
مثال على النتيجة
## Summary Adds rate limiting to the /api/login endpoint to prevent brute-force attempts. ## Why Security review flagged unlimited login attempts as a risk. ## Testing Added unit tests for the rate limiter; manually verified lockout after 5 failed attempts. ## Reviewer focus Please check the Redis key expiry logic in rateLimiter.ts.
نصائح للاستخدام
- Paste the actual diff, not just a description, so the summary reflects real changes.
- If your repo has a PR template, paste it too and ask the output to follow that structure.
- Call out any risky or unfinished parts explicitly so reviewers don't miss them.
أسئلة شائعة
- Can it match my team's existing PR template?
- Yes, paste your template alongside the diff and ask it to fill in each section.
- Will it write test cases too?
- It summarizes testing you describe or that's visible in the diff; use a separate unit test prompt to generate new tests.