forked from dessant/lock-threads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
149 lines (149 loc) · 6.69 KB
/
action.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
name: 'Lock Threads'
description: 'Lock closed issues, pull requests and discussions after a period of inactivity'
author: 'Armin Sebastian'
inputs:
github-token:
description: 'GitHub access token'
default: '${{ github.token }}'
issue-inactive-days:
description: 'Number of days of inactivity before a closed issue is locked'
default: '365'
exclude-issue-created-before:
description: 'Do not lock issues created before a given date, value must follow ISO 8601'
default: ''
exclude-issue-created-after:
description: 'Do not lock issues created after a given date, value must follow ISO 8601'
default: ''
exclude-issue-created-between:
description: 'Do not lock issues created in a given time interval, value must follow ISO 8601'
default: ''
exclude-issue-closed-before:
description: 'Do not lock issues closed before a given date, value must follow ISO 8601'
default: ''
exclude-issue-closed-after:
description: 'Do not lock issues closed after a given date, value must follow ISO 8601'
default: ''
exclude-issue-closed-between:
description: 'Do not lock issues closed in a given time interval, value must follow ISO 8601'
default: ''
include-any-issue-labels:
description: 'Only lock issues with any of these labels, value must be a comma separated list of labels'
default: ''
include-all-issue-labels:
description: 'Only lock issues with all these labels, value must be a comma separated list of labels'
default: ''
exclude-any-issue-labels:
description: 'Do not lock issues with any of these labels, value must be a comma separated list of labels'
default: ''
add-issue-labels:
description: 'Labels to add before locking an issue, value must be a comma separated list of labels'
default: ''
remove-issue-labels:
description: 'Labels to remove before locking an issue, value must be a comma separated list of labels'
default: ''
issue-comment:
description: 'Comment to post before locking an issue'
default: ''
issue-lock-reason:
description: 'Reason for locking an issue, value must be one of `resolved`, `off-topic`, `too heated` or `spam`'
default: 'resolved'
pr-inactive-days:
description: 'Number of days of inactivity before a closed pull request is locked'
default: '365'
exclude-pr-created-before:
description: 'Do not lock pull requests created before a given date, value must follow ISO 8601'
default: ''
exclude-pr-created-after:
description: 'Do not lock pull requests created after a given date, value must follow ISO 8601'
default: ''
exclude-pr-created-between:
description: 'Do not lock pull requests created in a given time interval, value must follow ISO 8601'
default: ''
exclude-pr-closed-before:
description: 'Do not lock pull requests closed before a given date, value must follow ISO 8601'
default: ''
exclude-pr-closed-after:
description: 'Do not lock pull requests closed after a given date, value must follow ISO 8601'
default: ''
exclude-pr-closed-between:
description: 'Do not lock pull requests closed in a given time interval, value must follow ISO 8601'
default: ''
include-any-pr-labels:
description: 'Only lock pull requests with any of these labels, value must be a comma separated list of labels'
default: ''
include-all-pr-labels:
description: 'Only lock pull requests with all these labels, value must be a comma separated list of labels'
default: ''
exclude-any-pr-labels:
description: 'Do not lock pull requests with any of these labels, value must be a comma separated list of labels'
default: ''
add-pr-labels:
description: 'Labels to add before locking a pull request, value must be a comma separated list of labels'
default: ''
remove-pr-labels:
description: 'Labels to remove before locking a pull request, value must be a comma separated list of labels'
default: ''
pr-comment:
description: 'Comment to post before locking a pull request'
default: ''
pr-lock-reason:
description: 'Reason for locking a pull request, value must be one of `resolved`, `off-topic`, `too heated` or `spam`'
default: 'resolved'
discussion-inactive-days:
description: 'Number of days of inactivity before a closed discussion is locked'
default: '365'
exclude-discussion-created-before:
description: 'Do not lock discussions created before a given date, value must follow ISO 8601'
default: ''
exclude-discussion-created-after:
description: 'Do not lock discussions created after a given date, value must follow ISO 8601'
default: ''
exclude-discussion-created-between:
description: 'Do not lock discussions created in a given time interval, value must follow ISO 8601'
default: ''
exclude-discussion-closed-before:
description: 'Do not lock discussions closed before a given date, value must follow ISO 8601'
default: ''
exclude-discussion-closed-after:
description: 'Do not lock discussions closed after a given date, value must follow ISO 8601'
default: ''
exclude-discussion-closed-between:
description: 'Do not lock discussions closed in a given time interval, value must follow ISO 8601'
default: ''
include-any-discussion-labels:
description: 'Only lock issues with any of these labels, value must be a comma separated list of labels'
default: ''
include-all-discussion-labels:
description: 'Only lock discussions with all these labels, value must be a comma separated list of labels'
default: ''
exclude-any-discussion-labels:
description: 'Do not lock discussions with any of these labels, value must be a comma separated list of labels'
default: ''
add-discussion-labels:
description: 'Labels to add before locking a discussion, value must be a comma separated list of labels'
default: ''
remove-discussion-labels:
description: 'Labels to remove before locking a discussion, value must be a comma separated list of labels'
default: ''
discussion-comment:
description: 'Comment to post before locking a discussion'
default: ''
process-only:
description: 'Only lock issues, pull requests or discussions, value must be a comma separated list, list items must be one of `issues`, `prs` or `discussions`'
default: ''
log-output:
description: 'Log output parameters, value must be either `true` or `false`'
default: false
outputs:
issues:
description: 'Issues that have been locked, value is a JSON string'
prs:
description: 'Pull requests that have been locked, value is a JSON string'
discussions:
description: 'Discussions that have been locked, value is a JSON string'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'lock'
color: 'gray-dark'