Pull Request templates are a great way to communicate expectations to developers. You should create different PR templates for different types of PRs. For example, you can have a PR template for bug fixes, a PR template for new features, and a PR template for refactoring. You are also able to create specific PR templates for specific code paths.
You can read how to implement PR templates in the GitHub Docs - Creating a pull request template for your repository.
When creating a PR template, think of how you can help developers create great PRs.
❌ Figure: Bad example - There is no information to guide developers
🙂 Figure: OK example - The PR template contains handy links to guidance for creating great PRs ⭐
✅ Figure: Good example - This PR template asks for context (to help reviewers), along with guidance links for creating great PRs ⭐
AI agents write most PR descriptions now. Agents such as GitHub Copilot and Claude Code will generally read .github/pull_request_template.md and follow its instructions, so the template is how you make every agent's PR come with a summary of the work and proof that it works. Humans read the result when they review it.
A good template:
SSW's SSW.GitHub.Template repository contains the template SSW uses as a starting point for new repositories. Copy it into .github/pull_request_template.md and adapt it to your project.
Note: The copy below is a snapshot. Always take the latest version from SSWConsulting/SSW.GitHub.Template/.github/pull_request_template.md.
## Summary<!--INSTRUCTIONS: replace this comment with your answer.Start with the main changes in short bullets, most important first.Group related work into a single bullet and leave out routine implementation details.Example:- Added CSV export for filtered orders, using the filters already selected on the page.- Restricted exports to users who already have permission to view orders.Next, show the smallest view that makes the change clear. Skip preambles and keep prose brief. Pick one or two of:- Pseudocode for logic or an algorithm- A call tree for runtime control flow- A component tree for UI structure (include state and module boundaries that matter)- A shallow file tree for file responsibilities or a broad refactor- A Mermaid diagram for component interaction or data flow- A `diff` block of any of the above when the surrounding shape already exists and the point is what changedPut each visual next to the short sentence it supports. Keep only the calls, files, props and states a reviewer needs.Skip preambles and keep prose brief.-->## Why<!--INSTRUCTIONS: replace this comment with your answer.Why are we making this change? Lead with the outcome a reviewer needs to know.Then link the PBI or issue, or give the email subject or conversation, as a reference.-->## Evidence<!--INSTRUCTIONS: replace this comment with your answer.Show concrete proof that the change works.- UI changes: side-by-side screenshots or a short clip- Other changes: link the relevant check, test run or console output, and name the test that failed before and passes nowEither way, say what you verified and what you didn't.Before/After is optional. Use it only when there is a meaningful before state (a bug fix, a changed screen or output):**Before:** <screenshot / clip / output / failing test run>**After:** <screenshot / clip / output / passing test run>-->## Merge Danger**Door:****Blast Radius:****Security:**<!--INSTRUCTIONS: replace this comment and fill in Door, Blast Radius and Security.- Door: "two-way" if the change is cheap to roll back, or "one-way" if it is destructive or hard to reverse (data migrations, deletions, published contracts). Add a sentence if it isn't obvious.- Blast Radius: in a short sentence or two, what could break, who would notice, and how would we undo it? Think broken consumers, layout shift, mobile responsiveness, data loss.- Security: could this change introduce a security risk? Think authentication and authorization, input validation and injection, secrets or credentials, personal or sensitive data, new dependencies, and permission or infrastructure changes. Name any risk and how it's mitigated, or say why there's none.Then list any security reviews done, and what they found. For example: Claude Code's /security-review, a static analysis or dependency scan, or a review by a security-focused colleague (e.g. Solution Architects). If none was done, say so.--><!--Check out the relevant rules- https://www.ssw.com.au/rules/use-pull-request-templates/- https://www.ssw.com.au/rules/rules-to-better-pull-requests- https://www.ssw.com.au/rules/write-a-good-pull-request- https://www.ssw.com.au/rules/over-the-shoulder-prs-->
A bug-fix PR has a different job from a feature PR. The reviewer needs to confirm that you found the real cause and that the fix is proven, without rerunning the investigation. Four headings do that:
Fixed the slow orders page. Added a test.
❌ Figure: Bad example - The reviewer has to rerun the whole investigation to know whether this is right
The failure
GET /orders p95 rose from 210 ms to 11.8 s at 08:52 on 2 Sep. Customers with 50+ order lines timed out.
Cause
The 08:50 deployment added ShippingEstimateService, which calls the carrier API once per order line. Confirmed from the carrier request count in App Insights, which matches the line count per order.
Fix
Batch the estimate calls per order through IShippingEstimateBatcher. The cache layer was not the cause (hit ratio stayed at 94%), so it is unchanged.
Verification
Shipping_estimates_are_batched_per_order - red before the fix, green after, revert check confirms✅ Figure: Good example - The reviewer can confirm the cause, the fix, and the proof from the description alone
Put these headings in a bugfix.md template so they are there every time. See the GitHub docs above for how to offer more than one template.
Tip: You can use comments in the Markdown as above. These comments will not show when the PR is created, and is only visible when editing the description.