-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
332 lines (332 loc) · 13.8 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
name: 'Process stale issues and PRs'
description: 'An action to stale and close automatically your issues and pull requests'
author: 'C0ZEN'
inputs:
# Common inputs
github-token:
description: 'A GitHub token used to perform the API calls to GitHub through `@actions/github`. Usually `{{ secrets.GITHUB_TOKEN }}`.'
required: false
default: ${{ github.token }}
dry-run:
description: 'A mode where any Data Manipulation Language will be skipped. Useful to debug safely and without risking messing up with your repository.'
required: false
default: 'false'
# Issues inputs
## Labels
issue-stale-label:
description: 'The label that will be added to the issue when it is stale.'
required: false
default: 'stale'
issue-ignore-all-labels:
description: 'Allow to ignore the processing of issues that contains any labels.'
required: false
default: 'false'
issue-ignore-any-labels:
description: 'Allow to ignore the processing of issues that contains one of those labels (multiline).'
required: false
default: ''
## Assignees
issue-ignore-all-assignees:
description: 'Allow to ignore the processing of issues that contains any assignees.'
required: false
default: 'false'
issue-ignore-any-assignees:
description: 'Allow to ignore the processing of issues that contains one of those assignees (multiline).'
required: false
default: ''
issue-only-with-assignees:
description: 'Only allow the processing of issues that contains at least one assignee.'
required: false
default: 'false'
issue-only-any-assignees:
description: 'Only allow the processing of issues that contains one of those assignees (multiline).'
required: false
default: ''
## Project cards
issue-ignore-all-project-cards:
description: 'Allow to ignore the processing of issues that contains any project cards.'
required: false
default: 'false'
issue-ignore-any-project-cards:
description: 'Allow to ignore the processing of issues that contains one of those project cards (multiline).'
required: false
default: ''
issue-only-with-project-cards:
description: 'Only allow the processing of issues that contains at least one project card.'
required: false
default: 'false'
issue-only-any-project-cards:
description: 'Only allow the processing of issues that contains one of those project cards (multiline).'
required: false
default: ''
## Milestones
issue-ignore-all-milestones:
description: 'Allow to ignore the processing of issues that contains any milestones.'
required: false
default: 'false'
issue-ignore-any-milestones:
description: 'Allow to ignore the processing of issues that contains one of those milestones (multiline).'
required: false
default: ''
issue-only-with-milestones:
description: 'Only allow the processing of issues that contains at least one milestone.'
required: false
default: 'false'
issue-only-any-milestones:
description: 'Only allow the processing of issues that contains one of those milestones (multiline).'
required: false
default: ''
## Comments
issue-stale-comment:
description: 'The comment that will be sent once the issue is stale (keep empty to not send a comment).'
required: false
default: ''
issue-close-comment:
description: 'The comment that will be sent once the issue is close (keep empty to not send a comment).'
required: false
default: ''
## Durations
issue-days-before-stale:
description: 'The number of days until the issue is considered as stale.'
required: false
default: '30'
issue-days-before-close:
description: 'The number of days until a stale issue is considered as closed.'
required: false
default: '10'
## Limiters
issue-limit-api-queries-count:
description: 'Limit the quantity of API queries calls performed during the processing of issues (-1 for unlimited).'
required: false
default: '-1'
issue-limit-api-mutations-count:
description: 'Limit the quantity of API mutations calls performed during the processing of issues (-1 for unlimited).'
required: false
default: '-1'
issue-ignore-before-creation-date:
description: 'Allow to ignore the processing of issues that were created before this date (ISO 8601, see https://moment.github.io/luxon/#/parsing?id=iso-8601).'
required: false
default: ''
## Others
issue-processing:
description: 'Allow to process the issues.'
required: false
default: 'true'
issue-close-reason:
description: 'The reason when closing an issue (completed or not planned).'
required: false
default: 'not planned'
issue-add-labels-after-stale:
description: 'A list of labels added when the processing stale the issue (multiline).'
required: false
default: ''
issue-remove-labels-after-stale:
description: 'A list of labels removed when the processing stale the issue (multiline).'
required: false
default: ''
issue-add-labels-after-close:
description: 'A list of labels added when the processing close the issue (multiline).'
required: false
default: ''
issue-remove-labels-after-close:
description: 'A list of labels removed when the processing close the issue (multiline).'
required: false
default: ''
# Pull request inputs
## Labels
pull-request-stale-label:
description: 'The label that will be added to the pull request when it is stale.'
required: false
default: 'stale'
pull-request-ignore-all-labels:
description: 'Allow to ignore the processing of pull requests that contains any labels.'
required: false
default: 'false'
pull-request-ignore-any-labels:
description: 'Allow to ignore the processing of pull requests that contains one of those labels (multiline).'
required: false
default: ''
## Assignees
pull-request-ignore-all-assignees:
description: 'Allow to ignore the processing of pull requests that contains any assignees.'
required: false
default: 'false'
pull-request-ignore-any-assignees:
description: 'Allow to ignore the processing of pull requests that contains one of those assignees (multiline).'
required: false
default: ''
pull-request-only-with-assignees:
description: 'Only allow the processing of pull requests that contains at least one assignee.'
required: false
default: 'false'
pull-request-only-any-assignees:
description: 'Only allow the processing of pull requests that contains one of those assignees (multiline).'
required: false
default: ''
## Project cards
pull-request-ignore-all-project-cards:
description: 'Allow to ignore the processing of pull requests that contains any project cards.'
required: false
default: 'false'
pull-request-ignore-any-project-cards:
description: 'Allow to ignore the processing of pull requests that contains one of those project cards (multiline).'
required: false
default: ''
pull-request-only-with-project-cards:
description: 'Only allow the processing of pull requests that contains at least one project card.'
required: false
default: 'false'
pull-request-only-any-project-cards:
description: 'Only allow the processing of pull requests that contains one of those project cards (multiline).'
required: false
default: ''
## Milestones
pull-request-ignore-all-milestones:
description: 'Allow to ignore the processing of pull requests that contains any milestones.'
required: false
default: 'false'
pull-request-ignore-any-milestones:
description: 'Allow to ignore the processing of pull requests that contains one of those milestones (multiline).'
required: false
default: ''
pull-request-only-with-milestones:
description: 'Only allow the processing of pull requests that contains at least one milestone.'
required: false
default: 'false'
pull-request-only-any-milestones:
description: 'Only allow the processing of pull requests that contains one of those milestones (multiline).'
required: false
default: ''
## Comments
pull-request-stale-comment:
description: 'The comment that will be sent once the pull request is stale (keep empty to not send a comment).'
required: false
default: ''
pull-request-close-comment:
description: 'The comment that will be sent once the pull request is close (keep empty to not send a comment).'
required: false
default: ''
## Durations
pull-request-days-before-stale:
description: 'The number of days until the pull request is considered as stale.'
required: false
default: '30'
pull-request-days-before-close:
description: 'The number of days until a stale pull request is considered as closed.'
required: false
default: '10'
## Limiters
pull-request-limit-api-queries-count:
description: 'Limit the quantity of API queries calls performed during the processing of pull requests (-1 for unlimited).'
required: false
default: '-1'
pull-request-limit-api-mutations-count:
description: 'Limit the quantity of API mutations calls performed during the processing of pull requests (-1 for unlimited).'
required: false
default: '-1'
pull-request-ignore-before-creation-date:
description: 'Allow to ignore the processing of pull requests that were created before this date (ISO 8601, see https://moment.github.io/luxon/#/parsing?id=iso-8601).'
required: false
default: ''
pull-request-ignore-draft:
description: 'Allow to ignore the processing of pull requests that are drafts.'
required: false
default: 'false'
## Others
pull-request-processing:
description: 'Allow to process the pull requests.'
required: false
default: 'true'
pull-request-add-labels-after-stale:
description: 'A list of labels added when the processing stale the pull request (multiline).'
required: false
default: ''
pull-request-remove-labels-after-stale:
description: 'A list of labels removed when the processing stale the pull request (multiline).'
required: false
default: ''
pull-request-add-labels-after-close:
description: 'A list of labels added when the processing close the pull request (multiline).'
required: false
default: ''
pull-request-remove-labels-after-close:
description: 'A list of labels removed when the processing close the pull request (multiline).'
required: false
default: ''
pull-request-to-draft-instead-of-stale:
description: 'Convert the pull request to a draft pull request instead of handling it as a stale candidate.'
required: false
default: 'false'
pull-request-delete-branch-after-close:
description: 'Delete the branch when the processing close the pull request.'
required: false
default: 'false'
outputs:
# Issues outputs
processed-issues-count:
description: 'The number of issues processed.'
ignored-issues-count:
description: 'The number of issues ignored.'
unaltered-issues-count:
description: 'The number of issues unaltered (either not good to stale or already stale).'
stale-issues-count:
description: 'The number of issues stale.'
already-stale-issues-count:
description: 'The number of issues processed which were already stale.'
remove-stale-issues-count:
description: 'The number of issues from where the stale state was removed.'
close-issues-count:
description: 'The number of issues closed.'
added-issues-comments-count:
description: 'The number of added issues comments.'
issues-labels-count:
description: 'The number of mutated issues labels (added or removed).'
added-issues-labels-count:
description: 'The number of added issues labels.'
removed-issues-labels-count:
description: 'The number of removed issues labels.'
called-api-issues-count:
description: 'The number of GitHub API calls performed for the issues.'
called-api-issues-queries-count:
description: 'The number of GitHub API queries calls performed for the issues.'
called-api-issues-mutations-count:
description: 'The number of GitHub API mutations calls performed for the issues.'
# Pull requests outputs
processed-pull-requests-count:
description: 'The number of pull requests processed.'
ignored-pull-requests-count:
description: 'The number of pull requests ignored.'
unaltered-pull-requests-count:
description: 'The number of pull requests unaltered (either not good to stale or already stale).'
stale-pull-requests-count:
description: 'The number of pull requests stale.'
already-stale-pull-requests-count:
description: 'The number of pull requests processed which were already stale.'
remove-stale-pull-requests-count:
description: 'The number of pull requests from where the stale state was removed.'
close-pull-requests-count:
description: 'The number of pull requests closed.'
deleted-pull-requests-branches-count:
description: 'The number of deleted pull requests branches closed.'
added-pull-requests-comments-count:
description: 'The number of added pull requests comments.'
pull-requests-labels-count:
description: 'The number of mutated pull requests labels (added or removed).'
added-pull-requests-labels-count:
description: 'The number of added pull requests labels.'
removed-pull-requests-labels-count:
description: 'The number of removed pull requests labels.'
draft-pull-requests-count:
description: 'The number of pull requests converted to draft.'
called-api-pull-requests-count:
description: 'The number of GitHub API calls performed for the pull requests.'
called-api-pull-requests-queries-count:
description: 'The number of GitHub API queries calls performed for the pull requests.'
called-api-pull-requests-mutations-count:
description: 'The number of GitHub API mutations calls performed for the pull requests.'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'activity'
color: 'purple'