diff --git a/src/GithubApiHelper.php b/src/GithubApiHelper.php index 34aa80e..c119a08 100644 --- a/src/GithubApiHelper.php +++ b/src/GithubApiHelper.php @@ -236,7 +236,7 @@ private function getSourcePullDiff($pullrequestId) . (int) $pullrequestId ); - return HttpFactory::getHttp()->get($uri->toString(), ['Accept' => 'application/vnd.github.v3.diff', 'User-Agent' => $this->getOption('userAgent')])->body; + return HttpFactory::getHttp()->get($uri->toString(), ['Accept' => 'application/vnd.github.v3.diff', 'User-Agent' => $this->getOption('userAgent'), 'Authorization' => 'token ' . GITHUB_AUTHTOKEN])->body; } /**