[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:
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -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.
|
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**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/feature_request.md
vendored
2
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -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.
|
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**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
22
.github/workflows/issue_moderator.yml
vendored
22
.github/workflows/issue_moderator.yml
vendored
@@ -18,6 +18,11 @@ jobs:
|
|||||||
existing-check-enabled: true
|
existing-check-enabled: true
|
||||||
auto-close-rules: |
|
auto-close-rules: |
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
"type": "title",
|
||||||
|
"regex": "^(?!(\[(Feature Request|Bug\] )))",
|
||||||
|
"message": "Invalid title. Must start with either \"[Feature Request]\" or \"[Bug]\""
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "title",
|
||||||
"regex": ".*<short description>.*",
|
"regex": ".*<short description>.*",
|
||||||
@@ -28,9 +33,24 @@ jobs:
|
|||||||
"regex": ".*(<|>)+.*",
|
"regex": ".*(<|>)+.*",
|
||||||
"message": "You did not remove Angle brackets(< and >) from the title"
|
"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",
|
"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"
|
"message": "The acknowledgment section was not removed"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user