From 88a4b13763ab527520e84edc276ca03d378e34b1 Mon Sep 17 00:00:00 2001 From: unional Date: Mon, 13 Apr 2026 06:31:49 -0700 Subject: [PATCH] ci: replace manual snapshot PR workflow with vis-bot action --- .github/workflows/pull-request.yml | 57 ++++++++++++++++-------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e4477fd9b..f4668812a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -35,31 +35,36 @@ jobs: - name: Install playwright browsers uses: repobuddy/.github/.github/actions/setup-playwright@main - - name: Verify - uses: nick-fields/retry@v4 - with: - timeout_minutes: 10 - max_attempts: 3 - command: pnpm verify:ci - - run: git add . - - name: Detect snapshot changes - uses: dorny/paths-filter@v4 - id: snapshot-changes - with: - base: HEAD - filters: | - snapshots: - - '*/*/__vis__/**/__baselines__/**' + # - name: Verify + # uses: nick-fields/retry@v4 + # with: + # timeout_minutes: 10 + # max_attempts: 3 + # command: pnpm verify:ci - - name: Create Pull Request - if: matrix.node-version == '24' && steps.snapshot-changes.outputs.snapshots == 'true' && !startsWith(github.head_ref, 'vis-bot') - uses: peter-evans/create-pull-request@v8 + - name: Visual Snapshot PR bot + uses: repobuddy/vis-bot@v0.0.1 with: - commit-message: "test(${{matrix.os}}/${{matrix.node-version}}): update snapshot" - token: ${{ secrets.CI_GITHUB_TOKEN }} - title: "test(${{matrix.os}}/${{matrix.node-version}}): update snapshot" - body: This PR updates the snapshot for ${{matrix.os}} node ${{matrix.node-version}}" - branch: vis-bot/update-snapshot/${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.node-version }} - base: ${{ github.head_ref }} - labels: "snapshot" - draft: false + update-command: pnpm verify:ci + # - run: git add . + # - name: Detect snapshot changes + # uses: dorny/paths-filter@v4 + # id: snapshot-changes + # with: + # base: HEAD + # filters: | + # snapshots: + # - '*/*/__vis__/**/__baselines__/**' + + # - name: Create Pull Request + # if: matrix.node-version == '24' && steps.snapshot-changes.outputs.snapshots == 'true' && !startsWith(github.head_ref, 'vis-bot') + # uses: peter-evans/create-pull-request@v8 + # with: + # commit-message: "test(${{matrix.os}}/${{matrix.node-version}}): update snapshot" + # token: ${{ secrets.CI_GITHUB_TOKEN }} + # title: "test(${{matrix.os}}/${{matrix.node-version}}): update snapshot" + # body: This PR updates the snapshot for ${{matrix.os}} node ${{matrix.node-version}}" + # branch: vis-bot/update-snapshot/${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.node-version }} + # base: ${{ github.head_ref }} + # labels: "snapshot" + # draft: false