-
Notifications
You must be signed in to change notification settings - Fork 38
/
action.yml
110 lines (101 loc) · 4.02 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
name: Issue moderator with commands
description: Automatically close or lock issues based on commands.
author: tachiyomiorg
branding:
icon: alert-circle
color: red
runs:
using: node20
main: dist/index.js
inputs:
repo-token:
required: true
description: GitHub token
member-token:
required: false
description: Token with read access to organization members
duplicate-label:
required: false
description: Label to add on duplicate command and auto duplicate check
blurb-command:
required: false
default: Blurb
description: Command to close an issue with a blurb posted as a comment
delete-command:
required: false
default: Delete this issue
description: Command to delete an issue
edit-title-command:
required: false
default: Edit title to
description: Command to edit the title of an issue
lock-command:
required: false
default: Lock this issue
description: Command to lock an issue
duplicate-command:
required: false
default: 'Duplicate of #'
description: Command to close a duplicate issue
blurbs:
required: false
description: |
A JSON-compliant string containing a list of blurbs, where a blurb consists of:
{
keywords: string[]; // Aliases for the blurb.
message: string; // Message to post when closing the issue.
}
duplicate-check-enabled:
required: false
description: >
Control if the action should search for duplicate URLs in opened issues.
duplicate-check-labels:
required: false
description: >
A JSON-compliant string containing a list of label names as strings.
Required if `duplicate-check-enabled` is enabled.
duplicate-check-comment:
required: false
description: >
The body of the comment when an issue is detected to be a duplicate.
default: |
This issue was closed because it is a duplicate of {duplicateIssuesText}.
*This is an automated action. If you think this is a mistake, please comment about it so the issue can be reopened if needed.*
existing-check-enabled:
required: false
description: >
Control if the action should search the extension repository for existing sources.
existing-check-labels:
required: false
description: >
A JSON-compliant string containing a list of label names as strings to check.
Required if `existing-check-enabled` is enabled.
existing-check-repo-url:
required: false
description: >
The URL of the JSON extensions repository.
Required if `existing-check-enabled` is enabled.
default: https://raw.githubusercontent.com/tachiyomiorg/extensions/repo/index.min.json
existing-check-comment:
required: false
description: >
The body of the comment when an issue is detected to be of an existing source.
default: |
This issue was closed because an extension with the provided URL ({requestUrl}) already exists with the name of **{extensionName}**, under the **{extensionLang}** section.
*This is an automated action. If you think this is a mistake, please comment about it so the issue can be reopened if needed.*
auto-close-rules:
required: false
description: |
A JSON-compliant string containing a list of rules, where a rule consists of:
{
type: 'title' | 'body' | 'both'; // Part to run regex against.
regex: string; // Pattern which if matched closes the issue.
closeIfMatch: boolean | undefined; // Whether to close if the regex is matched or not.
ignoreCase: boolean | undefined; // Defines if the regex will be case insensitive.
message: string; // Message to post when closing the issue.
// You can use {match} as a placeholder to the first match.
labels: string[] | undefined; // Labels to add when closing the issue.
}
auto-close-ignore-label:
required: false
description: Optional label name. If present, auto-close rule execution is skipped.