Pull request template for GitHub
A pull request template is a Markdown file that GitHub puts in the description box of every new pull request, so authors explain the change the same way each time. Save the example below as .github/pull_request_template.md on your default branch and open a pull request to see it.
Updated
Files
## What changed
<!-- One or two sentences on what this pull request does and why. Link the issue it closes. -->
Closes #
## How to test
<!-- Steps a reviewer can follow to see the change work. -->
1.
2.
## Screenshots
<!-- Before and after for anything visible. Write "No visible change" otherwise. -->
| Before | After |
| --- | --- |
| | |
## Checklist
- [ ] Tests cover the change, or I explained why they don't.
- [ ] Documentation is updated where behavior changed.
- [ ] Database changes include a migration that runs on existing data.
- [ ] No secrets, credentials or personal data are in the diff.
## Notes for reviewers
<!-- Risky parts, open questions or follow-up work. Delete this section if there is none. -->Save with your agent
Run this command to add Sniptide to Claude Code in the current project. Open /mcp in Claude Code and sign in to Sniptide. Once the server shows as connected, use the prompt below to save a private copy in your library.
claude mcp add --scope local --transport http sniptide https://app.sniptide.com/api/mcpRead https://sniptide.com/templates/pull-request-template.json and use create_snippet to save its files as a private Sniptide snippet titled "Pull request template for GitHub". Keep the file names and contents from the JSON.Where to put it
GitHub looks for pull_request_template.md in .github/, the repository root or docs/, and only on the default branch. The file name isn't case-sensitive. After you merge it, start a new pull request and the description box opens with the template. GitHub pull request templates
The template only fills the box. Authors can still delete every line, so keep it short enough that they won't want to.
What each section does
Section | What it gives the reviewer | When to change it |
|---|---|---|
What changed | The purpose before the diff. Closes # links the issue and closes it on merge. | Rarely. |
How to test | Steps to see the change work, so review doesn't stop at reading code. | Add your preview deployment link here if you have one. |
Screenshots | Before and after for visible changes, in a table so they sit side by side. | Remove it for libraries and APIs without a UI. |
Checklist | The checks your team forgets most. | Replace the items with the comments your reviewers repeat. Keep it under six. |
Notes for reviewers | Where to look closely and what is left for later. | Rarely. |
HTML comments (<!-- -->) guide the author and don't show in the rendered description.
Variant: several templates
For repositories with distinct kinds of changes, put one file per kind in .github/PULL_REQUEST_TEMPLATE/:
.github/PULL_REQUEST_TEMPLATE/
feature.md
bugfix.md
release.mdGitHub doesn't show a chooser for these. Authors pick one by adding ?template=bugfix.md to the compare URL, such as https://github.com/OWNER/REPO/compare/main...my-branch?template=bugfix.md. Link those URLs from your CONTRIBUTING.md.
Variant: pull requests from coding agents
When agents open pull requests, ask in AGENTS.md that they fill in this template, and add the section that reviewers of agent work need most:
## What I verified
<!-- Commands you ran and their result. List anything you could not verify. -->
- [ ] `npm test` passed
- [ ] I ran the app and checked the change by hand