Merge pull request #15717 from neersighted/github_cli_token
utils/github/api: fix credentials_type
This commit is contained in:
commit
ac93842f8d
@ -167,10 +167,10 @@ module GitHub
|
|||||||
def self.credentials_type
|
def self.credentials_type
|
||||||
if Homebrew::EnvConfig.github_api_token.present?
|
if Homebrew::EnvConfig.github_api_token.present?
|
||||||
:env_token
|
:env_token
|
||||||
elsif keychain_username_password.present?
|
|
||||||
:keychain_username_password
|
|
||||||
elsif github_cli_token.present?
|
elsif github_cli_token.present?
|
||||||
:github_cli_token
|
:github_cli_token
|
||||||
|
elsif keychain_username_password.present?
|
||||||
|
:keychain_username_password
|
||||||
else
|
else
|
||||||
:none
|
:none
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user