From a5554df6bbb82066ce52b9e34f1b085050cdf33a Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Wed, 19 Jul 2023 14:57:13 -0600 Subject: [PATCH] utils/github/api: fix credentials_type The order is shared with self.credentials, but during the deprecation cycle the need to adjust self.credentials_type to match was overlooked. --- Library/Homebrew/utils/github/api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/github/api.rb b/Library/Homebrew/utils/github/api.rb index ab5caebed2..151fd73aa4 100644 --- a/Library/Homebrew/utils/github/api.rb +++ b/Library/Homebrew/utils/github/api.rb @@ -167,10 +167,10 @@ module GitHub def self.credentials_type if Homebrew::EnvConfig.github_api_token.present? :env_token - elsif keychain_username_password.present? - :keychain_username_password elsif github_cli_token.present? :github_cli_token + elsif keychain_username_password.present? + :keychain_username_password else :none end