diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 00000000..de1b9038 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,29 @@ +--- +labels: + - name: kind:invalid-template + labeled: + issue: + body: | + :wave: @{{ issue.user.login }}, please follow the template provided. + action: close + locking: lock + lock_reason: resolved + + - name: kind:support + labeled: + issue: + body: | + :wave: @{issue-author}, we use the issue tracker exclusively + for bug reports and feature requests. However, this issue appears + to be a support request. Please use our support channels + to get help. + - [Docs](https://docs.k8s-at-home.com/) + - [Discord](https://discord.gg/sTMX7Vh) + - [GitHub Discussions](https://github.com/k8s-at-home/organization/discussions) + action: close + + - name: kind:incomplete-pr + labeled: + pr: + body: | + :wave: @{{ pull_request.user.login }}, thanks for taking the time to submit this PR. 🙏🏽 Would you mind updating the `version` in `Chart.yaml` per [semver](http://semver.org/) and then update `README_CHANGELOG.md.gotmpl` and run `./hack/gen-helm-docs.sh stable ` again? diff --git a/.github/workflows/incomplete-pr.yaml b/.github/workflows/incomplete-pr.yaml deleted file mode 100644 index 73ceb99b..00000000 --- a/.github/workflows/incomplete-pr.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- - -name: 'Incomplete PR' - -on: - issues: - types: [labeled, unlabeled, reopened] - -jobs: - support: - runs-on: ubuntu-20.04 - steps: - - uses: dessant/support-requests@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - support-label: 'kind:incomplete-pr' - issue-comment: > - :wave: @{issue-author}, thanks for taking the time to submit this PR. 🙏🏽 Would you mind updating the `version` in `Chart.yaml` per [semver](http://semver.org/) and then update `README_CHANGELOG.md.gotmpl` and run `./hack/gen-helm-docs.sh stable ` again? - close-issue: false - lock-issue: false diff --git a/.github/workflows/invalid-template.yaml b/.github/workflows/invalid-template.yaml deleted file mode 100644 index 34f96882..00000000 --- a/.github/workflows/invalid-template.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- - -name: 'Invalid Template' - -on: - issues: - types: [labeled, unlabeled, reopened] - -jobs: - support: - runs-on: ubuntu-20.04 - steps: - - uses: dessant/support-requests@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - support-label: 'kind:invalid-template' - issue-comment: > - :wave: @{issue-author}, please follow the template provided. - close-issue: true - lock-issue: true - issue-lock-reason: 'resolved' diff --git a/.github/workflows/label-commenter.yaml b/.github/workflows/label-commenter.yaml new file mode 100644 index 00000000..7fae3f4c --- /dev/null +++ b/.github/workflows/label-commenter.yaml @@ -0,0 +1,32 @@ +--- +name: 'Label Commenter' + +on: + issues: + types: + - labeled + - unlabeled + pull_request_target: + types: + - labeled + - unlabeled + +permissions: + contents: read + issues: write + pull-requests: write + +permissions: + contents: read + pull-requests: write + +jobs: + support: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + ref: main # Set your default branch + + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1 diff --git a/.github/workflows/support.yaml b/.github/workflows/support.yaml deleted file mode 100644 index 1f9af0d3..00000000 --- a/.github/workflows/support.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- - -name: 'Support requests' - -on: - issues: - types: [labeled, unlabeled, reopened] - -jobs: - support: - runs-on: ubuntu-20.04 - steps: - - uses: dessant/support-requests@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - support-label: 'kind:support' - issue-comment: > - :wave: @{issue-author}, we use the issue tracker exclusively - for bug reports and feature requests. However, this issue appears - to be a support request. Please use our support channels - to get help. - - [Docs](https://docs.k8s-at-home.com/) - - [Discord](https://discord.gg/sTMX7Vh) - - [GitHub Discussions](https://github.com/k8s-at-home/organization/discussions) - close-issue: true - lock-issue: false - issue-lock-reason: 'off-topic'