[SKIP CI] Fix/issue moderator workflow (#703)

* [IssueModerator] Disable unused options

* [IssueModerator] Fix regexes of rules
This commit is contained in:
schroda
2024-04-03 22:32:20 +02:00
committed by GitHub
parent 827fa5a171
commit 26cbe15964

View File

@@ -14,14 +14,12 @@ jobs:
uses: tachiyomiorg/issue-moderator-action@v2
with:
repo-token: ${{ github.token }}
duplicate-check-enabled: true
existing-check-enabled: true
auto-close-rules: |
[
{
"type": "title",
"regex": "^(?!(\[(Feature Request|Bug\] )))",
"message": "Invalid title. Must start with either \"[Feature Request]\" or \"[Bug]\""
"regex": "^(?!\\[(Feature Request|Bug)\\] )",
"message": "Title must start with either \"[Feature Request]\" or \"[Bug]\""
},
{
"type": "title",
@@ -35,22 +33,22 @@ jobs:
},
{
"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"
},
{
"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"
},
{
"type": "title",
"regex": ".*\?.*)",
"regex": ".*\\?.*",
"message": "The title is not supposed to be a question"
},
{
"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"
},
{