[SKIP CI] Fix/issue moderator workflow (#703)
* [IssueModerator] Disable unused options * [IssueModerator] Fix regexes of rules
This commit is contained in:
14
.github/workflows/issue_moderator.yml
vendored
14
.github/workflows/issue_moderator.yml
vendored
@@ -14,14 +14,12 @@ jobs:
|
|||||||
uses: tachiyomiorg/issue-moderator-action@v2
|
uses: tachiyomiorg/issue-moderator-action@v2
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ github.token }}
|
repo-token: ${{ github.token }}
|
||||||
duplicate-check-enabled: true
|
|
||||||
existing-check-enabled: true
|
|
||||||
auto-close-rules: |
|
auto-close-rules: |
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
"regex": "^(?!(\[(Feature Request|Bug\] )))",
|
"regex": "^(?!\\[(Feature Request|Bug)\\] )",
|
||||||
"message": "Invalid title. Must start with either \"[Feature Request]\" or \"[Bug]\""
|
"message": "Title must start with either \"[Feature Request]\" or \"[Bug]\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
@@ -35,22 +33,22 @@ jobs:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
"regex": "^\[(Feature Request|Bug)\](?!.{0,75}$)",
|
"regex": "^\\[(Feature Request|Bug)\\] (?!.{0,75}$)",
|
||||||
"message": "The title is too long, keep it short and descriptive"
|
"message": "The title is too long, keep it short and descriptive"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
"regex": "^\[(Feature Request|Bug)\](?!.{10,75}$)",
|
"regex": "^\\[(Feature Request|Bug)\\] (.{0,10}$)",
|
||||||
"message": "The title is too short to provide any valuable short description"
|
"message": "The title is too short to provide any valuable short description"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
"regex": ".*\?.*)",
|
"regex": ".*\\?.*",
|
||||||
"message": "The title is not supposed to be a question"
|
"message": "The title is not supposed to be a question"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "body",
|
"type": "body",
|
||||||
"regex": "^(?!## (Device information|What feature should be added to Suwayomi\?))",
|
"regex": "^(?!## (Device information|What feature should be added to Suwayomi\\?))",
|
||||||
"message": "The acknowledgment section was not removed"
|
"message": "The acknowledgment section was not removed"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user