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

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

module Projects
  module Settings
    module BranchRulesHelper
      def branch_rules_data(project)
        {
          project_path: project.full_path,
          protected_branches_path: project_settings_repository_path(project, anchor: 'js-protected-branches-settings'),
          approval_rules_path: project_settings_merge_requests_path(project,
            anchor: 'js-merge-request-approval-settings'),
          status_checks_path: project_settings_merge_requests_path(project, anchor: 'js-merge-request-settings'),
          branches_path: project_branches_path(project),
          show_status_checks: 'false',
          show_approvers: 'false',
          show_code_owners: 'false'
        }
      end
    end
  end
end

Projects::Settings::BranchRulesHelper.prepend_mod