1 2 3 4 5 6 7 8 9 10 11 12 13
module Ci class CreatePipelineScheduleService < BaseService def execute project.pipeline_schedules.create(pipeline_schedule_params) end private def pipeline_schedule_params params.merge(owner: current_user) end end end