Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ungrouped PRs being created due to errors during grouped update #7829

Merged
merged 7 commits into from
Aug 21, 2023
Merged
Next Next commit
fix ungrouped PRs being created due to errors during grouped update
  • Loading branch information
jakecoffman committed Aug 17, 2023
commit 5a6c8c2f790ec53d3359d311fb0f29402bd8a320
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