Commit 53fd54f9 authored by Brad King's avatar Brad King
Browse files

types: add missing commit status states

Upstream gitlab-ce source file `app/models/concerns/has_status.rb`
has an `AVAILABLE_STATUSES` list of possible commit status states.
Add those that we are missing.
parent 918a0522
......@@ -1878,6 +1878,8 @@ impl_id!(CommitStatusId);
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
/// States for commit statuses.
pub enum StatusState {
/// The check was created.
/// The check is queued.
/// The check is currently running.
......@@ -1888,13 +1890,21 @@ pub enum StatusState {
/// The check was canceled.
/// The check was skipped.
/// The check is waiting for manual action.
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