issue_moderator.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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@v2
  13. with:
  14. repo-token: ${{ secrets.GITHUB_TOKEN }}
  15. duplicate-label: Duplicate
  16. auto-close-rules: |
  17. [
  18. {
  19. "type": "body",
  20. "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
  21. "message": "The acknowledgment section was not removed."
  22. },
  23. {
  24. "type": "body",
  25. "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*",
  26. "message": "Requested information in the template was not filled out."
  27. },
  28. {
  29. "type": "both",
  30. "regex": "^(?!.*myanimelist.*).*(aniyomi|anime).*$",
  31. "ignoreCase": true,
  32. "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"
  33. },
  34. {
  35. "type": "both",
  36. "regex": ".*(?:fail(?:ed|ure|s)?|can\\s*(?:no|')?t|(?:not|un).*able|(?<!n[o']?t )blocked by|error) (?:to )?(?:get past|by ?pass|penetrate)?.*cloud ?fl?are.*",
  37. "ignoreCase": true,
  38. "labels": ["Cloudflare protected"],
  39. "message": "Refer to the **Solving Cloudflare issues** section at https://tachiyomi.org/docs/guides/troubleshooting/#cloudflare. If it doesn't work, migrate to other sources or wait until they lower their protection."
  40. }
  41. ]
  42. auto-close-ignore-label: do-not-autoclose