issue_closer.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Issue closer
  2. on:
  3. issues:
  4. types: [opened, edited, reopened]
  5. jobs:
  6. autoclose:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Autoclose when created in wrong repo
  10. uses: arkon/[email protected]
  11. with:
  12. repo-token: ${{ secrets.GITHUB_TOKEN }}
  13. type: title
  14. regex: ".*THIS ISSUE IS IN THE WRONG REPO.*"
  15. message: "@${issue.user.login} this issue was automatically closed because it was not opened in the correct repo, as the template mentioned."
  16. - name: Autoclose when no short description provided
  17. uses: arkon/[email protected]
  18. with:
  19. repo-token: ${{ secrets.GITHUB_TOKEN }}
  20. type: title
  21. regex: ".*<Write short description here>*"
  22. message: "@${issue.user.login} this issue was automatically closed because you did not fill out the description in the title."
  23. - name: Autoclose when body acknowledgement section not removed
  24. uses: arkon/[email protected]
  25. with:
  26. repo-token: ${{ secrets.GITHUB_TOKEN }}
  27. type: body
  28. regex: ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*"
  29. message: "@${issue.user.login} this issue was automatically closed because the acknowledgment section was not removed."
  30. - name: Autoclose when body requested information not filled out
  31. uses: arkon/[email protected]
  32. with:
  33. repo-token: ${{ secrets.GITHUB_TOKEN }}
  34. type: body
  35. regex: ".*\\* (Tachiyomi version|Android version|Device): \\?.*"
  36. message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out."