fix(server): stop grouping unrelated repos that only have a local git remote #13129
Mergedadambuchweitz(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/13129/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
juliusmarminge added labelsmacroscope-review
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
coderabbitai[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this19f3f6d
juliusmarminge closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
19b6b0a0-cf07-4b0c-9845-b8bd6674bb8e📥 Commits
Reviewing files that changed from the base of the PR and between 5ae9b6b7a4873c7f7eb69b37ec9f74b0428e2120 and 7cb21dbd044543a91eae6a8b87f7897e74b36389.
📒 Files selected for processing (2)
apps/server/src/project/RepositoryIdentityResolver.test.tsapps/server/src/project/RepositoryIdentityResolver.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The repository identity resolver now excludes local-path remotes, including
file:URLs and drive-letter paths. Tests cover repositories with only local remotes and repositories with both local and GitHub remotes.Changes#
Repository identity resolution
apps/server/src/project/RepositoryIdentityResolver.ts,apps/server/src/project/RepositoryIdentityResolver.test.tsnullfor local-only remotes and GitHub identity resolution when a GitHub remote is also present.Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers:
t3dotggMerge Risk: ⚪ Minimal · up to
7cb21No actionable merge-blocking issue is established for local-remote filtering; merge after normal checks.
Architecture Summary#
Architecture risk: 🟡 Medium · up to
7cb21The change affects 1 system.
Changed systems:
apps/serverArchitecture concerns No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
nullwhen all remotes are local paths, and to select the GitHubmirrorremote when it appears alongsidegb-local.isLocalRemoteUrlto identify local remotes:file:URLs and drive-letter paths are local;scheme://URLs are not; other values are local when they have no colon or a slash precedes the colon.parseRemoteFetchUrlsnow also skips remotes classified as local, in addition to skipping non-fetch entries and entries with empty names or URLs.Reliability and maintainability
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
apps/server/src/project/RepositoryIdentityResolver.tsand its test. It is a focused bug fix that filters local-path Git remotes from repository identity resolutio…Full details: Description check
Explanation
The description clearly explains the problem, the implementation, and the intended behavior. It does not include the required Scope and approval section, and it does not provide a Verification section with focused test commands and observed results.
Resolution
Add a Scope and approval section with the linked issue or maintainer approval, or explain why this focused obvious bug qualifies for the exemption. Add a Verification section that lists the resolver tests or commands run, their observed results, and any checks that were not run.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.