-
Notifications
You must be signed in to change notification settings - Fork 292
47 lines (43 loc) · 1.89 KB
/
Copy pathstale.yaml
File metadata and controls
47 lines (43 loc) · 1.89 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
name: 'Mark stale issues'
on:
schedule:
- cron: '0 1 * * *'
jobs:
stale-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 'Mark stale issues and PRs'
uses: actions/stale@v10
with:
days-before-issue-stale: 90
days-before-pr-stale: 21
days-before-close: -1
stale-issue-label: 'lifecycle/stale'
exempt-issue-labels: 'lifecycle/rotten'
stale-issue-message: 'This issue is marked as stale after 90d of inactivity. After an additional 30d of inactivity (15d to become rotten, then 15d more), it will be closed. To prevent this issue from being closed, add a comment or remove the `lifecycle/stale` label.'
stale-pr-label: 'lifecycle/stale'
exempt-pr-labels: 'lifecycle/rotten'
stale-pr-message: 'This PR is marked as stale after 21d of inactivity. After an additional 14d of inactivity (7d to become rotten, then 7d more), it will be closed. To prevent this PR from being closed, add a comment or remove the `lifecycle/stale` label.'
- name: 'Mark items rotten'
uses: actions/stale@v10
with:
days-before-issue-stale: 15
days-before-pr-stale: 7
days-before-close: -1
stale-issue-label: 'lifecycle/rotten'
stale-pr-label: 'lifecycle/rotten'
only-labels: 'lifecycle/stale'
labels-to-remove-when-stale: 'lifecycle/stale'
- name: 'Close rotten items'
uses: actions/stale@v10
with:
days-before-stale: -1
days-before-issue-close: 15
days-before-pr-close: 7
stale-issue-label: 'lifecycle/rotten'
stale-issue-message: 'This issue is being closed after 120d of inactivity.'
stale-pr-label: 'lifecycle/rotten'
stale-pr-message: 'This PR is being closed after 35d of inactivity.'