debian-mirror-gitlab/lib/gitlab/ci/status/build/failed_allowed.rb

26 lines
462 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
module Gitlab
module Ci
module Status
module Build
class FailedAllowed < Status::Extended
def label
'failed (allowed to fail)'
end
def icon
2018-03-17 18:26:18 +05:30
'status_warning'
2017-08-17 22:00:37 +05:30
end
def group
'failed_with_warnings'
end
def self.matches?(build, user)
build.failed? && build.allow_failure?
end
end
end
end
end
end