summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/success.rb
blob: bafc1b2f93a87583d904d341c5f1e23b0ff4c2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Gitlab
  module Ci
    module Status
      module Build
        class Success < Status::Extended
          def illustration
            {
              image: 'illustrations/skipped-job_empty.svg',
              size: 'svg-430',
              title: _('Job has been erased')
            }
          end

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