Move issue closer rules into action code

This commit is contained in:
arkon
2020-08-28 23:01:40 -04:00
parent 329912b7b1
commit 21d1c750cc
4 changed files with 89 additions and 86 deletions

View File

@ -12,25 +12,7 @@ jobs:
node-version: 14
- name: Install dependencies
run: cd ./.github/actions/issue-closer && npm install
- name: Autoclose when no source name or short description provided in title
- name: Autoclose issue
uses: ./.github/actions/issue-closer
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
type: title
regex: ".*<(Source Name|short description)>*"
message: "@${issue.user.login} this issue was automatically closed because you did not fill out the description in the title."
- name: Autoclose when body acknowledgement section not removed
uses: ./.github/actions/issue-closer
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
type: body
regex: ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*"
message: "@${issue.user.login} this issue was automatically closed because the acknowledgment section was not removed."
- name: Autoclose when body requested information not filled out
uses: ./.github/actions/issue-closer
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
type: body
regex: ".*\\* (Tachiyomi version|Android version|Device|Name|Link|Extension version): \\?.*"
message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out."
repo-token: ${{ secrets.GITHUB_TOKEN }}