From cb3822570465108c4bc9083ae7e324a46cda91ed Mon Sep 17 00:00:00 2001 From: john Date: Mon, 27 Jul 2026 08:40:15 +0800 Subject: [PATCH] fix(release): correct ahead/behind parsing for REL-02 Co-authored-by: Cursor --- release-gate/runner.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-gate/runner.mjs b/release-gate/runner.mjs index 818141b..882c6db 100644 --- a/release-gate/runner.mjs +++ b/release-gate/runner.mjs @@ -211,7 +211,7 @@ async function applyRepositoryChecks(results, artifactPath) { { cwd: ROOT, timeoutMs: 30_000 }, ); if (aheadBehind.code === 0) { - [behind, ahead] = aheadBehind.stdout.trim().split(/\s+/); + [ahead, behind] = aheadBehind.stdout.trim().split(/\s+/); } } const ciStatus = remoteSha && behind === '0'