[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:
22
.github/workflows/issue_moderator.yml
vendored
22
.github/workflows/issue_moderator.yml
vendored
@@ -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"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user