Fix start-from PR failures for fork-backed PRs (#2233)

* Fix start-from PR failures for some fork PRs

* fix: limit PR fallback fetches to missing refs

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
This commit is contained in:
Anwesh
2026-05-18 00:36:34 -07:00
committed by GitHub
co-authored by Neil
parent 74876aebbc
commit 95577ea9a0
8 changed files with 295 additions and 29 deletions
@@ -0,0 +1,8 @@
export function isMissingRemoteRefGitError(error: unknown): boolean {
const message = error instanceof Error ? error.message : String(error)
const normalized = message.toLowerCase()
return (
normalized.includes('could not find remote ref') ||
normalized.includes("couldn't find remote ref")
)
}