lib/code_ownership/private.rb in code_ownership-1.27.0 vs lib/code_ownership/private.rb in code_ownership-1.28.0

- old
+ new

@@ -48,11 +48,11 @@ stage_changes: stage_changes ) end if errors.any? - errors << 'See https://github.com/bigrails/code_ownership#README.md for more details' + errors << 'See https://github.com/rubyatscale/code_ownership#README.md for more details' raise InvalidCodeOwnershipConfigurationError.new(errors.join("\n")) # rubocop:disable Style/RaiseArgs end end sig { returns(T::Array[Private::OwnershipMappers::Interface]) } @@ -90,14 +90,14 @@ def self.tracked_files @tracked_files ||= T.let(@tracked_files, T.nilable(T::Array[String])) @tracked_files ||= Dir.glob(configuration.owned_globs) end - sig { params(team_name: String, location_of_reference: String).returns(Teams::Team) } + sig { params(team_name: String, location_of_reference: String).returns(CodeTeams::Team) } def self.find_team!(team_name, location_of_reference) - found_team = Teams.find(team_name) + found_team = CodeTeams.find(team_name) if found_team.nil? - raise StandardError, "Could not find team with name: `#{team_name}` in #{location_of_reference}. Make sure the team is one of `#{Teams.all.map(&:name).sort}`" + raise StandardError, "Could not find team with name: `#{team_name}` in #{location_of_reference}. Make sure the team is one of `#{CodeTeams.all.map(&:name).sort}`" else found_team end end