Commit 336affe9 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Add scheduled status

parent 51a81776
...@@ -8,7 +8,7 @@ module Gitlab ...@@ -8,7 +8,7 @@ module Gitlab
end end
def label def label
s_('CiStatusLabel|waiting for manual action or delayed job') s_('CiStatusLabel|waiting for manual action')
end end
def self.matches?(pipeline, user) def self.matches?(pipeline, user)
......
...@@ -5,6 +5,7 @@ module Gitlab ...@@ -5,6 +5,7 @@ module Gitlab
class Factory < Status::Factory class Factory < Status::Factory
def self.extended_statuses def self.extended_statuses
[[Status::SuccessWarning, [[Status::SuccessWarning,
Status::Pipeline::Scheduled,
Status::Pipeline::Blocked]] Status::Pipeline::Blocked]]
end end
......
module Gitlab
module Ci
module Status
module Pipeline
class Scheduled < Status::Extended
def text
s_('CiStatusText|scheduled')
end
def label
s_('CiStatusLabel|waiting for delayed job')
end
def self.matches?(pipeline, user)
pipeline.scheduled?
end
end
end
end
end
end
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