Add Issue and Template label workflow for ignored and missing templates#13254
Add Issue and Template label workflow for ignored and missing templates#13254TobiGr wants to merge 2 commits intoTeamNewPipe:devfrom
Conversation
theimpulson
left a comment
There was a problem hiding this comment.
Can't the script part get extracted into a proper script?
The workflow creates a comment on the issue or PR that has a missing or ignored template asking the author to use the template properly.
Stypox
left a comment
There was a problem hiding this comment.
Good idea, thank you :-)
Maybe make it so that maintainers or collaborators opening issues/PRs don't receive the same treatment (e.g. in this issue I did not follow the template for obvious reasons). Sorry I just now realized that this does not auto-detect missing template. Then ignore this.
.github/workflows/template-label.yml
Outdated
| if (isPR) { | ||
| template = '<details><summary>Raw template</summary>\n```\n' + process.env.PR_TEMPLATE + '\n```\n</details>'; | ||
| } else { | ||
| template = '[Bug report template](https://raw.githubusercontent.com/TeamNewPipe/NewPipe/refs/heads/dev/.github/ISSUE_TEMPLATE/bug_report.yml), [Feature request template](https://raw.githubusercontent.com/TeamNewPipe/NewPipe/refs/heads/dev/.github/ISSUE_TEMPLATE/feature_request.yml)'; |
There was a problem hiding this comment.
These links are not very useful, you can't copy-paste the raw template from there. But I don't really see other options, unless we auto-close the issue and tell people to open a new one.
There was a problem hiding this comment.
Yes, that's correct. But I did not see any better options than closing the issue.
Done. I re-added the labels in the test pr and issues to verify that it still works. |
What is it?
Description of the changes in your PR
This adds a workflow to react on missing or ignored templates.
The workflow creates a comment on the issue or PR that has a missing or ignored template asking the author to use the template properly.
TobiGr#45, TobiGr#46, and TobiGr#47 show the workflow in action.
Due diligence