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

pipeline_with_metadata.rb « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a8b1d81a053cba473b0c12de75522349c6435aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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