Skip to content

Commit 5f9ecba

Browse files
committed
close-stale: close stale issues with workflow
Add workflow to close stale issues. Workflow will first mark the issue as stale if there is no activity for 60 days, and close it after the next 14 days if no action is taken. Signed-off-by: Mateusz Redzynia <mateuszx.redzynia@intel.com>
1 parent 34b2c69 commit 5f9ecba

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/close-stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: "Close stale issues"
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
schedule:
7+
- cron: "30 1 * * *"
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
stale:
14+
name: Find stale issues
15+
runs-on: ubuntu-24.04
16+
if: github.repository == 'thesofproject/linux'
17+
permissions:
18+
issues: write
19+
20+
steps:
21+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
22+
with:
23+
stale-issue-message: 'This issue has been marked as stale because it has been open (more
24+
than) 60 days with no activity. Remove the stale label or add a comment saying that you
25+
would like to have the label removed otherwise this issue will automatically be closed
26+
in 14 days. Note, that you can always re-open a closed issue at any time.'
27+
days-before-stale: 60
28+
days-before-close: 14
29+
stale-issue-label: 'stale'
30+
exempt-issue-labels: 'metabug,in progress,enhancement'
31+
operations-per-run: 400

0 commit comments

Comments
 (0)