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

13 lines
334 B
Ruby

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