summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/pipeline/blocked.rb
blob: a250c3fcb419dd8ebf4a57fef68e4676c376cab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Gitlab
  module Ci
    module Status
      module Pipeline
        class Blocked < SimpleDelegator
          include Status::Extended

          def text
            'blocked'
          end

          def label
            'waiting for manual action'
          end

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