Skip to content
Source
Sign inSign up
pingdotgg/t3code

ci: close "needs more info" issues after 7 days without a reply #22628

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/22628/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 30 additions and 0 deletions.

x
0 of 1 viewed, 1 left
30 additions and 0 deletions.github/workflows/stale-needs-more-info.ymlAdded
View file
@@ -0,0 +1,30 @@
+name: Close stale "needs more info" issues
+​
+on:
+ schedule:
+ - cron: "17 6 * * *"
+ workflow_dispatch:
+​
+permissions:
+ actions: write
+ issues: write
+​
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v9
+ with:
+ only-issue-labels: "needs more info"
+ # The label is applied by the triage flow, so never auto-mark; close 7 days after it was added.
+ days-before-issue-stale: -1
+ days-before-issue-close: 7
+ days-before-pr-stale: -1
+ days-before-pr-close: -1
+ remove-issue-stale-when-updated: true
Thread on line 24
macroscopeapp[bot](GitHub profile, opens in a new tab)commented

🟠 High workflows/stale-needs-more-info.yml:24

A maintainer editing an issue title after the needs more info label is added removes that label on the next run, so only-issue-labels excludes the issue and it never reaches the seven-day close. remove-issue-stale-when-updated reacts to any issue update, not just reporter replies; use reply-specific handling to cancel the timeout.

🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @.github/workflows/stale-needs-more-info.yml around line 24:

A maintainer editing an issue title after the `needs more info` label is added removes that label on the next run, so `only-issue-labels` excludes the issue and it never reaches the seven-day close. `remove-issue-stale-when-updated` reacts to any issue update, not just reporter replies; use reply-specific handling to cancel the timeout.
+ stale-issue-label: "needs more info"
+ close-issue-reason: not_planned
+ close-issue-message: >-