lib/code_ownership/configuration.rb in code_ownership-1.34.2 vs lib/code_ownership/configuration.rb in code_ownership-1.35.0
- old
+ new
@@ -9,10 +9,11 @@
const :unowned_globs, T::Array[String]
const :js_package_paths, T::Array[String]
const :unbuilt_gems_path, T.nilable(String)
const :skip_codeowners_validation, T::Boolean
const :raw_hash, T::Hash[T.untyped, T.untyped]
+ const :require_github_teams, T::Boolean
sig { returns(Configuration) }
def self.fetch
config_hash = YAML.load_file('config/code_ownership.yml')
@@ -25,10 +26,11 @@
new(
owned_globs: config_hash.fetch('owned_globs', []),
unowned_globs: config_hash.fetch('unowned_globs', []),
js_package_paths: js_package_paths(config_hash),
skip_codeowners_validation: config_hash.fetch('skip_codeowners_validation', false),
- raw_hash: config_hash
+ raw_hash: config_hash,
+ require_github_teams: config_hash.fetch('require_github_teams', false)
)
end
sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[String]) }
def self.js_package_paths(config_hash)