-
Notifications
You must be signed in to change notification settings - Fork 186
60 lines (50 loc) · 1.95 KB
/
Copy pathstale.yml
File metadata and controls
60 lines (50 loc) · 1.95 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
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@5bef64f19d7facfb25b37b414482c7164d639639 # v9
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'
stale-review-inactivity:
name: 14-day author inactivity after requested changes
runs-on: ubuntu-latest
steps:
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
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'