Skip to content

Add workflow to auto-close mistake issues#5916

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/create-workflow-for-issue-checks
Draft

Add workflow to auto-close mistake issues#5916
Copilot wants to merge 4 commits intomainfrom
copilot/create-workflow-for-issue-checks

Conversation

Copy link

Copilot AI commented Dec 8, 2025

Users occasionally open issues by mistake, such as issues with just a URL in the title (e.g., https://github.com/FortAwesome/Font-Awesome.git) or issues with placeholder text that wasn't filled out (e.g., "TYPE YOUR QUESTION HERE").

Changes

Added .github/workflows/close-mistake-issues.yaml that:

  • Triggers on issue open events
  • Detects mistake patterns:
    • Title is a standalone URL
    • Title contains .git with body < 20 chars
    • Title contains placeholder text (like "TYPE YOUR QUESTION HERE", "TYPE YOUR ISSUE HERE", etc.) with unfilled template body
  • Auto-closes detected issues with comment: "Appears to have been opened by mistake."

Uses actions/github-script@v7 with minimal issues: write permission.


  • I've followed the contribution guidelines.
  • I've signed the CLA.
  • I've successfully run make lint && make test.
  • I've added or updated any relevant documentation.
  • I've updated the relevant release notes.
Original prompt

This section details on the original issue you should resolve

<issue_title>https://github.com/FortAwesome/Font-Awesome.git</issue_title>
<issue_description></issue_description>

<agent_instructions>Create a workflow that runs when issues get opened and determines whether they are these sorts of mistake issues. If they are, the workflow should close the issue with a comment "Appears to have been opened by mistake."</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@bepri Appears to have been opened by mistake.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 8, 2025 21:28
Co-authored-by: lengau <4305943+lengau@users.noreply.github.com>
Co-authored-by: lengau <4305943+lengau@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow for mistake issue detection Add workflow to auto-close mistake issues Dec 8, 2025
Copilot AI requested a review from lengau December 8, 2025 21:32
@lengau
Copy link
Contributor

lengau commented Dec 8, 2025

@copilot make it work with issues like this too: #5913

Co-authored-by: lengau <4305943+lengau@users.noreply.github.com>
Copy link
Author

Copilot AI commented Dec 8, 2025

@copilot make it work with issues like this too: #5913

Done! The workflow now detects issues like #5913 with placeholder text in the title (e.g., "TYPE YOUR QUESTION HERE") and unfilled template bodies. Commit: ab33404

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants