From b170ff7d96cf2d89e6b4ccb4a4a3317d29a4117b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 9 Aug 2025 12:24:57 +0200 Subject: [PATCH] Move issue template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For unphanthomable reasons, GitHub, in their wisdom, have decided to remove support for single (default) issue templates. In practice, this means that the issue template for this repo was no longer used. To mitigate this, the template file needs to be moved to the `.github/ISSUE_TEMPLATE` subdirectory and YAML frontmatter must be added to the template for the template. This will also reinstate the issue template ✔ checkmark in the community profile checklist (Insights -> Community Standards). However, doing this will now create an even more annoying problem: the "New Issue" button will now open the issue template chooser instead of just defaulting to the single issue template for the repo. Unfortunately, this cannot be mitigated for repos which also have a security policy as the "Report a security vulnerability" item in the template chooser cannot be disabled. The only thing which can be done to at least prevent end-users from bypassing the issue template, is to add a `config.yml` file to disable blank issues. What can I say... :woman_shrugging: _sigh_ Refs: * https://github.blog/changelog/2025-02-18-github-issues-projects-february-18th-update/#%f0%9f%8c%85-single-issue-templates-issue_template-md-will-be-retired * https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/manually-creating-a-single-issue-template-for-your-repository --- .github/{ => ISSUE_TEMPLATE}/ISSUE_TEMPLATE.md | 5 +++++ .github/ISSUE_TEMPLATE/config.yml | 1 + 2 files changed, 6 insertions(+) rename .github/{ => ISSUE_TEMPLATE}/ISSUE_TEMPLATE.md (92%) create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md similarity index 92% rename from .github/ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md index 5ca75c07d..128d7d3f3 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md @@ -1,3 +1,8 @@ +--- +name: Generic issue +about: Use this template for all issues. +--- + | Q | A | --------------------------| --------------- | php-code-coverage version | x.y.z diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..3ba13e0ce --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false