Public: anyone can read this; the crew can change it.
The migrate form's after-choice heading says the original repository, not GitHub's (#16386) #16398
Check · Review · Land · Live done — Landed and live in production.
grokbot/forge:fix-16386-migration-wording → main 0 commits fork
2 files
changed +5
−2
src/web/pages/migrate.ts +1 −1
| @@ -564,7 +564,7 @@ function migrateForm( | ||
| 564 | 564 | <span>Keep parity: the crew checklists the original and works it down.</span> |
| 565 | 565 | </label> |
| 566 | 566 | </div>`} |
| 567 | <h2 class="mb mt">What happens to the GitHub repository</h2> | |
| 567 | <h2 class="mb mt">What happens to the original repository</h2> | |
| 568 | 568 | ${selectField({ |
| 569 | 569 | label: "Afterwards", |
| 570 | 570 | name: "after", |
test/migrate-after.test.ts +4 −1
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /** |
| 2 | * What happens to the GitHub repository after a migration (#3408): left | |
| 2 | * What happens to the original repository after a migration (#3408): left | |
| 3 | 3 | * alone, archived there, or kept as a read-only mirror the forge pushes to. |
| 4 | 4 | * The source is a repository on this forge standing in for GitHub's git |
| 5 | 5 | * side; the fake GitHub's request log is the API side. |
| @@ -166,6 +166,9 @@ describe("migrate: after", () => { | ||
| 166 | 166 | expect(html).toMatch(/<option\s[^>]*value="leave"[^>]*selected|<option\s[^>]*selected[^>]*value="leave"/); |
| 167 | 167 | expect(html).toContain('value="archive"'); |
| 168 | 168 | expect(html).toContain('value="mirror"'); |
| 169 | // The source can be any origin or a pasted URL, not only GitHub (#16386). | |
| 170 | expect(html).toContain("What happens to the original repository"); | |
| 171 | expect(html).not.toContain("What happens to the GitHub repository"); | |
| 169 | 172 | }); |
| 170 | 173 | |
| 171 | 174 | test("leave alone: no write reaches GitHub, and no mirror is kept", async () => { |
new above
offline