pr-check.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. name: PR Check
  2. permissions:
  3. contents: read
  4. issues: read
  5. pull-requests: read
  6. on:
  7. pull_request_target:
  8. types: [opened, reopened]
  9. jobs:
  10. pr-quality:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: peakoss/anti-slop@v0.2.1
  14. with:
  15. max-failures: 4
  16. require-description: true
  17. # require-linked-issue: false
  18. blocked-terms: |
  19. 🤖 Generated with Claude Code
  20. require-pr-template: true
  21. strict-pr-template-sections: "✅ 提交前检查项 / Checklist"
  22. detect-spam-usernames: true
  23. min-account-age: 30
  24. failure-add-pr-labels: "pr-check-failed"
  25. failure-pr-message: "感谢您的提交。由于该 PR 未遵循我们的贡献模板,且被识别为缺乏人工参与的纯 AI 生成内容 (AI Slop),我们将先予以关闭。我们更欢迎经过人工审核、验证并带有个人思考的贡献。如果您认为这其中存在误解,请回复告知。/ Thank you for your submission. This PR has been closed because it does not follow our contribution template and has been identified as purely AI-generated content (AI Slop) without meaningful human involvement. We prioritize contributions that are human-verified and reflect individual effort. If you believe this is a mistake, please let us know by replying to this comment."
  26. close-pr: true