Skip to content

Commit 4225478

Browse files
Copilotharupy
andauthored
Fix pagination bug in dev/check_patch_prs.py (#20229)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
1 parent e23e9d5 commit 4225478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/check_patch_prs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def fetch_patch_prs(version: str) -> dict[int, bool]:
148148
data = response.json()
149149
# Exclude closed PRs that are not merged
150150
pulls.extend(pr for pr in data["items"] if not is_closed(pr))
151-
if len(data) < per_page:
151+
if len(data["items"]) < per_page:
152152
break
153153
page += 1
154154

0 commit comments

Comments
 (0)