debian-mirror-gitlab/lib/api/entities/ci/pipeline_basic_with_metadata.rb
2023-06-20 00:43:36 +05:30

13 lines
344 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ci
class PipelineBasicWithMetadata < PipelineBasic
expose :name,
documentation: { type: 'string', example: 'Build pipeline' },
if: ->(pipeline, _) { ::Feature.enabled?(:pipeline_name_in_api, pipeline.project) }
end
end
end
end