Skip to content

Commit

Permalink
Update update_script.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhuklinets authored Jul 30, 2024
1 parent e04f048 commit fffaf71
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions updater/bin/update_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ def show_diff(original_file, updated_file)

puts "source '#{$source}'"
puts "creds '#{$options[:credentials]}'"
azure_client1 = Dependabot::Clients::Azure.for_source(
source: $source,
credentials: $options[:credentials]
)
user_id = azure_client1.get_user_id
target_branch_name = $options[:branch] || azure_client1.fetch_default_branch($source.repo)
active_pull_requests = azure_client1.pull_requests_active(user_id, target_branch_name)
# azure_client1 = Dependabot::Clients::Azure.for_source(
# source: $source,
# credentials: $options[:credentials]
# )
# user_id = azure_client1.get_user_id
# target_branch_name = $options[:branch] || azure_client1.fetch_default_branch($source.repo)
# active_pull_requests = azure_client1.pull_requests_active(user_id, target_branch_name)

##############################
# Fetch the dependency files #
Expand Down

0 comments on commit fffaf71

Please sign in to comment.