issue-open-check.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: Issue Open Check
  2. on:
  3. issues:
  4. types: [opened, edited]
  5. jobs:
  6. check-issue:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions-cool/issues-helper@v2.2.0
  10. id: check
  11. with:
  12. actions: 'check-issue'
  13. issue-number: ${{ github.event.issue.number }}
  14. title-excludes: '🐛[BUG], 👑 [需求], 🧐[问题]'
  15. - if: steps.check.outputs.check-result == 'false' && github.event.issue.state == 'open'
  16. uses: actions-cool/issues-helper@v2.2.0
  17. with:
  18. actions: 'create-comment, close-issue'
  19. issue-number: ${{ github.event.issue.number }}
  20. body: |
  21. 当前 Issue 未检测到标题,请规范填写,谢谢!
  22. The title of the current issue is not detected, please fill in according to the specifications, thank you!
  23. - if: steps.check.outputs.check-result == 'true'
  24. uses: actions-cool/issues-similarity-analysis@v1.1.0
  25. with:
  26. filter-threshold: 0.6
  27. title-excludes: '🐛[BUG], 👑 [需求], 🧐[问题]'
  28. comment-title: '### 以下的 Issues 可能会帮助到你 / The following issues may help you'
  29. show-footer: false