From 1e362af027f85ac3fc38b0148683d6e9771f3820 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Wed, 2 Feb 2022 12:09:40 +0100 Subject: [PATCH] [CI skip] Remove auto-commenting on issues We have a pretty good triage team nowadays, no need for the repetitive automated response that noone bothers to fill out anyway. Most of the time, someone from the team will provide a reason already. --- .github/workflows/closed-issues-reason.yml | 60 --------------------- .github/workflows/label-resolved-issues.yml | 28 ++++++++++ 2 files changed, 28 insertions(+), 60 deletions(-) delete mode 100644 .github/workflows/closed-issues-reason.yml create mode 100644 .github/workflows/label-resolved-issues.yml diff --git a/.github/workflows/closed-issues-reason.yml b/.github/workflows/closed-issues-reason.yml deleted file mode 100644 index f20726e9e..000000000 --- a/.github/workflows/closed-issues-reason.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Respond to closed Issue - -on: - issues: - types: [closed] - -jobs: - comment: - - name: Comment on Issue - runs-on: ubuntu-latest - if: contains(github.event.issue.labels.*.name, '🐞 Bug Report') - - steps: - - name: Query recent commits - uses: TheBusyBiscuit/recently-closed-issues@1.1.0 - id: resolved - with: - token: ${{ secrets.ACCESS_TOKEN }} - max_commits: 20 - - name: Add label - if: contains(steps.resolved.outputs.issues, github.event.issue.number) - uses: maxkomarychev/octions/octions/issues/add-labels@master - with: - token: ${{ secrets.ACCESS_TOKEN }} - issue_number: ${{ github.event.issue.number }} - labels: '✔ Resolved' - - uses: maxkomarychev/octions/octions/issues/create-comment@master - id: comment - if: contains(steps.resolved.outputs.issues, github.event.issue.number) == false - with: - token: ${{ secrets.ACCESS_TOKEN }} - issue_number: ${{ github.event.issue.number }} - body: |- - Your issue has been closed by an admin, it may fall under one or more of the following categories. - **Please wait for an admin to tick off the points that apply.** -
- - * [ ] You did not follow our template. Please follow the Issue template to help us identify your issue more effectively. - * [ ] You did not provide any information about your versions (We absolutely need the exact version numbers that are installed on your Server, \"latest\" is not helpful) - * [ ] You did not provide a proper description to the problem. Try to write at least 4-6 sentences and/or provide screenshots or videos on how to reproduce this. - * [ ] We were unable to reproduce issue, if you think your issue still persists then please comment down below and give a better description on how to reproduce it. - * [ ] Your issue was posted in a foreign language, we only accept english issues on here. - * [ ] Your issue is not a bug, it is intended to work this way. - * [ ] Your issue is not really a bug, it is a limitation or simply something we have no control over. - * [ ] Your issue is not a bug, please only use this issue tracker to report bugs. Any other kind of communication should happen on discord. - * [ ] Your issue has already been reported before, it is a duplicate. Check the other issues first before posting! - * [ ] You posted an error without using pastebin. Please always post errors via pastebin otherwise they become nearly unreadable. - * [ ] You seem to be reporting multiple bugs at once. Please make a separate issue for each bug you encountered, so we can properly handle them individually. - * [ ] Your issue has already been fixed in a later version of Slimefun, you should update. - * [ ] You are using an outdated and unsupported version of Slimefun, again, you should update. - * [ ] You are using an unofficially modified build of Slimefun. We only support official versions of Slimefun - for obvious reasons. - * [ ] You are using an unsupported version of Minecraft. We only provide support for the Minecraft versions Slimefun was developed for, older versions are not supported anymore. - * [ ] You are using a \"stable\" version of Slimefun (prefixed with \"RC - \"), your issue may have been fixed in a development build, so we only accept bug reports from those. - * [ ] You are on the wrong issue tracker. We would like to remind you that this Issue Tracker is **only for Slimefun**. To report bugs on any addons, head to the corresponding issue tracker of that addon. -
- - Please respond below, if you have any further questions. - Do **not** open a new Issue unless explicitly told otherwise, comment below or edit your post instead.
- Make sure to check out our article on [How to report bugs](https://github.com/Slimefun/Slimefun4/wiki/How-to-report-bugs) for even more information. diff --git a/.github/workflows/label-resolved-issues.yml b/.github/workflows/label-resolved-issues.yml new file mode 100644 index 000000000..f9b006c09 --- /dev/null +++ b/.github/workflows/label-resolved-issues.yml @@ -0,0 +1,28 @@ +name: Label resolved issues + +on: + issues: + types: [closed] + +jobs: + label: + + name: Label Issue + runs-on: ubuntu-latest + if: contains(github.event.issue.labels.*.name, '🐞 Bug Report') + + steps: + - name: Query recent commits + uses: TheBusyBiscuit/recently-closed-issues@1.1.0 + id: resolved + with: + token: ${{ secrets.ACCESS_TOKEN }} + max_commits: 20 + + - name: Add label + if: contains(steps.resolved.outputs.issues, github.event.issue.number) + uses: maxkomarychev/octions/octions/issues/add-labels@master + with: + token: ${{ secrets.ACCESS_TOKEN }} + issue_number: ${{ github.event.issue.number }} + labels: '✔ Resolved'