pub fn trigger_line(
command: &str,
outcome: Outcome,
reason: &str,
detail: &str,
branch: Option<&str>,
) -> StringExpand description
What: The line for one decision. Why: The fields say which command, which release, which branch and tips, and the one reason, so a missing push is diagnosed from the file alone.
In TS you’d write (pseudocode):
JSON.stringify({ schemaVersion, time, pid, release, command, outcome, reason, detail, branch }) + '\n'