Merge pull request #3376 from tomjonandy/fix/keychain-credentials
Fix issue where keychain github credentials wouldn't work
This commit is contained in:
commit
c59c0d6820
@ -87,8 +87,8 @@ module GitHub
|
|||||||
def api_credentials_type
|
def api_credentials_type
|
||||||
token, username = api_credentials
|
token, username = api_credentials
|
||||||
return :none if !token || token.empty?
|
return :none if !token || token.empty?
|
||||||
return :keychain if !username || username.empty?
|
return :environment if !username || username.empty?
|
||||||
:environment
|
:keychain
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_credentials_error_message(response_headers, needed_scopes)
|
def api_credentials_error_message(response_headers, needed_scopes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user