Repository navigation
70 lines (58 loc) · 2.81 KB
/
Copy pathstale.yml
File metadata and controls
70 lines (58 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Close stale PRs
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
pull-requests: write
issues: write
jobs:
stale-inactivity:
name: 60-day inactivity
runs-on: ubuntu-latest
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: -1
days-before-issue-close: -1
days-before-pr-stale: 60
days-before-pr-close: 7
stale-pr-label: stale-inactive
stale-pr-message: >
This PR has had no activity for 60 days and will be automatically
closed in 7 days unless there is new activity. If you'd like to
continue, please rebase and leave a comment.
close-pr-message: >
Closing due to 60+ days of inactivity. Feel free to reopen if
you'd like to resume this work.
exempt-pr-labels: "do-not-close,pinned,work-in-progress"
# Issue #2076: stale labeling and closing moved to
# label-pr-review-state.yml, which owns an author-activity clock
# that bot updates cannot reset. Keep actions/stale in debug-only
# mode until the new step is proven, then remove this workflow.
debug-only: true
stale-review-inactivity:
name: 14-day author inactivity after requested changes
runs-on: ubuntu-latest
steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: awaiting-author
days-before-issue-stale: -1
days-before-issue-close: -1
days-before-pr-stale: 14
days-before-pr-close: 7
stale-pr-label: stale-awaiting-author
stale-pr-message: >
This PR has been awaiting author changes for 14 days and will be
automatically closed in 7 days. Please address the review comments
or leave a comment if you need more time.
close-pr-message: >
Closing due to author inactivity after requested changes. Feel free
to reopen once the requested changes have been addressed.
exempt-pr-labels: "do-not-close,pinned,work-in-progress"
# Issue #2076: debug-only while label-pr-review-state.yml owns the
# author-activity clock (see the stale-inactivity job above).
debug-only: true