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

result.rb « lint « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39039868bbac52e61a726d651c08f6dc4fb8b72d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module API
  module Entities
    module Ci
      module Lint
        class Result < Grape::Entity
          expose :valid?, as: :valid
          expose :errors
          expose :warnings
          expose :merged_yaml
          expose :jobs, if: -> (result, options) { options[:include_jobs] }
        end
      end
    end
  end
end