From 720cc1dbd3bfd70a3a03dd3279e84707f0e0fb7a Mon Sep 17 00:00:00 2001 From: Warren Gifford Date: Tue, 24 Jun 2025 09:45:18 -0700 Subject: [PATCH] Fix(release): promoteToPublic.finalize github:pr update main target bug (#699) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes REL-1068 ## Problem The release pipeline has been systematically failing in the `promoteToPublic.finalize` workflow with this error: ``` Warning: 1 uncommitted change must be on a branch named differently than 'promote/release-v6.4.3889-update-main' ``` ## Root Cause The final `github:pr` step in the `promoteToPublic.finalize` workflow was incorrectly trying to create a PR from the current branch to itself: - **Current branch**: `promote/release-{{version}}-update-main` - **Target branch**: `promote/release-{{version}}-update-main` ❌ (same branch!) - **Should target**: `main` ✅ This happened because the variable `internal_branch` was set to the current branch name instead of the intended target branch. ### Test plan This will have to be tested on a release (cherry picked from commit 1c06d26ddb1185a6de0508b7a0c5c53d38a94ad2) --- release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.yaml b/release.yaml index 6e139e53..451bcbad 100644 --- a/release.yaml +++ b/release.yaml @@ -618,11 +618,11 @@ promoteToPublic: - name: "github:pr" cmd: | set -eu - internal_branch="promote/release-{{version}}-update-main" + # Create PR to merge release updates into main branch gh pr create \ --fill \ --draft \ - --base "$internal_branch" \ + --base main \ --title "Update main: build {{version}}" \ --body "Test plan: automated release PR, CI will perform additional checks" echo "🚢 Please check the associated CI build to ensure the process completed".