Skip to content

Commit d19f613

Browse files
bobvandevijvertobias-93
authored andcommitted
Add workflow to automatically close old issues/prs
1 parent de7881f commit d19f613

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/stale.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3+
name: Close stale issues and PRs
4+
5+
on:
6+
schedule:
7+
- cron: '0 7 * * *'
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: close-stale-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
stale:
17+
name: Close stale issues and PRs
18+
runs-on: ubuntu-24.04
19+
permissions:
20+
actions: write
21+
issues: write
22+
pull-requests: write
23+
steps:
24+
- uses: actions/[email protected]
25+
with:
26+
sort-by: updated
27+
ascending: true # Start with ascending to process oldest items first
28+
debug-only: true # Start in debug first, to see what would happen
29+
days-before-stale: 60
30+
days-before-close: 30
31+
exempt-all-milestones: true
32+
stale-issue-message: >-
33+
In an effort to keep our issue list manageable, we are marking this issue as stale because it has been 60 days without activity.
34+
If this issue is still relevant, please let us know by posting a quick comment so that it remains open.
35+
close-issue-message: >-
36+
This issue was closed because it has been stalled for 90 days with no activity.
37+
Feel free to open a new issue if necessary!
38+
stale-pr-message: >-
39+
In an effort to keep our pull request list manageable, we are marking this PR as stale because it has been 60 days without activity.
40+
If this PR is still relevant, please let us know by posting a quick comment or update so that it can be assigned and hopefully merged.
41+
close-pr-message: >-
42+
This PR was closed because it has been stalled for 90 days with no activity.
43+
Feel free to open a new PR if necessary!

0 commit comments

Comments
 (0)