Skip to content

Commit 631f4e0

Browse files
matthew29tangcopybara-github
authored andcommitted
chore: Enable stale bot for external user pull requests
PiperOrigin-RevId: 939932459
1 parent 563ff2e commit 631f4e0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
permissions:
1515
issues: write
16+
pull-requests: write
1617

1718
steps:
1819
- uses: actions/stale@v10
1920
with:
2021
repo-token: ${{ secrets.GITHUB_TOKEN }}
2122
days-before-issue-stale: 7
2223
days-before-issue-close: 2
24+
days-before-pr-stale: 14
25+
days-before-pr-close: 2
2326
operations-per-run: 100
2427
stale-issue-label: "status:stale"
28+
stale-pr-label: "status:stale"
2529
close-issue-reason: not_planned
2630
any-of-labels: "status:awaiting user response"
2731
remove-stale-when-updated: true
@@ -31,5 +35,11 @@ jobs:
3135
close-issue-message: >
3236
This issue was closed because it has been inactive for 9 days.
3337
Please post a new issue if you need further assistance. Thanks!
38+
stale-pr-message: >
39+
This pull request has been marked as stale because it has been inactive for 14 days with no activity. It will be closed in 2 days if no further activity occurs.
40+
close-pr-message: >
41+
This pull request was closed because it has been inactive for 16 days.
42+
Please reopen or submit a new PR if you need further assistance. Thanks!
3443
# Label that can be assigned to issues to exclude them from being marked as stale
3544
exempt-issue-labels: 'override-stale'
45+
exempt-pr-labels: 'override-stale'

0 commit comments

Comments
 (0)