Handle paginated pull request lookups #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-paginated-pr-lookup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a repository has more than one page of open pull requests, the action only inspected the first page before deciding whether to create a new PR. That could create a duplicate PR for the same head branch if the existing one appeared later in Forgejo pagination.
This switches existing PR lookup to the existing API paginator, and applies the same pagination handling to label lookup. The regression test covers an existing PR returned on the second page.
Tested with
make all.