Create a GitHub PR Template

Joe Previte
InstructorJoe Previte
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 2 years ago

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.

egghead
egghead
~ 13 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today