Skip to content

Fix pagination loop termination#7

Open
cy13002997189cy-ship-it wants to merge 2 commits into
alisteuber4ee1:mainfrom
cy13002997189cy-ship-it:main
Open

Fix pagination loop termination#7
cy13002997189cy-ship-it wants to merge 2 commits into
alisteuber4ee1:mainfrom
cy13002997189cy-ship-it:main

Conversation

@cy13002997189cy-ship-it

Copy link
Copy Markdown

Summary

  • add pagination loop protection when GitHub returns a non-advancing or repeated NextPage
  • return a clear error instead of looping forever
  • add a regression test for a repeated page=1 next link

Notes

I also adjusted the test server declarations so handlers can safely reference server.URL.

Testing

Not run locally: the current environment does not have a Go toolchain installed.

Add pagination checks to prevent loops and ensure advancement.
Refactor server initialization in tests and add pagination loop detection test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant