issue_moderator.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: Issue moderator
  2. on:
  3. issues:
  4. types: [opened, edited, reopened]
  5. issue_comment:
  6. types: [created]
  7. jobs:
  8. moderate:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Moderate issues
  12. uses: tachiyomiorg/issue-moderator-action@v1
  13. with:
  14. repo-token: ${{ secrets.GITHUB_TOKEN }}
  15. auto-close-rules: |
  16. [
  17. {
  18. "type": "body",
  19. "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
  20. "message": "The acknowledgment section was not removed."
  21. },
  22. {
  23. "type": "body",
  24. "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*",
  25. "message": "Requested information in the template was not filled out."
  26. },
  27. {
  28. "type": "both",
  29. "regex": "^(?!.*myanimelist.*).*(aniyomi|anime).*$",
  30. "ignoreCase": true,
  31. "message": "Tachiyomi does not support anime, and has no plans to support anime. In addition Tachiyomi is not affiliated with Aniyomi https://github.com/jmir1/aniyomi"
  32. }
  33. ]