From 0ece90f24246f7172b5f07916d326aa3c671a4d0 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Thu, 18 Aug 2022 06:37:33 +0530 Subject: [PATCH] chore: Add Issue Moderator and Update Issue Templates --- .github/ISSUE_TEMPLATE/report_issue.yml | 4 +-- .github/ISSUE_TEMPLATE/request_feature.yml | 2 +- .github/workflows/issue_moderator.yml | 39 ++++++++++++++++++++++ .github/workflows/lock.yml | 19 +++++++++++ 4 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/issue_moderator.yml create mode 100644 .github/workflows/lock.yml diff --git a/.github/ISSUE_TEMPLATE/report_issue.yml b/.github/ISSUE_TEMPLATE/report_issue.yml index 228a611..5755658 100644 --- a/.github/ISSUE_TEMPLATE/report_issue.yml +++ b/.github/ISSUE_TEMPLATE/report_issue.yml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/request_feature.yml b/.github/ISSUE_TEMPLATE/request_feature.yml index 969b493..4d4c7b7 100644 --- a/.github/ISSUE_TEMPLATE/request_feature.yml +++ b/.github/ISSUE_TEMPLATE/request_feature.yml @@ -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 diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml new file mode 100644 index 0000000..b3f92fa --- /dev/null +++ b/.github/workflows/issue_moderator.yml @@ -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 diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000..7c0f04c --- /dev/null +++ b/.github/workflows/lock.yml @@ -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"