debian-mirror-gitlab/lib/api/entities/package_version.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
301 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module API
module Entities
class PackageVersion < Grape::Entity
expose :id
expose :version
expose :created_at
expose :tags
2021-01-29 00:20:46 +05:30
expose :pipeline, if: ->(package) { package.original_build_info }, using: Package::Pipeline
2020-07-28 23:09:34 +05:30
end
end
end