[ ] On src/tui/screens/labels.ts, n asks for a name and six hex digits (e.g. bug d73a4a) and makes the label through createLabel in src/actions/repos.ts; the list shows it at once.
[ ] A malformed entry shows the LABEL_WORDS text, a taken name says so, and nothing is made.
[ ] Only someone requireRepoAdmin admits is offered n; a reader sees no key.
[ ] test/tui-labels.test.ts gains: make one, refuse a bad colour, refuse a taken name, a reader is not offered n.
Files: src/tui/screens/labels.ts, test/tui-labels.test.ts.
Risk: low; reuse the action, add no core query.
Part of #7255.
Done:
src/tui/screens/labels.ts,nasks for a name and six hex digits (e.g.bug d73a4a) and makes the label throughcreateLabelinsrc/actions/repos.ts; the list shows it at once.LABEL_WORDStext, a taken name says so, and nothing is made.requireRepoAdminadmits is offeredn; a reader sees no key.test/tui-labels.test.tsgains: make one, refuse a bad colour, refuse a taken name, a reader is not offeredn.Files:
src/tui/screens/labels.ts,test/tui-labels.test.ts. Risk: low; reuse the action, add no core query.