Skip to content

Commit 96d0adb

Browse files
authored
Action to auto-close stale issues and PRs (#2051)
1 parent f1e83ae commit 96d0adb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: 'Close stale issues and PRs'
3+
on:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v8
12+
with:
13+
stale-issue-label: stale
14+
stale-pr-label: stale
15+
days-before-stale: 90
16+
days-before-close: 14
17+
exempt-issue-labels: 'good first issue'
18+
close-issue-label: closed-stale
19+
close-pr-label: closed-stale
20+
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove the `stale` label, or leave a comment, or this will be closed in 14 days.'
21+
stale-pr-message: 'This pull request is stale because it has been open 90 days with no activity. Remove the `stale` label, or leave a comment, or this will be closed in 14 days.'

0 commit comments

Comments
 (0)