Skip to content

Commit

Permalink
undo feature flag when checking directory
Browse files Browse the repository at this point in the history
  • Loading branch information
judocode authored and kbukum1 committed Jan 31, 2025
1 parent aeadc15 commit 64aed8b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,14 @@ def job_group
def mark_group_handled(group, excluding_dependencies = {})
Dependabot.logger.info("Marking group '#{group.name}' as handled.")

enable = Dependabot::Experiments.enabled?(:allow_refresh_for_existing_pr_dependencies)

directories.each do |directory|
@current_directory = directory

# add the existing dependencies in the group so individual updates don't try to update them
dependencies_in_existing_prs = dependencies_in_existing_pr_for_group(group)

if enable
dependencies_in_existing_prs = dependencies_in_existing_prs.filter do |dep|
!dep["directory"] || dep["directory"] == directory
end
dependencies_in_existing_prs = dependencies_in_existing_prs.filter do |dep|
!dep["directory"] || dep["directory"] == directory
end

# also add dependencies that might be in the group, as a rebase would add them;
Expand Down

0 comments on commit 64aed8b

Please sign in to comment.