Skip to content

Add Issue and Template label workflow for ignored and missing templates#13254

Open
TobiGr wants to merge 2 commits intoTeamNewPipe:devfrom
TobiGr:template-bot
Open

Add Issue and Template label workflow for ignored and missing templates#13254
TobiGr wants to merge 2 commits intoTeamNewPipe:devfrom
TobiGr:template-bot

Conversation

@TobiGr
Copy link
Copy Markdown
Contributor

@TobiGr TobiGr commented Feb 15, 2026

What is it?

  • Meta improvement to the project (dev facing)

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

@github-actions github-actions bot added the size/medium PRs with less than 250 changed lines label Feb 15, 2026
@TobiGr TobiGr added meta Related to the project but not strictly to code and removed size/medium PRs with less than 250 changed lines labels Feb 15, 2026
Copy link
Copy Markdown
Member

@theimpulson theimpulson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Copy Markdown
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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)';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's correct. But I did not see any better options than closing the issue.

@github-actions github-actions bot added the size/medium PRs with less than 250 changed lines label Feb 19, 2026
@TobiGr
Copy link
Copy Markdown
Contributor Author

TobiGr commented Feb 19, 2026

Can't the script part get extracted into a proper script?

Done. I re-added the labels in the test pr and issues to verify that it still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to the project but not strictly to code size/medium PRs with less than 250 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants