From 26cbe15964fb797334b483b9962ebd1ca0ec9c20 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 3 Apr 2024 22:32:20 +0200 Subject: [PATCH] [SKIP CI] Fix/issue moderator workflow (#703) * [IssueModerator] Disable unused options * [IssueModerator] Fix regexes of rules --- .github/workflows/issue_moderator.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml index 95915c0b..6082f81a 100644 --- a/.github/workflows/issue_moderator.yml +++ b/.github/workflows/issue_moderator.yml @@ -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" }, {