chore: Add Issue Moderator and Update Issue Templates

This commit is contained in:
Rajarshee Chatterjee
2022-08-18 06:37:33 +05:30
parent 35d76c4b47
commit 0ece90f242
4 changed files with 61 additions and 3 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ body:
description: |
You can find your LNReader version in **More → About**.
placeholder: |
Example: "1.1.10"
Example: "1.1.12"
validations:
required: true
@@ -85,7 +85,7 @@ body:
required: true
- label: I have written a short but informative title.
required: true
- label: I have updated the app to version **[1.1.10](https://github.com/LNReader/lnreader/releases/latest)**.
- label: I have updated the app to version **[1.1.12](https://github.com/LNReader/lnreader/releases/latest)**.
required: true
- label: I have updated all installed extensions.
required: true
+1 -1
View File
@@ -32,7 +32,7 @@ body:
required: true
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/LNReader/lnreader/issues/new/choose).
required: true
- label: I have updated the app to version **[1.1.10](https://github.com/LNReader/lnreader/releases/latest)**.
- label: I have updated the app to version **[1.1.12](https://github.com/LNReader/lnreader/releases/latest)**.
required: true
- label: I will fill out all of the requested information in this form.
required: true
+39
View File
@@ -0,0 +1,39 @@
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@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
duplicate-check-enabled: true
duplicate-check-label: Source Request
existing-check-enabled: true
existing-check-label: Source Request
auto-close-rules: |
[
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"message": "The acknowledgment section was not removed."
},
{
"type": "body",
"regex": ".*\\* (LNReader version|Android version|Device): \\?.*",
"message": "Requested information in the template was not filled out."
},
{
"type": "title",
"regex": ".*(Source name|Short description).*",
"message": "You did not fill out the description in the title"
}
]
auto-close-ignore-label: do-not-autoclose
+19
View File
@@ -0,0 +1,19 @@
name: Lock threads
on:
# Daily
schedule:
- cron: "0 0 * * *"
# Manual trigger
workflow_dispatch:
inputs:
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: "2"
pr-lock-inactive-days: "2"