Is it possible to have/use multiple github issue templates on GitHub?

前端 未结 2 1859
夕颜
夕颜 2021-01-16 02:51

As the title say, is there a way to accomplish this?

Like having individual issue templates, one for bug reports ISSUE_TEMPLATE_BUG.md, one for general

2条回答
  •  逝去的感伤
    2021-01-16 03:06

    Since January (25th) 2018, 3 months after this OP (Oct. 2017), this is now possible.

    See "Multiple issue and pull request templates"

    To add multiple issue templates to a repository create an ISSUE_TEMPLATE/ directory in your project root.
    Within that ISSUE_TEMPLATE/ directory you can create as many issue templates as you need, for example ISSUE_TEMPLATE/bugs.md.

    To use those issue templates add ?template= and your template name to the new issue URL.
    Continuing the example, if you create the template bugs.md, you add ?template=bugs.md to the new issue URL, so it becomes /issues/new?template=bugs.md.

提交回复
热议问题