-
Notifications
You must be signed in to change notification settings - Fork 7
88 lines (84 loc) · 3.93 KB
/
close-inactive-issues.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Close Inactive Issues
on:
schedule:
- cron: "30 1 * * *" # once a day (1:30 UTC)
workflow_dispatch: # allow manual trigger
jobs:
close-issues-in-triage:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
operations-per-run: 1000
days-before-issue-stale: 28
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 28 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
exempt-all-issue-milestones: false # issues with assigned milestones will be ignored
only-label: 'triage'
repo-token: ${{ secrets.GITHUB_TOKEN }}
close-issues-with-assignee:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
operations-per-run: 1000
days-before-issue-stale: 28
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 28 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
exempt-all-issue-milestones: true # issues with assigned milestones will be ignored
exempt-issue-labels: bug # ignore issues labelled as bug
repo-token: ${{ secrets.GITHUB_TOKEN }}
close-issues-without-assignee:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
operations-per-run: 1000
days-before-issue-stale: 14
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
close-issue-reason: 'not_planned'
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale)
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close)
remove-issue-stale-when-updated: true
exempt-all-issue-milestones: true # issues with assigned milestones will be ignored
exempt-all-issue-assignees: true # issues with assignees will be ignored
exempt-issue-labels: bug # ignore issues labelled as bug
repo-token: ${{ secrets.GITHUB_TOKEN }}
close-inactive-pull-requests:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/stale@v9
with:
operations-per-run: 1000
days-before-issue-stale: -1 # ignore issues (overwrite default days-before-stale)
days-before-issue-close: -1 # ignore issues (overwrite default days-before-close)
stale-pr-label: "stale"
stale-pr-message: "This pull request is stale because it has been open for 7 days with no activity."
close-pr-message: "This pull request was closed because it has been inactive for 7 days since being marked as stale."
days-before-pr-stale: 7
days-before-pr-close: 7
remove-pr-stale-when-updated: true
repo-token: ${{ secrets.GITHUB_TOKEN }}