pub struct ReviewEnvelopeRenderInput<'a> {
pub command: &'a str,
pub provider: CiProvider,
pub issues: &'a [CiIssue],
pub diff_index: Option<&'a DiffIndex>,
pub path_prefix: &'a str,
pub max_comments: usize,
pub gitlab_diff_refs: Option<&'a ReviewGitlabDiffRefs>,
pub include_guidance: bool,
pub suggestion_block: &'a dyn Fn(CiProvider, &CiIssue) -> Option<String>,
pub guidance_block: &'a dyn Fn(&CiIssue) -> Option<String>,
pub trailing_section: Option<&'a str>,
}Expand description
Inputs for rendering a GitHub/GitLab review envelope.
Fields§
§command: &'a strFallow command the review reports on.
provider: CiProviderCI provider whose review API shapes the envelope.
issues: &'a [CiIssue]Findings to turn into review comments.
diff_index: Option<&'a DiffIndex>Diff index used to keep comments on lines the diff actually added.
path_prefix: &'a strPrepended to every emitted path after diff lookups have run.
max_comments: usizeMaximum inline comments to emit.
gitlab_diff_refs: Option<&'a ReviewGitlabDiffRefs>Required for GitLab positioned discussions; ignored for GitHub.
include_guidance: boolWhether to append per-finding guidance blocks to comment bodies.
suggestion_block: &'a dyn Fn(CiProvider, &CiIssue) -> Option<String>Produces a provider-specific suggestion block for a finding, when one applies.
guidance_block: &'a dyn Fn(&CiIssue) -> Option<String>Produces a guidance block for a finding, when one applies.
trailing_section: Option<&'a str>A Markdown section in the summary body, after the inline-comment line and before the markers. The CLI uses it for the unmatched config patterns, as the sticky comment does.