Created issue templates as mentioned on github but they are not activated somehow
Asked Answered
A

3

7

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?

Ambient answered 3/5, 2020 at 17:52 Comment(0)
P
3

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://static.mcmap.net/file/mcmap/ZG-AbGLDKwfpLi21bC2jaRA/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

Pickwickian answered 3/5, 2020 at 19:8 Comment(4)
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...Ambient
Yes. And interestingly the page for github.com/khmarbaise/maven-it-extension/community does not show me active templates which shows the problem..?...Ambient
Could you try and recreate them through the Web GUI instead of manually?Pickwickian
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.Ambient
N
2

Adding on to @VonC's answer and potentially only related to the new Issue forms: when I recently added .yml files to a repo, they were also not recognized properly. However, navigating to that repo's .github/ISSUE_TEMPLATE/ and selecting the <ISSUE_FORM>.yml file, GitHub displayed on top of it a specific error message in red: There is a problem with this template (and the details).

If there's no issue with your file, you should see a message like this indicating that the form is fine: This file is used as an Issue Form template. And creating a new issue then let me use the form as expected :)

Nev answered 25/7 at 9:51 Comment(0)
M
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 .

Marketing answered 20/10, 2022 at 14:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.