Skip to content

Commit 2bbc1c4

Browse files
committed
close-stale: add workflow to close stale issues/pull_requests
Add workflow to close stale issues/pull_requests. Workflow will first mark issue or pull_request as stale if there was 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 2bbc1c4

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/close-stale.yml

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

0 commit comments

Comments
 (0)