Create a GitHub Issue 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 issue template inside of your repository. We make a template for feature requests by creating the file .github/ISSUE_TEMPLATE/feature_request.md inside of our repository. Then it's as simple as filling out the template with the form you want people to fill out.

This can save you time by adding basic requirements to bug reports and feature requests. If you prefer to learn by reading, you can read the accompanying blog post.

Link to example GitHub issue template.

Joe Previte: [00:00] At the root of your project, create a new directory called .github. Inside that directory, create another directory called ISSUE_TEMPLATE with an underscore in between and all in caps. Inside this new directory, create a file called feature_request.md. This is where we'll add our first issue template. I'm going to paste in something I created previously and save it.

[00:30] One thing I want to point out is the front matter up here. You'll notice a few different fields. The first is name which corresponds to the name of the option for the template. About is a description for the issue template. Labels is any labels that you want to automatically be added when this issue template is used.

[00:54] The next thing you want to do is make sure that you committed, so that these changes are on the default branch for the project. Now let's see our template in action.

[01:03] If we select a new issue, we'll see that we now have this option that we can choose from and we see that both the name and about fields show up here for the template. If we select get started, you'll notice that the label enhancement is already selected and you'll see the markdown body here.

[01:23] That's it. Now you can use issue templates to standardize your projects for bug reports, feature request and anything else you can imagine.

egghead
egghead
~ 2 hours 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