Status
The outcome of a CI job or step.
Import
Section titled “Import”Cargo feature ci (enabled by default). To compile only this module:
or in Cargo.toml:
Definition
Section titled “Definition”Examples
Section titled “Examples”Methods
Section titled “Methods”from_conclusion
Section titled “from_conclusion”Reads the conclusion names CI services use, ignoring case.
success, passed and pass are Status::Success; failure, failed, error and
timed_out are Status::Failure; cancelled and canceled are Status::Cancelled;
skipped is Status::Skipped; pending, queued, in_progress and running are
Status::Pending.
Parameters
| Parameter | Type | Description |
|---|---|---|
conclusion | &str | The name, such as "success" or "cancelled". |
Returns
Option<Self> — The status, or None for a name that is not one of those.
An emoji for the status, for a report or a PR comment.
Returns
&'static str — \u{2705} for success, \u{274c} for failure, \u{1f6ab} for cancelled, \u{23ed}\u{fe0f} for skipped
and \u{23f3} for pending.
The lower-case name of the status.
Returns
&'static str — "success", "failure", "cancelled", "skipped" or "pending".
