Use correct endpoint in v7

This commit is contained in:
dcvz 2024-08-01 17:03:35 +02:00
parent dd4634ef6f
commit aeda338984

View file

@ -19,7 +19,7 @@ jobs:
const { owner, repo } = context.repo;
const findPRNumber = async () => {
const pulls = await github.rest.pulls.list({ owner, repo });
const pulls = await github.rest.pulls.list.endpoint.merge({ owner, repo });
for await (const { data } of github.paginate.iterator(pulls)) {
for (const pull of data) {
if (pull.head.sha === '${{ github.event.workflow_run.head_sha }}' && pull.user.id === '${{ github.event.sender.id }}') {