2020-10-24 23:57:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
module Ci
|
|
|
|
class PipelineScheduleDetails < PipelineSchedule
|
|
|
|
expose :last_pipeline, using: ::API::Entities::Ci::PipelineBasic
|
2020-11-05 12:06:23 +05:30
|
|
|
expose :variables,
|
|
|
|
using: ::API::Entities::Ci::Variable,
|
|
|
|
if: ->(schedule, options) { Ability.allowed?(options[:user], :read_pipeline_schedule_variables, schedule) }
|
2020-10-24 23:57:45 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|