Skip to content

feat: auto-close issues that bypass the issue-form templates - #2560

Closed
rajarsheechatterjee wants to merge 1 commit into
masterfrom
claude/blank-issue-creation-bug-8arcti
Closed

rajarsheechatterjee wants to merge 1 commit into
masterfrom
claude/blank-issue-creation-bug-8arcti

Conversation

@rajarsheechatterjee

@rajarsheechatterjee rajarsheechatterjee commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

blank_issues_enabled: false in .github/ISSUE_TEMPLATE/config.yml only hides the "Open a blank issue" link on the issues/new/choose picker page — GitHub doesn't offer any way to enforce required issue-form fields outside that page. An issue created via the API/CLI, or a deep link that falls back to a blank compose form (as happened with #2559), skips validation entirely.

This adds a new workflow, .github/workflows/enforce_issue_template.yml, that reacts to the one reliable, template-agnostic signal we do have: each of the three issue forms (report_issue.yml → Bug, request_feature.yml → Feature Request, request_plugin.yml → Plugin Request) applies its own label automatically at creation time. So an issue with zero labels at issues: opened reliably means it skipped every template.

When that happens, the workflow:

  • Ensures an invalid label exists (creates it if missing) and applies it.
  • Posts a comment explaining the issue wasn't filed via a template and links to all three template URLs.
  • Closes the issue (reason: not planned).

Skips issues opened by bots (github.event.issue.user.type != 'Bot') to avoid interfering with any future automation-created issues.

GitHub can't enforce required issue-form fields outside its own web
picker, so an issue created via the API, a deep link, or a fallback
(like lnreader-plugins#2559) lands with no labels at all, since every
template applies its own label on creation. Detect that signal and
auto-close such issues with a comment pointing back to the three
templates.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TC7Bc3M6GdnEdLm8HU1f35
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants