Skip to content

Commit

Permalink
fetch errors... again
Browse files Browse the repository at this point in the history
  • Loading branch information
underrobyn committed Jan 2, 2024
1 parent 6a7829e commit e8d831f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/task/common/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ async function getGitHubInstance() {
const OctokitPaginate = Octokit.plugin(paginateRest);
const auth = createTokenAuth(getGitHubToken());
const authentication = await auth();
const fetchImplementation = typeof(fetch) === "undefined" ? nodeFetch : fetch;

return new OctokitPaginate({
auth: authentication.token,
request: {
fetch: fetch || nodeFetch,
fetch: fetchImplementation,
}
});
}
Expand Down

0 comments on commit e8d831f

Please sign in to comment.