debian-mirror-gitlab/lib/gitlab/default_branch.rb

11 lines
253 B
Ruby
Raw Permalink Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
# Class is used while we're migrating from master to main
module Gitlab
module DefaultBranch
def self.value(object: nil)
2022-07-16 23:28:13 +05:30
Feature.enabled?(:main_branch_over_master, object) ? 'main' : 'master'
2021-06-08 01:23:25 +05:30
end
end
end