From 41c7af7cf027f8a837f639a6622fdc8268791d01 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Wed, 15 Jul 2026 11:58:08 +0100 Subject: [PATCH] Use `paginate` --- pr-checks/update-release-branch.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pr-checks/update-release-branch.ts b/pr-checks/update-release-branch.ts index 56f3aef31..088da5928 100755 --- a/pr-checks/update-release-branch.ts +++ b/pr-checks/update-release-branch.ts @@ -243,12 +243,14 @@ export async function getPrForCommit( repo: string, commit: GitHubCommit, ): Promise { - const { data: prs } = - await client.rest.repos.listPullRequestsAssociatedWithCommit({ + const prs = await client.paginate( + client.rest.repos.listPullRequestsAssociatedWithCommit, + { owner, repo, commit_sha: commit.sha, - }); + }, + ); if (prs.length === 0) { return undefined;