Due to some changes in node 18 - the introduction of a default global fetch API, one of the calls we make to octokit.paginate results in generating invalid request headers when runnign with node >= 18.
e.g.
As we use octokit.paginate successfully with a raw request URL elsewhere, the simplest solution is to replace the octokit API call within the paginate with the raw GitHub API URL.
Version: 2.1.2
Due to some changes in node 18 - the introduction of a default global fetch API, one of the calls we make to
octokit.paginate
results in generating invalid request headers when runnign with node >= 18. e.g.As we use
octokit.paginate
successfully with a raw request URL elsewhere, the simplest solution is to replace the octokit API call within the paginate with the raw GitHub API URL.From:
To: