diff --git a/.github/workflows/update-prs.yml b/.github/workflows/update-prs.yml index 7df927f5..7a5fbdca 100644 --- a/.github/workflows/update-prs.yml +++ b/.github/workflows/update-prs.yml @@ -13,9 +13,12 @@ jobs: // Get a list of all issues created by the PR opener // See: https://octokit.github.io/rest.js/#pagination const creator = context.payload.sender.login - const prs = github.rest.pulls.get({ + const prs = gawait github.rest.request('GET /repos/{owner}/{repo}/pulls', { owner: context.repo.owner, repo: context.repo.repo - }); + headers: { + 'X-GitHub-Api-Version': '2022-11-28' + } + }) console.log(prs) \ No newline at end of file