From 4b4496f6ca2bed69c7fbda02c022b61aa9185009 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:14:50 +0200 Subject: [PATCH] fixup! only use `node-fetch` when needed --- incubator/build/src/remotes/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incubator/build/src/remotes/github.ts b/incubator/build/src/remotes/github.ts index f30b288a0..88967f305 100644 --- a/incubator/build/src/remotes/github.ts +++ b/incubator/build/src/remotes/github.ts @@ -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 }, });