Skip to content

Commit f5d2868

Browse files
committed
Add new GitHub action for stale PRs
1 parent 5732f14 commit f5d2868

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/mark-prs-stale.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# reference: https://github.com/actions/stale
2+
name: 'Handle stale PRs'
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '30 2 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically'
17+
stale-pr-label: 'stale'
18+
days-before-stale: 7
19+
days-before-close: 7
20+
exempt-pr-labels: 'do-not-close'

0 commit comments

Comments
 (0)