summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/pipeline/blocked.rb
blob: ed13a439be087b1cccd6b9043c8c72f1eefc0b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Pipeline
        class Blocked < Status::Extended
          def text
            s_('CiStatusText|blocked')
          end

          def label
            s_('CiStatusLabel|waiting for manual action')
          end

          def self.matches?(pipeline, user)
            pipeline.blocked?
          end
        end
      end
    end
  end
end