triageBugs.yml 789 B

12345678910111213141516171819202122232425
  1. name: Bug Report Triage
  2. on:
  3. issues:
  4. types: [opened]
  5. jobs:
  6. closeTemplateViolation:
  7. name: Close bug reports that violate the issue template
  8. runs-on: ubuntu-latest
  9. steps:
  10. - if: |
  11. contains(github.event.issue.labels.*.name, 'type:bug')
  12. && (
  13. !contains(github.event.issue.body, '<!-- oooooo -->')
  14. || !contains(github.event.issue.body, '### Description')
  15. )
  16. name: Close Issue
  17. uses: peter-evans/close-issue@v1
  18. with:
  19. comment: |
  20. This bug report did ignore our issue template. 😞
  21. Auto-closing this issue, since it is most likely not useful.
  22. _This decision was made by a bot. If you think the bot is wrong, let us know and we'll reopen this issue._