mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-09 01:00:45 +00:00
avoid github deprecation mails when using the token
This commit is contained in:
parent
8ca2b1dfb7
commit
69614981cb
@ -46,7 +46,7 @@ abstract class Helper
|
||||
// If an API token is set in the params, use it for authentication
|
||||
if ($params->get('gh_token', ''))
|
||||
{
|
||||
$options->set('gh.token', $params->get('gh_token', ''));
|
||||
$options->set('headers', ['Authorization' => 'token ' . $params->get('gh_token', '')]);
|
||||
}
|
||||
// Set the username and password if set in the params
|
||||
elseif ($params->get('gh_user', '') && $params->get('gh_password'))
|
||||
|
Loading…
Reference in New Issue
Block a user