Skip to content

Commit d9946e9

Browse files
authored
[MAINT] Creates a stale action to clean up old and abandoned PRs/issues
2 parents d5e1f48 + 8ae4878 commit d9946e9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v6
12+
with:
13+
stale-issue-message: >
14+
👋 Hey Friends, this issue has been automatically marked as `stale` because it has no recent activity.
15+
It will be closed if no further activity occurs.
16+
Please add the `Status: Pinned` label if you feel that this issue needs to remain open/active.
17+
Thank you for your contributions and help in keeping things tidy!
18+
stale-pr-message: >
19+
👋 Hey Friends, this pull request has been automatically marked as `stale` because it has no recent activity.
20+
It will be closed if no further activity occurs.
21+
Please add the `Status: Pinned` label if you feel that this issue needs to remain open/active.
22+
Thank you for your contributions and help in keeping things tidy!
23+
days-before-stale: 270
24+
days-before-close: 7
25+
exempt-issue-labels: 'Status: Pinned'
26+
exempt-pr-labels: 'Status: Pinned'
27+
operations-per-run: 100
28+
stale-issue-label: 'Status: Stale'
29+
stale-pr-label: 'Status: Stale'

0 commit comments

Comments
 (0)