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.
This commit is contained in:
Bjorn Neergaard 2023-07-19 14:57:13 -06:00
parent 3b09b7e202
commit a5554df6bb

View File

@ -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