Skip to content

Commit 317a95f

Browse files
authored
Add GitHub workflow to check for stale PRs and issues (#62)
1 parent 27fb1ff commit 317a95f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/stale.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
14+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
15+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
16+
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'
17+
stale-issue-label: 'stale'
18+
stale-pr-label: 'stale'
19+
exempt-all-pr-assignees: true
20+
operations-per-run: 100

0 commit comments

Comments
 (0)