pascalgn / automerge-action

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

update javascript runtime to node20 #242

Closed theoremoon closed 8 months ago

theoremoon commented 8 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 8 months ago

Yes, good point! Thanks for the PR! 👍