From 9d9b29841c7dabefc112529264170a975108177d Mon Sep 17 00:00:00 2001 From: sachin-sandhu Date: Wed, 23 Oct 2024 23:19:16 -0400 Subject: [PATCH] adds logs for branching --- .../dependabot/pull_request_creator/branch_namer/base.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/lib/dependabot/pull_request_creator/branch_namer/base.rb b/common/lib/dependabot/pull_request_creator/branch_namer/base.rb index cda895920e1..0d4b48c9b6f 100644 --- a/common/lib/dependabot/pull_request_creator/branch_namer/base.rb +++ b/common/lib/dependabot/pull_request_creator/branch_namer/base.rb @@ -83,6 +83,9 @@ def sanitize_branch_name(ref_name) sig { params(ref: String).returns(String) } def dedup_existing_branches(ref) + Dependabot.logger.info( + "Dependabot::PullRequestCreator::dedup_existing_branches::ref : #{ref}" + ) return ref unless existing_branches.include?(ref) i = 1 @@ -92,6 +95,10 @@ def dedup_existing_branches(ref) new_ref = "#{ref}-#{i}" end + Dependabot.logger.info( + "Dependabot::PullRequestCreator::dedup_existing_branches::new_ref : #{new_ref}" + ) + new_ref end