Move issue closer rules into action code
This commit is contained in:
22
.github/workflows/issue_closer.yml
vendored
22
.github/workflows/issue_closer.yml
vendored
@ -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 }}
|
Reference in New Issue
Block a user