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