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

default_branch.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bb540b93a5800eca6fa625071a8dcdc7df1e9a10 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# Class is used while we're migrating from master to main
module Gitlab
  module DefaultBranch
    def self.value(object: nil)
      Feature.enabled?(:main_branch_over_master, object) ? 'main' : 'master'
    end
  end
end