-
Notifications
You must be signed in to change notification settings - Fork 39
147 lines (123 loc) · 4.88 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
name: 'Issues Lock'
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID'
required: true
default: 'all'
schedule:
- cron: '6 12 */6 * *'
permissions:
issues: write
concurrency:
group: lock
jobs:
# Lock Threads - https://github.com/dakanji/lock-threads
lock:
name: Lock Threads
runs-on: ubuntu-20.04
if: github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock'
steps:
- name: Lock Declined Pull Requests
uses: dakanji/lock-threads@v4.0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '0'
include-any-issue-labels: 'Declined'
remove-issue-labels: 'Tagged, Queries'
process-only: 'prs'
- name: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Not-Planned issues
uses: dakanji/lock-threads@v4.0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '0'
include-any-issue-labels: 'Not-Planned'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Uncertain'
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: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Invalid/Resolved Issues
uses: dakanji/lock-threads@v4.0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Resolved'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Uncertain'
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: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Misc Issues
uses: dakanji/lock-threads@v4.0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: 'Resolved'
issue-inactive-days: '2'
include-any-issue-labels: 'Duplicate, Cannot-Replicate, Known-Issue, Cancelled'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Uncertain'
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: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Incomplete/Abandoned Issues
uses: dakanji/lock-threads@v4.0.0.1
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: 'Triage, Stale, Tagged, Queries, Uncertain'
issue-comment: |-
This thread is being locked as the item appears to have abandoned.
process-only: 'issues'
- name: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Unclear Issues
uses: dakanji/lock-threads@v4.0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '7'
include-any-issue-labels: 'Unclear'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Uncertain'
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: Inter-Step-Pause
run: |
sleep 150s
- name: Lock Inactive Issues
uses: dakanji/lock-threads@v4.0.0.1
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: 'Unclear, Parked, Prorogued, Help-Wanted'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Uncertain'
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'