forked from tachiyomiorg/issue-moderator-action
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (58 loc) · 2.04 KB
/
test.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
name: Issue moderator test
on:
issues:
types: [opened, edited, reopened]
issue_comment:
types: [created]
jobs:
moderate:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Moderate the issue
uses: ./
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
duplicate-label: duplicate
duplicate-check-enabled: true
duplicate-check-labels: |
["enhancement", "question"]
existing-check-enabled: true
existing-check-labels: |
["enhancement", "question"]
auto-close-rules: |
[
{
"type": "title",
"regex": ".*Test title.*",
"message": "The title was not updated."
},
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"message": "The acknowledgment section was not removed."
},
{
"type": "body",
"regex": ".*Test: \\?.*",
"message": "The requested information was not filled out."
},
{
"type": "both",
"regex":".*(mangago|mangafox|hq\\s*dragon|manga\\s*host).*",
"ignoreCase": true,
"message": "{match} will not be added back as it is too difficult to maintain",
"labels": ["wontfix", "invalid"]
}
]
auto-close-ignore-label: do-not-autoclose
blurbs: |
[
{
"keywords": ["cf", "cloudflare"],
"message": "Refer to the **Solving Cloudflare issues** section at https://mihon.app/docs/guides/troubleshooting/#solving-cloudflare-issues. If it doesn't work, migrate to other sources or wait until they lower their protection."
}
]