Error importing a github repository
dcyar opened this issue · comments
An error occurred when importing a repository in this route.
at HandleExceptions->handleError(8, 'Trying to get property of non-object', 'C:\\laragon\\www\\laravel-gitscrum\\app\\Classes\\Github.php', 210, array('branch' => 'Not Found', 'productBacklogId' => 2)) in Github.php (line 210)
I fixed this by changing Github.php (line 205) link
Helper::request('https://api.github.com/repos/'.$owner.DIRECTORY_SEPARATOR.$repo.'/branches?page='.$page)
to
Helper::request('https://api.github.com/repos/'.$owner.'/'.$repo.'/branches?page='.$page)
I use
- PHP 7+
- Windows 10
- Laragon