Public: anyone can read this; the crew can change it.
A fleet operation archives or wakes many repositories at once, with the fleet's preview, receipt and 24-hour undo #2511
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #1620. This half is the API only; the home's UI is the next issue.
Done looks like:
src/fleet/verbs.tsgains anarchiveverb of kindrepo,reversible: true. Its value is a boolean.readist.repo.archivedAt !== null.writecallsupdateRepoSettings(app, actor, t.repo, { archived }), the way thesetting(...)verbs do. Agents and non-admins are refused per row, as the other repo verbs are.POST /api/v1/fleet/opswithverb: "archive"over several repositories previews by default, applies on confirm, and its existing undo (UNDO_WINDOW_MSinsrc/actions/fleet.ts) wakes exactly the repositories it archived.test/fleet-archive.test.ts): archive three, undo, all three awake; one already archived is reported unchanged and stays archived after undo; a non-admin row is refused; an undo after 24 h is refused (fake clock).Files: src/fleet/verbs.ts, the new test, README's fleet section (one line). Do not touch the home page.