From 6a48157777d369c76621b83cb2ef54317c33fc66 Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Wed, 3 Dec 2025 16:55:32 +0100 Subject: [PATCH 1/2] fix: enable assistance for preview PRs when sending a PR to preview (baseRef), the assistance should be enabled. --- apps/github-agent/src/workflows/review-pull-request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/github-agent/src/workflows/review-pull-request.ts b/apps/github-agent/src/workflows/review-pull-request.ts index 1c3a4b1..deaa210 100644 --- a/apps/github-agent/src/workflows/review-pull-request.ts +++ b/apps/github-agent/src/workflows/review-pull-request.ts @@ -145,13 +145,13 @@ function shouldSkipAssistance({ userLogin, org, repo, baseRef, headRef }: reason: 'Assistance is disabled for this user.', }; } - if (baseRef === 'preview') { + if (baseRef === 'preview' && headRef === 'main') { // We don't support code review for the preview branch because it has too many changes. // Also, the commits have been reviewed. log.info(`Skip the pull request for branch: ${baseRef}`); return { status: 'skipped', - reason: 'Assistance is disabled for the preview branch.', + reason: 'Assistance is disabled for sync PR from main to preview branch.', }; } if (headRef.startsWith('renovate/')) { From 72420e53843eec3d9030f7b0e980822c1ef006e5 Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Wed, 3 Dec 2025 17:03:46 +0100 Subject: [PATCH 2/2] Fix test workflow --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a6aa614..fd0f4a8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,11 +7,11 @@ permissions: contents: read env: - VT_ENV: staging + VT_ENV: preview VT_ACCOUNT: 652d77895674c387e105948c # Dengen Labs VT_PROJECT: 654df9de09676ad3b8631dc3 # Experiments - VT_PROFILE: staging-experiments # note: this should match the field ".vertesia.profile" in the agent's "package.json" file. - VT_CLI_VERSION: 0.50.1 + VT_PROFILE: preview-experiments # note: this should match the field ".vertesia.profile" in the agent's "package.json" file. + VT_CLI_VERSION: 0.79.3 jobs: test: