Skip to content

Commit

Permalink
adds logs for branching
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-sandhu committed Oct 24, 2024
1 parent 92b4d2c commit 5d466e0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 5d466e0

Please sign in to comment.