gitlab-org--gitlab-foss/lib/gitlab/ci/status/pipeline/blocked.rb

24 lines
432 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module Ci
module Status
module Pipeline
class Blocked < Status::Extended
def text
2017-06-07 16:13:44 -04:00
s_('CiStatusText|blocked')
end
def label
2017-06-07 16:13:44 -04:00
s_('CiStatusLabel|waiting for manual action')
end
def self.matches?(pipeline, user)
pipeline.blocked?
end
end
end
end
end
end