Skip to content

Commit 7044ccf

Browse files
authored
chore: add workflow to clean up stale PRs and issues (#1007)
1 parent ff1a715 commit 7044ccf

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Clean Up Stale PRs and Issues
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
stale:
9+
name: Clean Up
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v10
16+
with:
17+
days-before-stale: 60
18+
days-before-close: 14
19+
exempt-issue-labels: keep,security,pinned
20+
exempt-pr-labels: keep,security,pinned
21+
exempt-draft-pr: true
22+
stale-issue-message: >
23+
This issue has had no activity for 60 days and is now marked as stale.
24+
It will be closed in 14 days if there is no further activity. Add the
25+
`keep` label to keep it open.
26+
close-issue-message: >
27+
Closing this issue after 14 days of inactivity since it was marked stale.
28+
Feel free to reopen if it is still relevant.
29+
stale-pr-message: >
30+
This pull request has had no activity for 60 days and is now marked as stale.
31+
It will be closed in 14 days if there is no further activity. Add the
32+
`keep` label to keep it open.
33+
close-pr-message: >
34+
Closing this pull request after 14 days of inactivity since it was marked stale.
35+
Feel free to reopen if you plan to continue the work.

0 commit comments

Comments
 (0)