debian-mirror-gitlab/lib/api/entities/pipeline_basic.rb
2020-03-09 13:42:32 +05:30

14 lines
336 B
Ruby

# frozen_string_literal: true
module API
module Entities
class PipelineBasic < Grape::Entity
expose :id, :sha, :ref, :status
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