Skip to content

Commit

Permalink
fixup! only use node-fetch when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Sep 18, 2023
1 parent 2c5a7d2 commit 4b4496f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/build/src/remotes/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const octokit = once(() => {
const RestClient = Octokit.plugin(restEndpointMethods);
return new RestClient({
auth: getPersonalAccessToken(),
// Use `node-fetch` only if Node doesn't have it:
// Use `node-fetch` only if Node doesn't implement Fetch API:
// https://github.com/octokit/request.js/blob/v8.1.1/src/fetch-wrapper.ts#L28-L31
request: "fetch" in globalThis ? undefined : { fetch },
});
Expand Down

0 comments on commit 4b4496f

Please sign in to comment.