Skip to main content

ci_status_note

Function ci_status_note 

Source
pub fn ci_status_note(
    existing: Option<&'static str>,
    baseline_advisory: Option<&str>,
    gates: Option<&GateOutcomes>,
    requests: Option<&RequestOutcomes>,
    grouping_dropped: Option<&str>,
) -> Option<String>
Expand description

The note a CI comment or review body carries: the type-aware message, the baseline advisory, the gate verdict, whether the run did what it was asked, a grouping this target cannot carry, or any combination of them.

Shared by the live renderers and by fallow report --from, because the two must produce byte-identical bodies for one envelope and that parity has its own suite. The clauses join in a fixed order, so two identical runs render identical bodies and a run that has nothing to say renders no note at all.

grouping_dropped is the --group-by mode when one was requested, because every target this note reaches renders one flat document (issue #2691).