From bc2ccbb56704abb2455b7b4447f1b158d4c00237 Mon Sep 17 00:00:00 2001 From: Justin-ZS Date: Wed, 22 Apr 2026 09:55:32 +0800 Subject: [PATCH] chore(workflow): disable misleading PR preview comment --- .github/workflows/pr-preview.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 4f8b6f3e9f..41c0313f64 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -66,13 +66,17 @@ jobs: export SURGE_DOMAIN=https://echarts-pr-$PR_NUMBER.surge.sh npx surge --project ./package --domain $SURGE_DOMAIN --token $SURGE_TOKEN - - name: Create comment for PR preview - uses: ./.actions/maintain-one-comment - env: - PR_NUMBER: ${{ steps.pr-metadata.outputs.NUMBER }} - COMMIT_SHA_SHORT: ${{ steps.pr-metadata.outputs.COMMIT_SHA_SHORT }} - with: - body: | - The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-${{ env.PR_NUMBER }}@${{ env.COMMIT_SHA_SHORT }} - body-include: '' - number: ${{ env.PR_NUMBER }} + # Disabled for now because the editor preview URL is misleading under the + # current website CSP policy. The preview bundle is still deployed to + # surge.sh, but `echarts.apache.org/examples/editor?version=PR-...` + # cannot reliably load it. + # - name: Create comment for PR preview + # uses: ./.actions/maintain-one-comment + # env: + # PR_NUMBER: ${{ steps.pr-metadata.outputs.NUMBER }} + # COMMIT_SHA_SHORT: ${{ steps.pr-metadata.outputs.COMMIT_SHA_SHORT }} + # with: + # body: | + # The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-${{ env.PR_NUMBER }}@${{ env.COMMIT_SHA_SHORT }} + # body-include: '' + # number: ${{ env.PR_NUMBER }}