diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index dfabee3e5..4775a0aa2 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -5,6 +5,7 @@ labels: type:bug --- + ### Description diff --git a/.github/workflows/triageBugs.yml b/.github/workflows/triageBugs.yml new file mode 100644 index 000000000..f3354fb11 --- /dev/null +++ b/.github/workflows/triageBugs.yml @@ -0,0 +1,25 @@ +name: Bug Report Triage + +on: + issues: + types: [opened] + +jobs: + closeTemplateViolation: + name: Close bug reports that violate the issue template + runs-on: ubuntu-latest + steps: + - if: | + contains(github.event.issue.labels.*.name, 'type:bug') + && ( + !contains(github.event.issue.body, '') + || !contains(github.event.issue.body, '### Description') + ) + name: Close Issue + uses: peter-evans/close-issue@v1 + with: + comment: | + This bug report did ignore our issue template. 😞 + Auto-closing this issue, since it is most likely not useful. + + _This decision was made by a bot. If you think the bot is wrong, let us know and we'll reopen this issue._ \ No newline at end of file