5

The current project contains the directory: .github/ISSUE_TEMPLATE/ and a bug_report.md and a feature_request.md file inside there. Also I have a config.yml file but unfortunately If I try to create an issue none of the templates will be taken into account?

Does someone has a hint/idea what I could have forgotten or made wrong?

khmarbaise
  • 92,914
  • 28
  • 189
  • 235

2 Answers2

2

Creating an issue template mentions

This is the legacy workflow to create an issue template. We recommend using the upgraded multiple issue template builder to create multiple issue templates.

The configuration mentions:

If you used the legacy workflow to manually create an issue_template.md file and enable blank issues in your config.yml file, the template in issue_template.md will be used when people chose to open a blank issue.
If you disable blank issues, the template will never be used.


The OP khmarbaise adds in the comments:

I recreated them.

And the issue was that my templates contained comments which seemed to be a problem or the config.yml...This is now working.


Starting June 2021, this is evolving:

Issues forms beta for public repositories

Issues submitted to open source projects often lack important information.

Markdown issue templates can help by providing text that contributors can remove and replace with their own input – but sometimes contributors can miss details or get confused.

New, YAML configured issue forms enable maintainers to build structured forms with required fields and easy-to-follow steps so that they can capture every important detail.

User submits an issue via issue forms. -- https://i2.wp.com/user-images.githubusercontent.com/1469659/122435700-20f37b00-cf90-11eb-8028-056c7449e555.gif

Issue forms are now available in beta for all publicly accessible repositories.

Learn more about issue forms

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • First thanks for you answer but unfortunately I don't have an `issue_template.md` file in my repo I only have as mentioned `bug_report.md` and `feature_request.md` in my repo and as I mentioned `config.yml` in the repo... – khmarbaise May 03 '20 at 21:37
  • Yes. And interestingly the page for https://github.com/khmarbaise/maven-it-extension/community does not show me active templates which shows the problem..?... – khmarbaise May 04 '20 at 16:23
  • Could you try and recreate them through the Web GUI instead of manually? – VonC May 04 '20 at 16:24
  • 1
    I found the problem. I recreated them. And the issue was that my templates contained comments which seemed to be a problem or the `config.yml`...This is now working. Thanks for you guidance/time. – khmarbaise May 04 '20 at 16:40
0

Just to add that if you have any old .md template with the same name as a .yml template it will not shown any repo should you try to make organization default template .