issue_closer.yml 1.6 KB

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