[SKIP CI] Update to issue-closer-action@v2.0

This commit is contained in:
arkon 2021-02-12 16:26:48 -05:00
parent 2b35d22e25
commit f4dd150b70

View File

@ -7,31 +7,30 @@ jobs:
autoclose: autoclose:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Autoclose when created in wrong repo - name: Autoclose issues
uses: arkon/issue-closer-action@v1.1 uses: arkon/issue-closer-action@v2.0
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
type: title rules: |
regex: ".*THIS ISSUE IS IN THE WRONG REPO.*" [
message: "@${issue.user.login} this issue was automatically closed because it was not opened in the correct repo, as the template mentioned." {
- name: Autoclose when no short description provided "type": "title",
uses: arkon/issue-closer-action@v1.1 "regex": ".*THIS ISSUE IS IN THE WRONG REPO.*",
with: "message": "It was not opened in the correct repo, as the template mentioned."
repo-token: ${{ secrets.GITHUB_TOKEN }} },
type: title {
regex: ".*<Write short description here>*" "type": "title",
message: "@${issue.user.login} this issue was automatically closed because you did not fill out the description in the title." "regex": ".*<Write short description here>*",
- name: Autoclose when body acknowledgement section not removed "message": "The description in the title was not filled out."
uses: arkon/issue-closer-action@v1.1 },
with: {
repo-token: ${{ secrets.GITHUB_TOKEN }} "type": "body",
type: body "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
regex: ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*" "message": "The acknowledgment section was not removed."
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: arkon/issue-closer-action@v1.1 "type": "body",
with: "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*",
repo-token: ${{ secrets.GITHUB_TOKEN }} "message": "Requested information in the template was not filled out."
type: body }
regex: ".*\\* (Tachiyomi version|Android version|Device): \\?.*" ]
message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out."