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

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

module Ci
  # This class is deprecated and will be removed with the FF ci_refactoring_pipeline_schedule_create_service
  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