feat: check all git remotes for GitHub URL in ci migrate preflight by lukevmorris · Pull Request #472 · depot/cli

@lukevmorris

Previously, detectRepoFromGitRemote only checked the 'origin' remote.
Some customers have multiple remotes where origin does not point to
GitHub. Now we iterate all configured remotes and pick the first one
with a github.com URL. Also adds hostname validation to parseGitHubRepo
to ensure non-GitHub remotes are correctly skipped.

cursor[bot]

bot reviewed Mar 28, 2026