pascalgn / automerge-action

GitHub action to automatically merge pull requests that are ready
MIT License
862 stars 210 forks source link

update javascript runtime to node20 #242

Closed theoremoon closed 10 months ago

theoremoon commented 11 months ago

The latest release of this action causes the following error. I guess the oktokit should be updated with the JS runtime at same time.

ERROR fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing

Octokit requires Node 18 or higher, which includes a native fetch API.

pascalgn commented 10 months ago

Yes, good point! Thanks for the PR! 👍