-
Notifications
You must be signed in to change notification settings - Fork 65
174 lines (145 loc) · 5.7 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
name: 'Issues Lock'
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID'
required: true
default: 'all'
schedule:
- cron: '15 15 */5 * *'
permissions:
issues: write
pull-requests: write
discussions: write
concurrency:
group: lock
jobs:
# Lock Threads - https://github.com/dakanji/lock-threads
lock:
name: Lock Threads
runs-on: ubuntu-24.04
if: github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock'
steps:
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Resolved issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Invalid/Not-Planned Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Not-Planned'
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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Misc Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: ''
issue-inactive-days: '2'
include-any-issue-labels: '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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Incomplete/Abandoned Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Unclear Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Inactive Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Acknowledged/Known Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_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'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Declined Pull Requests
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-lock-reason: ''
pr-inactive-days: '2'
include-any-pr-labels: 'Declined'
remove-pr-labels: 'Tagged'
process-only: 'prs'