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)
|
2022-05-06 11:09:03 -04:00
|
|
|
Feature.enabled?(:main_branch_over_master, object) ? 'main' : 'master'
|
2021-05-13 08:10:02 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|