mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2025-01-31 20:11:38 +01:00
Update repo URL in self-updater
This commit is contained in:
parent
4b2dd40d99
commit
bde2da820c
@ -41,6 +41,7 @@ return [
|
||||
'repository_vendor' => 'freescout-helpdesk', //env('SELF_UPDATER_REPO_VENDOR', ''),
|
||||
'repository_name' => 'freescout', //env('SELF_UPDATER_REPO_NAME', ''),
|
||||
'repository_url' => '',
|
||||
'github_api_url' => 'https://freescout.net/github-api',
|
||||
'download_path' => storage_path().DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'updater', //env('SELF_UPDATER_DOWNLOAD_PATH', sys_get_temp_dir()),
|
||||
],
|
||||
],
|
||||
|
@ -300,9 +300,15 @@ class GithubRepositoryType extends AbstractRepositoryType implements SourceRepos
|
||||
throw new \Exception('No repository specified. Please enter a valid Github repository owner and name in your config.');
|
||||
}
|
||||
|
||||
$github_api_url = $this->config['github_api_url'];
|
||||
|
||||
if (empty($github_api_url)) {
|
||||
$github_api_url = self::GITHUB_API_URL;
|
||||
}
|
||||
|
||||
return $this->client->request(
|
||||
'GET',
|
||||
self::GITHUB_API_URL.'/repos/'.$this->config['repository_vendor'].'/'.$this->config['repository_name'].'/tags', [
|
||||
$github_api_url.'/repos/'.$this->config['repository_vendor'].'/'.$this->config['repository_name'].'/tags', [
|
||||
'timeout' => config('app.curl_timeout'),
|
||||
'connect_timeout' => config('app.curl_connect_timeout'),
|
||||
'proxy' => config('app.proxy'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user