debian-mirror-gitlab/lib/api/entities/ci/job_request/dependency.rb
2021-09-30 23:02:18 +05:30

14 lines
321 B
Ruby

# 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.artifacts? }
end
end
end
end
end