← Back to issue list

Add workflow to auto-close mistake issues

View original Github issue

Metadata

Project
snapcraft
Number
#5916
Type
pull request
State
open
Author
copilot-swe-agent
Labels
Created
Updated
Closed

Current evaluation

Adds a GitHub Actions workflow to auto-close issues opened by mistake (URL-only titles, unfilled placeholder templates). Actively iterated: maintainer requested coverage for #5913, agent committed fix; review pending, PR title fails Conventional Commits check.

Suggested action: needs review

Reason: Last activity was 1 day ago when @lengau asked the agent to also detect issues like #5913 and the agent committed ab33404 in response, so it is actively under a review cycle with 2 unresolved review comments and 0 reviewers. The failing 'policy / Check PR title for Conventional Commits' check ('Add workflow to auto-close mistake issues' lacks a type prefix) needs an author fix before landing. No evidence the feature was implemented elsewhere (no close-mistake-issues workflow or related commits found in the repo).

Impact: 20 Quick Win: 15.0 Staleness: 5 Complexity: 25 Confidence: 75

Issue body

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](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md). - [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [ ] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation. - [ ] I've updated the relevant release notes. <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *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) > > <comments> > <comment_new><author>@bepri</author><body> > Appears to have been opened by mistake.</body></comment_new> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes canonical/snapcraft#5914 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/canonical/snapcraft/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 15.0
Staleness: 5
Complexity: 25
Confidence: 75
needs review Adds a GitHub Actions workflow to auto-close issues opened by mistake (URL-only titles, unfilled placeholder templates). Actively iterated: maintainer requested coverage for #5913, agent committed fix; review pending, PR title fails Conventional Commits check.
qwen/qwen3.6-35b-a3b
Staleness: 78
Complexity: 18
Confidence: 82
needs review Adds a GitHub Actions workflow to auto-close issues opened by mistake (URLs in title, placeholder text). Currently pending maintainer review after 225 days of inactivity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 20
Confidence: 65
needs review Adds a GitHub Actions workflow to auto-close issues opened by mistake, such as those with URLs in titles or unfilled templates. Currently inactive for 211 days awaiting maintainer review.
qwen3.6-35b-a3b-mtp-q6
Staleness: 10
Complexity: 15
Confidence: 90
needs review Adds a GitHub Actions workflow to automatically detect and close mistakenly opened issues, including standalone URLs, placeholder titles, or unfilled templates. Open and awaiting review.

Update history

Date Change
updated

Related work

  • Likely Fixed By: canonical/snapcraft#5914 (confidence 70%)

    PR body explicitly states 'Fixes canonical/snapcraft#5914', the URL-only mistake issue that motivated this workflow.

  • Related To: canonical/snapcraft#5913 (confidence 65%)

    Cited in comments as an example placeholder-text mistake issue; the workflow was extended to detect this pattern.

Related issues

No related issues found above the similarity threshold.