debian-mirror-gitlab/lib/api/entities/ci/lint/result.rb
2022-07-17 14:43:12 +02:00

18 lines
391 B
Ruby

# 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 :includes
expose :jobs, if: -> (result, options) { options[:include_jobs] }
end
end
end
end
end