Check whether the Pull Request is regulated (#142)

This commit is contained in:
Howard Wu 2022-09-25 12:26:20 +08:00 committed by GitHub
parent 105a778eee
commit bfc2fad49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

12
.github/pull_request_template.md vendored Normal file
View File

@ -0,0 +1,12 @@
<!--
Please include a summary of the change and which issue is fixed.
Also make sure you've tested your code and also done a self-review of it.
Don't forget to check all base themes and tablet mode for relevant changes.
DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.
-->
Checklist
- [ ] Referenced all related issues in the PR body (e.g. "Closes #xyz")
- [ ] Have tested the modifications

View File

@ -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