pub fn append_note(
repo_root: &Path,
slug: &str,
author: &str,
text: &str,
) -> Result<TicketNote>Expand description
Append one note to a ticket’s discussion, creating the sidecar on first
append. author is supplied by the caller (the CLI resolves
KRANZ_NOTE_AUTHOR → operator); text is trimmed, scrubbed (the file
is committed — the same posture as text the engine writes into ticket
bodies), and must not be empty. Returns the stored note.