-
Notifications
You must be signed in to change notification settings - Fork 96
179 lines (153 loc) · 6.42 KB
/
Copy paththreads-lock.yml
File metadata and controls
179 lines (153 loc) · 6.42 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
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
name: 'Threads Lock'
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID'
type: string
required: true
default: 'all'
schedule:
- cron: '15 15 */3 * *'
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
# Lock Threads - https://github.com/dessant/lock-threads
jobs:
lock-threads-01:
name: Lock Misc Issues
runs-on: ubuntu-latest
if: |
github.repository == 'RefindPlusRepo/RefindPlus' && (
github.event_name == 'schedule' ||
github.event.inputs.job_id == 'all' ||
github.event.inputs.job_id == 'lock'
)
steps:
- id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Repository Checkout
uses: actions/checkout@v6
- name: Handle Rate Limits_01
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_01
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
issue-inactive-days: '1'
include-any-issue-labels: 'Resolved'
exclude-any-issue-labels: 'Stale'
remove-issue-labels: 'Triage, No-Log, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: Handle Rate Limits_02
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_02
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Not-Planned, Duplicate, Cannot-Replicate, Cancelled, Config'
exclude-any-issue-labels: 'Stale'
remove-issue-labels: 'Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: Handle Rate Limits_03
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_03
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
add-issue-labels: 'Abandoned'
issue-inactive-days: '4'
include-any-issue-labels: 'Stale'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This item is being locked.
Trigger: Apparent Abandonment.
process-only: 'issues'
- name: Handle Rate Limits_04
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_04
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
issue-inactive-days: '7'
include-any-issue-labels: 'Unclear, Noted'
exclude-any-issue-labels: 'Stale'
remove-issue-labels: 'Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: Handle Rate Limits_05
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_05
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
add-issue-labels: 'Resolved'
issue-inactive-days: '4'
include-any-issue-labels: ''
exclude-any-issue-labels: 'Stale, Incomplete, Queries, Triage, Unclear, Parked, Prorogued, Help-Wanted, Confirmed, Known-Issue'
remove-issue-labels: 'Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: Handle Rate Limits_06
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_06
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
pr-lock-reason: 'resolved'
add-pr-labels: ''
pr-inactive-days: '2'
include-any-pr-labels: 'Accepted, Declined'
remove-pr-labels: ''
pr-comment: ''
process-only: 'prs'
- name: Handle Rate Limits_07
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ steps.app-token.outputs.token }}
- name: Handle Thread Lock_07
uses: dessant/lock-threads@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
issue-lock-reason: ''
add-issue-labels: ''
issue-inactive-days: '45'
include-any-issue-labels: 'Confirmed, 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/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'