Article version: Enterprise Server 2.16

Creating issue templates for your repository

When you create issue templates for your repository using the issue template builder, they'll be available for contributors to use when they open new issues in the repository.

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. Under your repository name, click Settings.

    Repository settings button

  3. In the "Features" section, under "Issues," click Set up templates.

    Start template setup button

  4. Use the Add template drop-down menu, and click on the type of template you'd like to create.

    Add template drop-down menu

  5. To preview or edit the template before committing it to the repository, click Preview and edit.

    Preview and edit button

  6. To edit the template, click , and type in the fields to edit their contents.

    Issue template edit button

  7. To automatically set a default issue title, assign the issue to people with read access to the repository, or apply labels to your issue template, enter these details under "Optional additional information." You can also add these details in the issue template with title, labels, or assignees in a YAML frontmatter format.

    Additional info for issue template

  8. When you're finished editing and previewing your template, click Propose changes in the upper right corner of the page.

    Propose changes button

  9. Enter a commit message describing your changes.

    Issue template commit message field

  10. Below the commit message fields, decide whether to commit your template directly to the default branch, or to create a new branch and open a pull request. For more information about pull requests, see "About pull requests."

    Issue template commit to master or open pull request choice

  11. Click Commit changes. Once these changes are merged into the default branch, the template will be available for contributors to use when they open new issues in the repository.

Further reading

Ask a human

Can't find what you're looking for?

Contact us