diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6afc729 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,12 @@ + + +Checklist + +- [ ] Referenced all related issues in the PR body (e.g. "Closes #xyz") +- [ ] Have tested the modifications diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml new file mode 100644 index 0000000..36ccbbb --- /dev/null +++ b/.github/workflows/pull_request_check.yml @@ -0,0 +1,25 @@ +name: Pull Request checker + +on: + pull_request_target: + types: [opened, edited] + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Check Pull Request + uses: tachiyomiorg/issue-moderator-action@v1 + with: + auto-close-rules: | + [ + { + "type": "body", + "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", + "message": "The acknowledgment section was not removed." + } + ] + auto-close-ignore-label: | + do-not-autoclose + bug + enhancement