Skip to content

Commit d14c675

Browse files
committed
Mark PRs as stale after 60 days, close them automatically if no response
after 7 days.
1 parent 55103bf commit d14c675

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Stale PRs
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: 0 0 * * *
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v6
16+
id: stale
17+
with:
18+
stale-pr-message: This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 7 days
19+
days-before-stale: 60
20+
days-before-close: 7
21+
exempt-pr-labels: blocked,must,should,keep
22+
stale-pr-label: stale
23+
- name: Print outputs
24+
run: echo ${{ join(steps.stale.outputs.*, ',') }}

0 commit comments

Comments
 (0)