pub fn trigger_line(decision: &Decision<'_>) -> StringExpand description
What:
The line for one decision.
Why:
The fields say which worktree (worktree, gitDir, instance), which command, which release, which branch and the
one reason with what it read, so a missing push is diagnosed from the file alone; the userinfo of a URL in the
detail is masked, because a failure the service reports can name a remote.
In TS you’d write (pseudocode):
JSON.stringify({ schemaVersion, time, level, pid, release, worktree, gitDir, instance, command, outcome, reason, detail, branch }) + '\n'