diff options
Diffstat (limited to 'lib/api/entities/ci/pipeline_basic.rb')
-rw-r--r-- | lib/api/entities/ci/pipeline_basic.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/entities/ci/pipeline_basic.rb b/lib/api/entities/ci/pipeline_basic.rb index 8086062dc9b..4d56176bdb3 100644 --- a/lib/api/entities/ci/pipeline_basic.rb +++ b/lib/api/entities/ci/pipeline_basic.rb @@ -4,11 +4,9 @@ module API module Entities module Ci class PipelineBasic < Grape::Entity - expose :id, :project_id, :sha, :ref, :status + expose :id, :project_id, :sha, :ref, :status, :source expose :created_at, :updated_at - expose :source, if: ->(pipeline, options) { ::Feature.enabled?(:pipeline_source_filter, options[:project], default_enabled: :yaml) } - expose :web_url do |pipeline, _options| Gitlab::Routing.url_helpers.project_pipeline_url(pipeline.project, pipeline) end |