Skip to content

Commit

Permalink
log when group and dependencies are marked as handled
Browse files Browse the repository at this point in the history
  • Loading branch information
judocode committed Jan 23, 2025
1 parent 1f66768 commit 5167305
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def job_group

sig { params(group: Dependabot::DependencyGroup).void }
def mark_group_handled(group)
Dependabot.logger.info("Marking group '#{group.name}' as handled.")

directories.each do |directory|
@current_directory = directory

Expand All @@ -135,9 +137,10 @@ def mark_group_handled(group)
sig { params(dependency_names: T.any(String, T::Array[String])).void }
def add_handled_dependencies(dependency_names)
assert_current_directory_set!
set = @handled_dependencies[@current_directory] || Set.new
set += Array(dependency_names)
@handled_dependencies[@current_directory] = set
names = Array(dependency_names)
Dependabot.logger.info("Adding dependencies as handled: (#{names.join(', ')}).")
@handled_dependencies[@current_directory] ||= Set.new
@handled_dependencies[@current_directory]&.merge(names)
end

sig { returns(T::Set[String]) }
Expand Down

0 comments on commit 5167305

Please sign in to comment.