-
Notifications
You must be signed in to change notification settings - Fork 65
189 lines (157 loc) · 6.57 KB
/
issues-lock.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: 'Issues Lock'
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID'
required: true
default: 'all'
schedule:
- cron: '15 15 */5 * *'
permissions:
issues: write
concurrency:
group: lock
# Lock Threads - https://github.com/dakanji/lock-threads
jobs:
lock-threads-01:
name: Lock Resolved Issues
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '1'
include-any-issue-labels: 'Resolved'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
lock-threads-02:
name: Lock Invalid/Not-Planned/Misc Issues
needs: [lock-threads-01]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Not-Planned, Duplicate, Cannot-Replicate, Cancelled'
remove-issue-labels: 'Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
lock-threads-03:
name: Lock Incomplete/Abandoned Issues
needs: [lock-threads-02]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
add-issue-labels: 'Abandoned'
issue-inactive-days: '4'
include-any-issue-labels: 'Stale, Incomplete'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This item is being locked.
Trigger: Apparent Abandonment.
process-only: 'issues'
lock-threads-04:
name: Lock Unclear Issues
needs: [lock-threads-03]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '7'
include-any-issue-labels: 'Unclear'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
lock-threads-05:
name: Lock Inactive Issues
needs: [lock-threads-04]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
add-issue-labels: 'Resolved'
issue-inactive-days: '3'
include-any-issue-labels: ''
exclude-any-issue-labels: 'Triage, Unclear, Parked, Prorogued, Help-Wanted, Acknowledged, Known-Issue'
remove-issue-labels: 'Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
lock-threads-06:
name: Lock Acknowledged/Known Issues
needs: [lock-threads-05]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
add-issue-labels: ''
issue-inactive-days: '40'
include-any-issue-labels: 'Acknowledged, Known-Issue'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'