This site runs best with JavaScript enabled.Create a GitHub PR Template

Create a GitHub PR Template

February 08, 2020

––– views


PR templates are one of my favorite features. I can't remember when I first learned about them but essentially, it's a template which appears when someone opens a pull request on your project. This comes in handy for projects with multiple contributors.

If you prefer to learn by watching, you can find this on egghead.

Here's how you can set it up:

  1. Create a .github directory at the root of your project
  2. Add a file called pull_request_template.md . Here's an example:
This PR...
## Changes
-
## Screenshots
(prefer animated gif)
## Checklist
- [ ] tested locally
- [ ] added new dependencies
- [ ] updated the docs
- [ ] added a test
Fixes #
  1. Make sure these changes are on the default branch
  2. Open a PR and viola! See your template in action.

Enjoy the added benefits of using PR templates!

Discuss on TwitterEdit post on GitHub

Share article

Join the Newsletter

I send a couple emails per month related to programming and learning. I also share goodies and deals here.



Help others learn to code