Skip to content

Commit 7da8cc6

Browse files
authored
Automatically close stale PRs that are awaiting author revision (#2152)
1 parent 036428c commit 7da8cc6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/stale.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
name: 'Close stale issues'
1+
name: 'Close stale issues and PRs'
22
on:
33
schedule:
44
- cron: '0 14 * * *'
55

66
permissions:
77
issues: write
8+
pull-requests: write
89

910
jobs:
1011
stale:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/stale@v9
1415
with:
15-
stale-issue-message: 'This issue is stale, and will be closed in 3 days if no reply is received.'
16-
close-issue-message: 'Closing this issue as it has been inactive for 10 days.'
17-
any-of-labels: 'question,more info'
1816
days-before-stale: 7
1917
days-before-close: 3
18+
19+
any-of-issue-labels: 'question,more info'
20+
stale-issue-message: 'This issue is stale, and will be closed in 3 days if no reply is received.'
21+
close-issue-message: 'Closing this issue as it has been inactive for 10 days.'
22+
23+
any-of-pr-labels: 'awaiting author revision'
24+
stale-pr-message: 'This PR is stale, and will be closed in 3 days if no reply is received.'
25+
close-pr-message: 'Closing this PR as it has been inactive for 10 days.'

0 commit comments

Comments
 (0)