lib/code_ownership/private.rb in code_ownership-1.36.1 vs lib/code_ownership/private.rb in code_ownership-1.36.2
- old
+ new
@@ -6,10 +6,11 @@
require 'code_ownership/private/team_plugins/ownership'
require 'code_ownership/private/team_plugins/github'
require 'code_ownership/private/codeowners_file'
require 'code_ownership/private/parse_js_packages'
require 'code_ownership/private/glob_cache'
+require 'code_ownership/private/owner_assigner'
require 'code_ownership/private/validations/files_have_owners'
require 'code_ownership/private/validations/github_codeowners_up_to_date'
require 'code_ownership/private/validations/files_have_unique_owners'
require 'code_ownership/private/ownership_mappers/file_annotations'
require 'code_ownership/private/ownership_mappers/team_globs'
@@ -96,10 +97,9 @@
end
in_unowned_globs = configuration.unowned_globs.any? do |unowned_glob|
File.fnmatch?(unowned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB)
end
-
in_owned_globs && !in_unowned_globs && File.exist?(file)
end
sig { params(team_name: String, location_of_reference: String).returns(CodeTeams::Team) }
def self.find_team!(team_name, location_of_reference)