~exprez135/cryptomator-libre

29a9c7dffe8a15ae5f2c0cc4bd8ef7e7c6901667 — Sebastian Stenzel 1 year, 1 month ago 194d7f0
auto-close bugs violating the issue template
[ci skip]
2 files changed, 28 insertions(+), 0 deletions(-)

M .github/ISSUE_TEMPLATE/bug.md
A .github/workflows/triageBugs.yml
M .github/ISSUE_TEMPLATE/bug.md => .github/ISSUE_TEMPLATE/bug.md +3 -0
@@ 5,6 5,7 @@ labels: type:bug
---

<!--
⚠️⚠️⚠️ READ CAREFULLY ⚠️⚠️⚠️

Do you want to ask a QUESTION? Are you looking for SUPPORT?
We're happy to help you via our support channels! Please read: https://github.com/cryptomator/cryptomator/blob/develop/SUPPORT.md


@@ 13,7 14,9 @@ By filing an issue, you are expected to comply with our code of conduct: https:/

Of course, we also expect you to search for existing similar issues first! ;) https://github.com/cryptomator/cryptomator/issues?q=

⚠️ IMPORTANT: If you don't stick to this template, the issue will get closed. To proof that you read this, please remove the X from the following line:
-->
<!-- oooXooo -->

### Description


A .github/workflows/triageBugs.yml => .github/workflows/triageBugs.yml +25 -0
@@ 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, '<!-- oooooo -->')
            || !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