2021-05-13 08:10:02 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Class is used while we're migrating from master to main
|
|
|
|
module Gitlab
|
|
|
|
module DefaultBranch
|
2021-05-14 11:10:35 -04:00
|
|
|
def self.value(object: nil)
|
|
|
|
Feature.enabled?(:main_branch_over_master, object, default_enabled: :yaml) ? 'main' : 'master'
|
2021-05-13 08:10:02 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|