pub struct PrSummaryInput<'a> {
pub command: &'a str,
pub provider: CiProvider,
pub marker_id: String,
pub scope: PrSummaryScope,
pub areas: &'a [PrSummaryArea],
pub findings: &'a [PrSummaryFinding],
pub max_findings: usize,
pub details_url: Option<&'a str>,
pub layout: PrCommentLayout,
pub status_note: Option<&'a str>,
pub trailing_section: Option<&'a str>,
}Expand description
Inputs for render_pr_summary.
Fields§
§command: &'a strFallow command the summary reports on, e.g. audit.
provider: CiProviderCI provider whose comment conventions apply.
marker_id: StringIdentity token embedded as an HTML marker so reruns update the same sticky comment instead of posting a new one.
scope: PrSummaryScopeAnalysis scope reported in the header.
areas: &'a [PrSummaryArea]Area rows for the summary table.
findings: &'a [PrSummaryFinding]Findings eligible for the top-findings list.
max_findings: usizeMaximum findings to render; clamped to at least 1.
details_url: Option<&'a str>Link to the full report, when hosted output exists.
layout: PrCommentLayoutBody layout variant.
status_note: Option<&'a str>The status note, rendered as one blockquote line under the callout. The caller joins it with the same function as the saved render, so both bodies state the same clauses in the same order.
trailing_section: Option<&'a str>A Markdown section after the findings and before the footer, in every layout. The CLI uses it for the unmatched config patterns.