Skip to content

Commit

Permalink
fix ungrouped PRs being created due to errors during grouped update
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Aug 17, 2023
1 parent 972af88 commit 5a6c8c2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def run_grouped_dependency_updates
Dependabot.logger.info("Found #{dependency_snapshot.groups.count} group(s).")

dependency_snapshot.groups.each do |group|
# If this group does not use update-types, then consider all dependencies as grouped.
# This will prevent any failures from creating individual PRs erroneously.
@all_grouped_changes += group.dependencies unless group.rules&.any? { |rule| rule["update-types"] }

if pr_exists_for_dependency_group?(group)
Dependabot.logger.info("Detected existing pull request for '#{group.name}'.")
Dependabot.logger.info(
Expand Down

0 comments on commit 5a6c8c2

Please sign in to comment.