Create a GitHub PR Template

Joe Previte
InstructorJoe Previte
Share this video with your friends

Social Share Links

Send Tweet

Learn how to create a GitHub PR template in your repositories. It's as simple as creating a .github folder and a pull_request_template.md file in that folder. Then just fill out the template how you want.

This can save you time and standardize your PR process. If you prefer to learn by reading, you can read the accompanying blog post.

Link to example GitHub PR template.

Instructor: [0:00] At the root of your project, create a new directory called .github. Inside of this new directory, create a new file called pull_request_template.md. Here, you can add your actual template.

[0:14] I'm going to paste in something I've already created, save it. Make sure you push these changes to the default branch on your project.

[0:20] Once our change is on the default branch for the project, we can open up a new pull request to see our template in action.

[0:28] You'll notice, when you open that pull request, the body for the pull request description will already be pre-filled with that template. Now, you have a standard process for pull requests using a GitHub PR template.