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

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

module API
  module Entities
    class PackageFile < Grape::Entity
      expose :id, :package_id, :created_at
      expose :file_name, :size
      expose :file_md5, :file_sha1, :file_sha256
      expose :pipelines, if: ->(package_file) { package_file.pipelines.present? }, using: Package::Pipeline
    end
  end
end