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

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

module Ci
  module PipelineSchedulesHelper
    def js_pipeline_schedules_form_data(project, schedule)
      {
        full_path: project.full_path,
        daily_limit: schedule.daily_limit,
        timezone_data: timezone_data.to_json,
        project_id: project.id,
        default_branch: project.default_branch,
        settings_link: project_settings_ci_cd_path(project),
        schedules_path: pipeline_schedules_path(project)
      }
    end
  end
end

Ci::PipelineSchedulesHelper.prepend_mod_with('Ci::PipelineSchedulesHelper')