From 48bb1c7b0e836901bb6a4a1bc990486c76301699 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Mon, 30 Mar 2026 21:37:45 -0400 Subject: [PATCH] fix(ci): load PR review workflow from upstream main, not PR branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fork PRs have their head branch on the fork repo, not upstream, so ACP cannot find the workflow files. Hardcode the workflow source to main on openshift-online/open-dispatch — the review skill fetches the PR diff dynamically so it doesn't need the PR branch. --- .github/workflows/pr-review.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml index 1ee57a3..fc448f4 100644 --- a/.github/workflows/pr-review.yml +++ b/.github/workflows/pr-review.yml @@ -15,8 +15,6 @@ jobs: env: AMBIENT_TOKEN: ${{ secrets.AMBIENT_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} - HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} - REPO: ${{ github.repository }} run: | curl -fS -X POST \ "https://backend-route-ambient-code.apps.rosa.vteam-uat.0ksl.p3.openshiftapps.com/api/projects/open-dispatch-actions/agentic-sessions" \ @@ -25,16 +23,14 @@ jobs: -d "$(jq -n \ --arg prompt "/odis-review ${PR_NUMBER}" \ --arg name "pr-review-${PR_NUMBER}" \ - --arg gitUrl "https://github.com/${REPO}.git" \ - --arg branch "${HEAD_BRANCH}" \ '{ initialPrompt: $prompt, runnerType: "claude-agent-sdk", timeout: 900, displayName: $name, activeWorkflow: { - gitUrl: $gitUrl, - branch: $branch, + gitUrl: "https://github.com/openshift-online/open-dispatch.git", + branch: "main", path: "ambient-workflows/odis-pr-review" }, labels: {