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

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

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