From 9eb2051812c7a11ef5f7c9d9c27970a70d3d8f24 Mon Sep 17 00:00:00 2001 From: Athena Moghaddam <132939361+sentaur-athena@users.noreply.github.com> Date: Fri, 15 Aug 2025 13:42:35 -0700 Subject: [PATCH 1/2] Create self_hosted_integration_issues.yml Most of the self hosted tickets are because the user was following cloud docs. Adding a comment to improve that. --- .../self_hosted_integration_issues.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/self_hosted_integration_issues.yml diff --git a/.github/workflows/self_hosted_integration_issues.yml b/.github/workflows/self_hosted_integration_issues.yml new file mode 100644 index 00000000000000..a0c7aa82a9c22a --- /dev/null +++ b/.github/workflows/self_hosted_integration_issues.yml @@ -0,0 +1,33 @@ +name: Comment on self-hosted integration issues + +on: + issues: + types: [opened] + +jobs: + comment: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Check if issue contains keywords + id: check + run: | + body="${{ github.event.issue.body }}" + shopt -s nocasematch + if [[ "$body" == *"self-hosted (https://develop.sentry.dev/self-hosted/)"* && "$body" == *"integration"* && "$body" == *"sentry.io"* ]]; then + echo "match=true" >> $GITHUB_OUTPUT + else + echo "match=false" >> $GITHUB_OUTPUT + fi + - name: Comment on issue + if: steps.check.outputs.match == 'true' + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Hi! 👋 It looks like you're asking about an integration with self-hosted Sentry. Integrations work differently on self-hosted Sentry so we created separate docs here: https://develop.sentry.dev/integrations/. Please take a look and let us know if you need further help." + }) From 20a7ebd511ddcdd0f9afcc8b809dcff3b6e61e1f Mon Sep 17 00:00:00 2001 From: Athena Moghaddam <132939361+sentaur-athena@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:07:00 -0700 Subject: [PATCH 2/2] Update self_hosted_integration_issues.yml --- .github/workflows/self_hosted_integration_issues.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/self_hosted_integration_issues.yml b/.github/workflows/self_hosted_integration_issues.yml index a0c7aa82a9c22a..99e2e5d3d6963b 100644 --- a/.github/workflows/self_hosted_integration_issues.yml +++ b/.github/workflows/self_hosted_integration_issues.yml @@ -31,3 +31,14 @@ jobs: repo: context.repo.repo, body: "Hi! 👋 It looks like you're asking about an integration with self-hosted Sentry. Integrations work differently on self-hosted Sentry so we created separate docs here: https://develop.sentry.dev/integrations/. Please take a look and let us know if you need further help." }) + - name: Add 'Waiting for: Community' label + if: steps.check.outputs.match == 'true' + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["Waiting for: Community"] + })