# 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 November 30, 2026. Canonical: https://sniptide.com/templates/pull-request-template
Open it in the Sniptide editor: https://app.sniptide.com/new?template=pull-request-template
Files as JSON: https://sniptide.com/templates/pull-request-template.json

## Files

### .github/pull_request_template.md

```markdown
## 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. -->
```

## Where to put it [#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](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository)

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 [#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 [#variant-several-templates]

For repositories with distinct kinds of changes, put one file per kind in `.github/PULL_REQUEST_TEMPLATE/`:

```text title=".github/PULL_REQUEST_TEMPLATE/"
.github/PULL_REQUEST_TEMPLATE/
  feature.md
  bugfix.md
  release.md
```

GitHub 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](/templates/contributing-md).

## Variant: pull requests from coding agents [#variant-pull-requests-from-coding-agents]

When agents open pull requests, ask in [AGENTS.md](/templates/agents-md) that they fill in this template, and add the section that reviewers of agent work need most:

```md title=".github/pull_request_template.md"
## 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
```
