summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/pipeline/success_warning.rb
blob: 8387682e744490faabc85d891c13a78231ec6f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Gitlab
  module Ci
    module Status
      module Pipeline
        class SuccessWarning < Status::SuccessWarning
          def self.matches?(pipeline, user)
            pipeline.success? && pipeline.has_warnings?
          end
        end
      end
    end
  end
end