Skip to content

Commit f10360f

Browse files
authored
Add nuanced stalebot workflow (#17654)
Add nuanced stalebot workflow Co-authored-by: chiedo <[email protected]>
1 parent 2a2e289 commit f10360f

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/triage-stale-check.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,32 @@ on:
44
- cron: '45 16 * * *' # Run each day at 16:45 UTC / 8:45 PST
55

66
jobs:
7-
stale:
7+
stale_contributor:
88
if: github.repository == 'github/docs'
99
runs-on: ubuntu-latest
1010

1111
steps:
1212
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity and will be automatically closed in 10 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
16-
days-before-stale: 21
17-
days-before-close: 10
15+
stale-pr-message: 'A stale label has been added to this pull request because it has been open 7 days with no activity. To keep this PR open, add a comment or push a commit within 3 days.'
16+
days-before-pr-stale: 7
17+
days-before-pr-close: 3
1818
stale-pr-label: 'stale'
19-
exempt-pr-labels: 'never-stale'
20-
exempt-issue-labels: 'never-stale'
19+
exempt-pr-labels: 'waiting for review'
20+
stale_staff:
21+
if: github.repository == 'github/docs'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
25+
with:
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
stale-pr-message: 'This is a gentle bump for the docs team that this PR is waiting for review.'
28+
days-before-pr-stale: 14
29+
days-before-pr-close: -1 # Never close
30+
only-labels: 'waiting for review'
31+
# The hope is that by setting the stale-pr-label to the same label
32+
# as the label that the stale check looks for, this will result in
33+
# a comment being posted every 14 days as an infinite loop, which is what
34+
# we want
35+
stale-pr-label: 'waiting for review'

0 commit comments

Comments
 (0)