Chooce video playback speed
speed:1

Create a GitHub PR Template

InstructorJoe Previte

Share this video with your friends

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.

This lesson is a Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.

Instructor: 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.

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.

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.

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.