Welcome to mirror list, hosted at ThFree Co, Russian Federation.

skipped.rb « build « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4fe2f7b3114e28fe313ceac0e2a2e3323201a840 (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 Build
        class Skipped < Status::Extended
          def illustration
            {
              image: 'illustrations/skipped-job_empty.svg',
              size: 'svg-430',
              title: _('This job has been skipped')
            }
          end

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