16 lines
394 B
Ruby
16 lines
394 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
module Ci
|
|
class PipelineBasic < Grape::Entity
|
|
expose :id, :project_id, :sha, :ref, :status, :source
|
|
expose :created_at, :updated_at
|
|
|
|
expose :web_url do |pipeline, _options|
|
|
Gitlab::Routing.url_helpers.project_pipeline_url(pipeline.project, pipeline)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|