Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Apr 3, 2024
1 parent 827fa5a commit 19a3bc3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ I acknowledge that:

Note that the issue will be automatically closed if you do not fill out the title or requested information.

In case your ticket gets automatically closed, keep updating the issue until no errors remain and then reopen it!

**Delete everything up to "## Device information" if you've read and acknowledged this section**

---
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ I acknowledge that:

Note that the issue will be automatically closed if you do not fill out the title or requested information.

In case your ticket gets automatically closed, keep updating the issue until no errors remain and then reopen it!

**Delete everything up to "## What feature should be added to Suwayomi" if you've read and acknowledged this section**

---
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/issue_moderator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,51 @@ 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": "Update the title - Reason: Title must start with either \"[Feature Request]\" or \"[Bug]\""
},
{
"type": "title",
"regex": ".*<short description>.*",
"message": "You did not fill out the description in the title"
"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": "You did not remove Angle brackets(< and >) from the title"
"message": "Update the title - Reason: 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"
"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)\](?!.{10,75}$)",
"message": "The title is too short to provide any valuable short description"
"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": "The title is not supposed to be a question"
"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": "The acknowledgment section was not removed"
"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": "The requested information was not filled out"
"message": "Update the issue description - Reason: The requested information was not filled out"
},
{
"type": "body",
"regex": ".*Remove this line after you are done.*",
"message": "The lines requesting to be removed were not removed."
"message": "Update the issue description - Reason: The lines requesting to be removed were not removed."
}
]

0 comments on commit 19a3bc3

Please sign in to comment.