Issue moderator #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue moderator | |
on: | |
issues: | |
types: [opened, edited, reopened] | |
issue_comment: | |
types: [created] | |
jobs: | |
autoclose: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Moderate issues | |
uses: tachiyomiorg/issue-moderator-action@v2 | |
with: | |
repo-token: ${{ github.token }} | |
auto-close-rules: | | |
[ | |
{ | |
"type": "title", | |
"regex": "^(?!\\[(Feature Request|Bug)\\] )", | |
"message": "Update the title - Reason: Title must start with either \"[Feature Request]\" or \"[Bug]\"" | |
}, | |
{ | |
"type": "title", | |
"regex": ".*<short description>.*", | |
"message": "Update the title - Reason: You did not fill out the description in the title - UPDATE THIS ISSUE INSTEAD OF OPENING A NEW ONE" | |
}, | |
{ | |
"type": "title", | |
"regex": ".*(<|>)+.*", | |
"message": "Update the title - Reason: You did not remove Angle brackets(< and >) from the title" | |
}, | |
{ | |
"type": "title", | |
"regex": "^\\[(Feature Request|Bug)\\] (?!.{0,75}$)", | |
"message": "Update the title - Reason: The title is too long, keep it short and descriptive" | |
}, | |
{ | |
"type": "title", | |
"regex": "^\\[(Feature Request|Bug)\\] (.{0,10}$)", | |
"message": "Update the title - Reason: The title is too short to provide any valuable short description" | |
}, | |
{ | |
"type": "title", | |
"regex": ".*\\?.*", | |
"message": "Update the title - Reason: The title is not supposed to be a question" | |
}, | |
{ | |
"type": "body", | |
"regex": "^(?!## (Device information|What feature should be added to Suwayomi\\?))", | |
"message": "Update the issue description - Reason: The acknowledgment section was not removed" | |
}, | |
{ | |
"type": "body", | |
"regex": ".*(Suwayomi-WebUI version|Suwayomi-Server version|Server Operating System|Server Desktop Environment|Server JVM version|Client Operating System|Client Web Browser):.*(\\(Example:|<usually).*", | |
"message": "Update the issue description - Reason: The requested information was not filled out" | |
}, | |
{ | |
"type": "body", | |
"regex": ".*Remove this line after you are done.*", | |
"message": "Update the issue description - Reason: The lines requesting to be removed were not removed." | |
} | |
] |