From f3309b76d1cf4de4f4d1cb23844ecbcc8a65d4ae Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Wed, 12 Aug 2020 14:58:04 +0200 Subject: [PATCH 1/4] Adding Label commenter --- .github/workflows/label_comment.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/label_comment.yml diff --git a/.github/workflows/label_comment.yml b/.github/workflows/label_comment.yml new file mode 100644 index 0000000..306dec2 --- /dev/null +++ b/.github/workflows/label_comment.yml @@ -0,0 +1,24 @@ +name: Comment + +on: + issues: + types: + - labeled + - unlabeled + pull_request: + types: + - labeled + - unlabeled + +jobs: + give_comment: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + ref: master + - name: Send Issue/Pull request comment + uses: peaceiris/actions-label-commenter@v1.5.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} From 58cfa92136e0c42bc403d3581ed66a197089dada Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Wed, 12 Aug 2020 15:11:21 +0200 Subject: [PATCH 2/4] Add label-commenter-config.yml --- .github/label-commenter-config.yml | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/label-commenter-config.yml diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 0000000..b896911 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,57 @@ +labels: + - name: 'Type: Issue (Expansion)' + labeled: + issue: + body: |- + Hello @{{ sender.login }}, + + The issue you encountered is caused by an Expansion and not PlaceholderAPI itself. + This issue-tracker is reserved for Bug reports and feature requests towards PlaceholderAPI. + + Please report this issue to the Expansion's main issue-tracker. + + > *This is an automated response.* + - name: 'Type: Duplicate' + labeled: + issue: + body: |- + Your issue is already known and a separate issue with the exact same report/feature request already exist. + + Please comment on the already existing issue with your information instead of opening your own. + + > *This is an automated response.* + action: close + - name: 'Problem: More info required' + labeled: + issue: + body: |- + Hello @{{ sender.login }}, + + Your issue unfortunately lacks certain information that we require in order to help you with your issue. + Please make sure you provide the following information: + + - Currently used Versions of your server and PlaceholderAPI + - Currently installed Expansions + - Currently installed Plugins + + The easiest way to provide those information is through the `/papi dumb` command which posts the required information and gives a URL to share. + + > *This is an automated response.* + unlabeled: + issue: + body: |- + Thank you for providing additional information. + We will take a look at the issue you encounter and come back to you with a possible solution. + - name: 'Type: Invalid' + labeled: + issue: + body: |- + Your issue has beeen marked as invalid. + This means that it either doesn't follow any provided template, or isn't related to PlaceholderAPI in any way. + + Please make sure to use one of the issue templates and provide the requested information. + Currently available Templates are: + + - [Bug Report](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=bug_report.md) + - [Feature Request](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=feature_request.md) + action: close From 41f408226e2f8ac621f1b1f94104e656aa116558 Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Wed, 12 Aug 2020 15:20:40 +0200 Subject: [PATCH 3/4] Update label-commenter-config.yml --- .github/label-commenter-config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml index b896911..6eca911 100644 --- a/.github/label-commenter-config.yml +++ b/.github/label-commenter-config.yml @@ -55,3 +55,18 @@ labels: - [Bug Report](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=bug_report.md) - [Feature Request](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=feature_request.md) action: close + - name: 'Target: Wiki' + labeled: + issue: + body: |- + Hello @{{ sender.login }}, + + Thank you for reaching out to us about the wiki. + We would like to inform you, that you are now able to directly commit your changes to the wiki through a Pull request. + When doing so, make sure you follow these steps: + + - The Pull request targets the [`docs/wiki`](https://github.com/PlaceholderAPI/PlaceholderAPI/tree/docs/wiki) branch of the Repository. + - You only made changes to the files inside the `wiki` folder. + - You followed the general Styling Guidelines mentioned in the wiki's [README](https://github.com/PlaceholderAPI/PlaceholderAPI/blob/docs/wiki/wiki/README.md) file. + + If you have any questions about submitting a PR for the wiki or have any other questions don't hesitate to ask us about it. From cfba92bf14d8699c4d456b51c4b25f58f78668a1 Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Wed, 12 Aug 2020 15:26:40 +0200 Subject: [PATCH 4/4] Add missing info about automated response. --- .github/label-commenter-config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml index 6eca911..ea41209 100644 --- a/.github/label-commenter-config.yml +++ b/.github/label-commenter-config.yml @@ -54,6 +54,8 @@ labels: - [Bug Report](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=bug_report.md) - [Feature Request](https://github.com/PlaceholderAPI/PlaceholderAPI/issues/new?template=feature_request.md) + + > *This is an automated response.* action: close - name: 'Target: Wiki' labeled: @@ -70,3 +72,5 @@ labels: - You followed the general Styling Guidelines mentioned in the wiki's [README](https://github.com/PlaceholderAPI/PlaceholderAPI/blob/docs/wiki/wiki/README.md) file. If you have any questions about submitting a PR for the wiki or have any other questions don't hesitate to ask us about it. + + > *This is an automated response.*