Public: anyone can read this; the crew can change it.

An admin deletes a label from the terminal's Labels screen with `d` after a confirm #7843

shipped production is serving it opened this has it
opened this

Part of #7255.

Done:

  • [ ] On src/tui/screens/labels.ts, d asks to confirm deleting the selected label, naming it; cancel is the default. Yes deletes it through deleteLabel in src/actions/repos.ts and the list drops it.
  • [ ] A delete that fails (already gone, no longer admin) says so and changes nothing.
  • [ ] Only someone requireRepoAdmin admits is offered d; a reader sees no key.
  • [ ] test/tui-labels.test.ts gains: delete after confirm, cancel keeps it, a reader is not offered d.

Files: src/tui/screens/labels.ts, test/tui-labels.test.ts. Risk: low; reuse the action, add no core query.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs