[SKIP CI] Feature/improve issue moderator workflow (#701)

* [IssueModerator] Improve un-removed "acknowledgment" section detection

* [IssueModerator] Check for invalid issue types in title

* [IssueModerator] Try to ensure short descriptive title

* [IssueModerator] Try to prevent questions in the title
This commit is contained in:
schroda
2024-04-03 16:30:25 +02:00
committed by GitHub
parent b1ce977dcd
commit 827fa5a171
3 changed files with 23 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ I acknowledge that:
Note that the issue will be automatically closed if you do not fill out the title or requested information.
**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT**
**Delete everything up to "## Device information" if you've read and acknowledged this section**
---

View File

@@ -18,7 +18,7 @@ I acknowledge that:
Note that the issue will be automatically closed if you do not fill out the title or requested information.
**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT**
**Delete everything up to "## What feature should be added to Suwayomi" if you've read and acknowledged this section**
---

View File

@@ -18,6 +18,11 @@ jobs:
existing-check-enabled: true
auto-close-rules: |
[
{
"type": "title",
"regex": "^(?!(\[(Feature Request|Bug\] )))",
"message": "Invalid title. Must start with either \"[Feature Request]\" or \"[Bug]\""
},
{
"type": "title",
"regex": ".*<short description>.*",
@@ -28,9 +33,24 @@ jobs:
"regex": ".*(<|>)+.*",
"message": "You did not remove Angle brackets(< and >) from the title"
},
{
"type": "title",
"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}$)",
"message": "The title is too short to provide any valuable short description"
},
{
"type": "title",
"regex": ".*\?.*)",
"message": "The title is not supposed to be a question"
},
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"regex": "^(?!## (Device information|What feature should be added to Suwayomi\?))",
"message": "The acknowledgment section was not removed"
},
{