From 0ebc9bfb445d770913cbdaeb0dcb75193aa50ae4 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 2 Nov 2026 09:09:25 +0000 Subject: [PATCH] wave review-53cfb5bfe011: lib/ship-policy.ts back to 800 lines (module-size ratchet after merging #3744 and #3795) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- lib/ship-policy.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ship-policy.ts b/lib/ship-policy.ts index b57039ccb..2eca8d55c 100644 --- a/lib/ship-policy.ts +++ b/lib/ship-policy.ts @@ -653,10 +653,9 @@ function git(repoRoot: string, args: string[]): { ok: boolean; out: string; err: } /** - * `--base` when given, else the default base (lib/default-base.ts): origin/HEAD's - * branch unless it is the checked-out one, the PR's base, origin/main, origin/master. - * When none resolves it stays `main`, which origin then lacks, so every reader of - * origin/ refuses; when origin/HEAD named the checked-out branch, stderr says why. + * `--base` when given, else the default base (lib/default-base.ts): origin/HEAD's branch unless it is the checked-out + * one, the PR's base, origin/main, origin/master. When none resolves it stays `main`, which origin then lacks, so every + * reader of origin/ refuses; when origin/HEAD named the checked-out branch, stderr says why. */ export function resolveBaseBranch(repoRoot: string, explicit?: string): string { if (explicit && explicit.trim()) return explicit.trim().replace(/^origin\//, '');