Repository navigation
Commit 6d5df6a
refactor(source-control): forges handle their own listing and SSH host quirks
Two flags still made the shared pull request service compensate for one forge,
and the order that decides which forge owns a URL or remote was written twice.
GitHub search can answer for a renamed repository with silence.
`listsAcrossMayOmitRepositories` had the service track which repositories
search had shown, for how long, and on which slice. The GitHub adapter now
returns the repositories it cannot vouch for as `unresolved`, and the service
reads those on their own without knowing why. The adapter decides with a cached
check of whether search has any pull request for the repository, kept for an
hour; a repository with no open pull requests is no longer read on its own on
every listing.
A Forgejo SSH remote names an alias, not the web server.
`sshRemoteHidesWebHost` had the service rewrite a recognised Forgejo provider
to "unknown" to force discovery, then take the web host from the result.
Source control providers now have an optional `resolveRemoteWebHost`;
Forgejo answers it from the login that serves the remote, and the service uses
whatever host it returns.
The definitions and their precedence now live in a small
`@t3tools/source-control-definitions` package that the server and clients
both import, and a server test checks its driver list matches them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 80f2719 commit 6d5df6a
21 files changed
Lines changed: 686 additions & 298 deletions
File tree
- apps/server
- src
- pullRequest
- sourceControl
- packages
- client-runtime
- src
- source-control-core/src
- server
- source-control-definitions
- src
- source-control-forgejo/src
- server
- source-control-github/src/server
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
173 | 195 | | |
174 | 196 | | |
175 | 197 | | |
| |||
193 | 215 | | |
194 | 216 | | |
195 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
196 | 222 | | |
197 | 223 | | |
198 | 224 | | |
| |||
2191 | 2217 | | |
2192 | 2218 | | |
2193 | 2219 | | |
2194 | | - | |
2195 | 2220 | | |
2196 | 2221 | | |
2197 | 2222 | | |
| |||
2200 | 2225 | | |
2201 | 2226 | | |
2202 | 2227 | | |
| 2228 | + | |
2203 | 2229 | | |
2204 | 2230 | | |
2205 | 2231 | | |
| |||
2283 | 2309 | | |
2284 | 2310 | | |
2285 | 2311 | | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
2298 | | - | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | | - | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
2313 | 2337 | | |
2314 | | - | |
| 2338 | + | |
2315 | 2339 | | |
2316 | | - | |
2317 | | - | |
2318 | | - | |
2319 | | - | |
2320 | | - | |
2321 | | - | |
2322 | | - | |
2323 | | - | |
2324 | | - | |
2325 | | - | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
2329 | 2353 | | |
2330 | | - | |
| 2354 | + | |
2331 | 2355 | | |
2332 | 2356 | | |
2333 | 2357 | | |
| |||
0 commit comments