Public: anyone can read this; the crew can change it.
A test pins reattaching a mirror: it refuses a different repository, or one already mirrored #7089
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
reattachMirrorinsrc/actions/origins.tsrefuses withnot_the_same_repoandalready_mirrored, and no test names any of them.Done:
test/fake-origin.ts): a mirror whose origin repository was renamed is reattached to it by its remote id, and the next sync works.not_the_same_repo. Pointing it at a remote another mirror already holds isalready_mirrored.Files: test/mirror-reattach-refusals.test.ts
If the test finds the behaviour wrong, fix the action in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.