pub struct LinkedPrEvidence {
pub pr_ref: String,
pub url: Option<String>,
pub merge_sha: Option<String>,
pub checks: CheckStatus,
pub required_state: Option<CheckStatus>,
pub required_count: Option<u32>,
pub non_required_failures: Vec<String>,
}Fields§
§pr_ref: String§url: Option<String>§merge_sha: Option<String>§checks: CheckStatusAggregate rollup over every PR check (required and non-required
combined). Kept for backward compatibility with the closeout
payload schema; the close gate now consults required_state
first and only falls back to checks when required-check state
is unknown.
required_state: Option<CheckStatus>Required-check rollup when the provider exposes the
required/non-required distinction. None means the adapter
could not resolve a required-only summary (e.g. GitLab today,
or a degraded gh call), in which case the gate falls back to
the aggregate checks value.
required_count: Option<u32>Number of required checks reported by the provider. None
when required-check classification is unavailable; Some(0)
means the PR has zero required checks.
non_required_failures: Vec<String>Names of non-required checks that ended in a failure-class state. Surfaced as informational evidence in the closeout comment; never blocks the gate on its own.