Commit 7319460c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Verbosify blocked pipeline status description

parent cb19fd14
...@@ -15,6 +15,8 @@ module CiStatusHelper ...@@ -15,6 +15,8 @@ module CiStatusHelper
'passed' 'passed'
when 'success_with_warnings' when 'success_with_warnings'
'passed with warnings' 'passed with warnings'
when 'manual'
'waiting for manual action'
else else
status status
end end
......
module Gitlab
module Ci
module Status
module Pipeline
class Blocked < SimpleDelegator
include Status::Extended
def text
'blocked'
end
def label
'waiting for manual action'
end
def self.matches?(pipeline, user)
pipeline.blocked?
end
end
end
end
end
end
...@@ -4,7 +4,8 @@ module Gitlab ...@@ -4,7 +4,8 @@ module Gitlab
module Pipeline module Pipeline
class Factory < Status::Factory class Factory < Status::Factory
def self.extended_statuses def self.extended_statuses
[Status::SuccessWarning] [[Status::SuccessWarning,
Status::Pipeline::Blocked]]
end end
def self.common_helpers def self.common_helpers
......
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