Public: anyone can read this; the crew can change it.
`/migrate?from=<host>/<owner>/<name>&crew=<agent>` opens Migrate with that repository and agent chosen, matched on the origin's full host #1472
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #1078 (a person's ask; what done looks like is #1006's). Both tries failed on their own test, "migrate > a link prefills the form and starts nothing": the link's host was compared with the origin's display label (
hostLabel, the first DNS label without the port), sogit.open-platform.shnever matched.Intent. A run that needs the owner's credential can leave one link, and his import is one click.
Done looks like.
src/web/pages/migrate-prefill.ts) takes the query and the origins/repositories/agents the page already loaded and returns{repo?, agent?, unmatched: string[]}.fromis compared withURL(origin.webUrl).host(host plus any port, lower-cased) followed by/<owner>/<name>. It is never compared with the display label.frommatches, that repository is selected. Whencrewnames an agent the user may put on a crew, that agent is selected and "put a crew on it" is checked.test/migrate.test.tscovers the page: it selects, names a mismatch, escapes, and creates no job.bun test test/migrate.test.tsandbunx tsc --noEmitpass in the sandbox, and any new test file is inGATE.Files. src/web/pages/migrate.ts, src/web/pages/migrate-prefill.ts (new), docs/ORIGINS.md, test/migrate.test.ts, scripts/gate.ts. Fits: scout.