mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 16:15:06 +01:00
76a53097b1
Limit the issue_closer workflow to run only when the issue is opened, edited or reopened
38 lines
1.6 KiB
YAML
38 lines
1.6 KiB
YAML
name: Issue closer
|
|
on:
|
|
issues:
|
|
types: [opened, edited, reopened]
|
|
|
|
jobs:
|
|
autoclose:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Autoclose when created in wrong repo
|
|
uses: arkon/issue-closer-action@v1.1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
type: title
|
|
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
|
|
uses: arkon/issue-closer-action@v1.1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
type: title
|
|
regex: ".*<Write short description here>*"
|
|
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: arkon/issue-closer-action@v1.1
|
|
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: arkon/issue-closer-action@v1.1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
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."
|