summaryrefslogtreecommitdiff
path: root/app/services/ci/create_pipeline_schedule_service.rb
blob: cd40deb61871b191b9f85d5f33ee71710acbffff (plain)
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