Merge pull request #15717 from neersighted/github_cli_token

utils/github/api: fix credentials_type
This commit is contained in:
Bo Anderson 2023-07-19 22:54:10 +01:00 committed by GitHub
commit ac93842f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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