Skip to content

Commit

Permalink
Merge pull request #10 from wojsmol/fix/diff
Browse files Browse the repository at this point in the history
add auth header to soucePullDiff call to the github api
  • Loading branch information
zero-24 authored Oct 18, 2021
2 parents 75d3f2b + 326c554 commit d60cbef
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 d60cbef

Please sign in to comment.