Skip to content

Commit ada6714

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 97f869c commit ada6714

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/close-stale.yml

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

0 commit comments

Comments
 (0)