Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
judocode committed Jan 30, 2025
1 parent 78c24f0 commit 060e28f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def job_group
@dependency_group_engine.find_group(name: T.must(job.dependency_group_to_refresh))
end

sig { params(group: Dependabot::DependencyGroup, excluding_dependencies: T::Hash[Symbol, T::Set[String]]).void }
sig { params(group: Dependabot::DependencyGroup, excluding_dependencies: T::Hash[String, T::Set[String]]).void }
def mark_group_handled(group, excluding_dependencies = {})
Dependabot.logger.info("Marking group '#{group.name}' as handled.")

Expand All @@ -134,10 +134,10 @@ def mark_group_handled(group, excluding_dependencies = {})
# also add dependencies that might be in the group, as a rebase would add them;
# this avoids individual PR creation that immediately is superseded by a group PR supersede
current_dependencies = group.dependencies.map(&:name).reject do |dep|
excluding_dependencies[directory].include?(dep)
excluding_dependencies[directory]&.include?(dep)
end

add_handled_dependencies(current_dependencies.concat(dependencies_in_existing_prs.map do |dep|
add_handled_dependencies(current_dependencies.concat(dependencies_in_existing_prs.filter_map do |dep|
dep["dependency-name"]
end))
end
Expand Down

0 comments on commit 060e28f

Please sign in to comment.