Skip to content

Commit

Permalink
add authorization when getting the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
wojsmol committed Oct 17, 2021
1 parent 75d3f2b commit 326c554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GithubApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 326c554

Please sign in to comment.