issue_moderator.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: Issue moderator
  2. on:
  3. issues:
  4. types: [opened, edited, reopened]
  5. issue_comment:
  6. types: [created]
  7. jobs:
  8. autoclose:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Moderate issues
  12. uses: aniyomiorg/issue-moderator-action@v2
  13. with:
  14. repo-token: ${{ secrets.GITHUB_TOKEN }}
  15. duplicate-label: Duplicate
  16. duplicate-check-enabled: true
  17. duplicate-check-labels: |
  18. ["Source request", "Domain changed"]
  19. existing-check-enabled: true
  20. existing-check-labels: |
  21. ["Source request", "Domain changed"]
  22. auto-close-rules: |
  23. [
  24. {
  25. "type": "body",
  26. "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
  27. "message": "The acknowledgment section was not removed."
  28. },
  29. {
  30. "type": "body",
  31. "regex": ".*\\* (Aniyomi version|Android version|Device): \\?.*",
  32. "message": "Requested information in the template was not filled out."
  33. },
  34. {
  35. "type": "title",
  36. "regex": ".*(Source name|Short description).*",
  37. "message": "You did not fill out the description in the title."
  38. },
  39. {
  40. "type": "both",
  41. "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.*",
  42. "ignoreCase": true,
  43. "message": "Refer to the **Solving Cloudflare issues** section at https://aniyomi.org/help/guides/troubleshooting/#solving-cloudflare-issues. If it doesn't work, migrate to other sources or wait until they lower their protection."
  44. }
  45. ]
  46. auto-close-ignore-label: do-not-autoclose