debian-mirror-gitlab/lib/gitlab/default_branch.rb
2022-07-16 19:58:13 +02:00

10 lines
253 B
Ruby

# 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