issue_moderator.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. auto-close-ignore-label: do-not-autoclose