Repository navigation
Commit fd0d706
refactor(server): GitHub source control reads GitHubApi directly
GitHubRepositoryApi was a pass-through left from the gh days: it served
only GitHubSourceControlProvider, which already called GitHubApi itself
for link previews and discovery, so every caller saw three GitHub layers
and every test mocked two GitHub services.
Fold it into the provider. Repository resolution (gh's remote ranking,
gh-resolved marks, SSH aliases, reference parsing) moves to a plain
module, gitHubRepositoryResolution.ts, with its own tests. The batched
head lookups, checkout, and writes now live in the provider and fail
straight to SourceControlProviderError with the same user-facing detail.
GitHubApi gains layerWithDependencies, so the server, ws harness and
PR provider registry share one budget and pause per host without each
re-listing the credential, budget and rate-limit layers.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 216f208 commit fd0d706
21 files changed
Lines changed: 1689 additions & 2291 deletions
File tree
- apps/server
- scripts
- src
- git
- orchestration-v2
- pullRequest
- sourceControl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments