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: 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/')) {