pascalgn / automerge-action

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

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 #243

Closed TheSuperiorStanislav closed 10 months ago

TheSuperiorStanislav commented 11 months ago

New version(0.16.0) now throws this 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

Usage

- name: Merge pull request
  id: automerge
  uses: pascalgn/automerge-action@v0.16.0
  env:
    MERGE_LABELS: automated-pr  # Defines which PR labels should be automatically merged
    MERGE_REQUIRED_APPROVALS: 2
    GITHUB_TOKEN:  ${{ steps.generate-token.outputs.token }}
pascalgn commented 10 months ago

Thanks for raising this issue! It's fixed by #242 now!