debian-mirror-gitlab/lib/api/entities/ci/pipeline_basic_with_metadata.rb

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

14 lines
344 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# 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