Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipeline_schedule_details.rb « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d661a8940ea77975c39b8c8cbb01115611879165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    module Ci
      class PipelineScheduleDetails < PipelineSchedule
        expose :last_pipeline, using: ::API::Entities::Ci::PipelineBasic
        expose :variables,
          using: ::API::Entities::Ci::Variable,
          if: ->(schedule, options) { Ability.allowed?(options[:user], :read_pipeline_schedule_variables, schedule) }
      end
    end
  end
end