From 900f4b7b75b1334b5cf8b6755a6d2c3527038e62 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 5 Feb 2026 11:32:08 +0000 Subject: [PATCH] github: add support-request automation workflow Add workflow that automatically closes issues labeled as support-request with a message directing users to Discord for configuration and support questions. The workflow: - Triggers when support-request label is added - Posts a comment explaining this tracker is for bugs/features - Links to documentation and Discord - Closes the issue as "not planned" --- .github/label-response/support-request.md | 15 ++++++++++++ .github/workflows/support-request.yml | 30 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/label-response/support-request.md create mode 100644 .github/workflows/support-request.yml diff --git a/.github/label-response/support-request.md b/.github/label-response/support-request.md new file mode 100644 index 00000000..cdd93b30 --- /dev/null +++ b/.github/label-response/support-request.md @@ -0,0 +1,15 @@ +Thank you for reaching out. + +This issue tracker is used for **bug reports and feature requests** only. Your question appears to be a support or configuration question rather than a bug report. + +For help with setup, configuration, or general questions, please visit our [Discord community](https://discord.gg/c84AZQhmpx) where the community and maintainers can assist you in real-time. + +**Before posting in Discord, please check:** + +- [Documentation](https://headscale.net/) +- [FAQ](https://headscale.net/stable/faq/) +- [Debugging and Troubleshooting Guide](https://headscale.net/stable/ref/debug/) + +If after troubleshooting you determine this is actually a bug, please open a new issue with the required debug information from the troubleshooting guide. + +This issue has been automatically closed. diff --git a/.github/workflows/support-request.yml b/.github/workflows/support-request.yml new file mode 100644 index 00000000..1e6af893 --- /dev/null +++ b/.github/workflows/support-request.yml @@ -0,0 +1,30 @@ +name: Support Request - Close Issue + +on: + issues: + types: [labeled] + +jobs: + close-support-request: + if: >- + github.event.label.name == 'support-request' && + github.repository == 'juanfont/headscale' + runs-on: ubuntu-latest + permissions: + issues: write + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + sparse-checkout: .github/label-response/support-request.md + sparse-checkout-cone-mode: false + + - name: Post comment and close issue + run: | + gh issue comment "$NUMBER" --body-file .github/label-response/support-request.md + gh issue close "$NUMBER" --reason "not planned" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }}