summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/deployment/skipped.rb
blob: 928879194dd8c4d05666d2487350d25d81cb6792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module Ci
    module Status
      module Deployment
        class Skipped < Status::Extended
          def environment_text
            "This job was skipped and did not deploy to %{environment_path}."
          end

          def self.matches?(deployment, user)
            deployment.skipped?
          end
        end
      end
    end
  end
end