pub struct Gates {
pub state: String,
pub title: Option<String>,
pub gates: Vec<Gate>,
pub trail: Option<u64>,
pub url: Option<String>,
}Fields§
§state: StringThe check’s own state: passed, failed, pending or neutral
(the gates do not apply, as when no trail tracks the branch).
title: Option<String>§gates: Vec<Gate>§trail: Option<u64>The trail number the summary links to. Trail numbers are not PR numbers.
url: Option<String>Implementations§
Source§impl Gates
impl Gates
Sourcepub fn parse(
status: &str,
conclusion: Option<&str>,
title: Option<&str>,
summary: Option<&str>,
url: Option<&str>,
) -> Self
pub fn parse( status: &str, conclusion: Option<&str>, title: Option<&str>, summary: Option<&str>, url: Option<&str>, ) -> Self
Reads the check from its status and conclusion (in either REST’s lowercase or GraphQL’s uppercase), title, summary and details URL.
pub fn failed(&self) -> bool
pub fn failing(&self) -> impl Iterator<Item = &Gate>
Sourcepub fn derived(&self) -> bool
pub fn derived(&self) -> bool
Whether the check failed only for reasons reported elsewhere: other checks failing, or the branch behind or conflicting. A failed check whose summary names no failing gate is not derived: there is nothing to point at instead.
Sourcepub fn not_ci(&self) -> bool
pub fn not_ci(&self) -> bool
Whether the check failed for nothing CI did: derived gates, or an approval on the trail still to come. A wait for CI does not count it.
Sourcepub fn read(&self) -> bool
pub fn read(&self) -> bool
Whether the summary was read: a failed check names its failing gates. One that names none is in a form jouet does not know, and is never guessed at.
Sourcepub fn failing_text(&self) -> String
pub fn failing_text(&self) -> String
The failing gates, as findings: Unresolved findings: 2 medium severity; checks: CI checks have not passed, or, when the summary
names none, the check’s title and that jouet could not read it.