2020-10-24 23:57:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
module Ci
|
|
|
|
class Pipeline < PipelineBasic
|
|
|
|
expose :before_sha, :tag, :yaml_errors
|
|
|
|
|
|
|
|
expose :user, with: Entities::UserBasic
|
|
|
|
expose :created_at, :updated_at, :started_at, :finished_at, :committed_at
|
|
|
|
expose :duration
|
2021-06-08 01:23:25 +05:30
|
|
|
expose :queued_duration
|
2020-10-24 23:57:45 +05:30
|
|
|
expose :coverage
|
|
|
|
expose :detailed_status, using: DetailedStatusEntity do |pipeline, options|
|
|
|
|
pipeline.detailed_status(options[:current_user])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|