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

dependency.rb « job_request « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 64d779f6575881536b44f46fb10f8d108641b01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module API
  module Entities
    module JobRequest
      class Dependency < Grape::Entity
        expose :id, :name, :token
        expose :artifacts_file, using: Entities::JobArtifactFile, if: ->(job, _) { job.artifacts? }
      end
    end
  end
end