Skip to content

Commit 7840323

Browse files
authored
Add workflow to close "needs information" labeled issues (#10986)
This introduces a workflow to automatically close issues with the label `status: needs information` after a number of days of inactivity. This work has been done manually for a number of years, but I think it is safe to close issues with this label automatically. Not tested yet, but it is in `debug-only` mode so we can watch what it does before deciding to turn it on (however it needs to be in `main` for it to run).
1 parent f84fea0 commit 7840323

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/stale.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: close needs-information issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
debug-only: true
16+
days-before-issue-stale: 14
17+
days-before-issue-close: 7
18+
only-labels: ["status: needs information"]
19+
stale-issue-label: "stale"
20+
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity."
21+
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
22+
days-before-pr-stale: -1
23+
days-before-pr-close: -1

0 commit comments

Comments
 (0)