Commit 7bdf95da authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'types-commit-status-states'

53fd54f9

 types: add missing commit status states
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !131
parents 918a0522 53fd54f9
......@@ -1878,6 +1878,8 @@ impl_id!(CommitStatusId);
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
/// States for commit statuses.
pub enum StatusState {
/// The check was created.
Created,
/// The check is queued.
Pending,
/// The check is currently running.
......@@ -1888,13 +1890,21 @@ pub enum StatusState {
Failed,
/// The check was canceled.
Canceled,
/// The check was skipped.
Skipped,
/// The check is waiting for manual action.
Manual,
}
enum_serialize!(StatusState -> "status state",
Created => "created",
Pending => "pending",
Running => "running",
Success => "success",
Failed => "failed",
Canceled => "canceled",
Skipped => "skipped",
Manual => "manual",
);
#[cfg_attr(feature="strict", serde(deny_unknown_fields))]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment