Skip to content

Commit 7cd2abb

Browse files
authored
chore: Add github action to notify stale PRs (#19361)
Closes #19362 (added automatically)
1 parent e600901 commit 7cd2abb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 'PR: Stale Notifier'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 14 * * *'
7+
8+
permissions:
9+
pull-requests: write
10+
issues: write
11+
12+
concurrency:
13+
group: ${{ github.workflow }}
14+
cancel-in-progress: false
15+
16+
jobs:
17+
stale:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Warn and close stale PRs
21+
uses: actions/stale@v10
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
days-before-issue-stale: -1
25+
days-before-issue-close: -1
26+
days-before-pr-stale: 21
27+
days-before-pr-close: 7
28+
stale-pr-message: |
29+
This pull request has gone three weeks without activity. In another week, I will close it.
30+
31+
But! If you comment or otherwise update it, I will reset the clock, and if you apply the label `PR: no-auto-close` I will leave it alone ... forever!
32+
close-pr-message: |
33+
Closing due to inactivity after stale warning. Comment or reopen when ready to continue, and use `PR: no-auto-close` to opt out of automatic closure.
34+
exempt-pr-labels: 'PR: no-auto-close'
35+
stale-pr-label: 'PR: stale'
36+
remove-pr-stale-when-updated: true

0 commit comments

Comments
 (0)