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>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-02 09:09:25 +00:00
1 parent 7450175adb
commit 0ebc9bfb44
1 file changed
+3 -4
+3 -4
View File
@@ -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/<base> 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/<base> 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\//, '');