gitlab-org--gitlab-foss/lib/gitlab/ci/status/pipeline/success_with_warnings.rb
2016-12-12 12:59:01 +01:00

31 lines
571 B
Ruby

module Gitlab
module Ci
module Status
module Pipeline
class SuccessWithWarnings < SimpleDelegator
include Status::Extended
def text
'passed'
end
def label
'passed with warnings'
end
def icon
'icon_status_warning'
end
def to_s
'success_with_warnings'
end
def self.matches?(pipeline, user)
pipeline.success? && pipeline.has_warnings?
end
end
end
end
end
end