Skip to content

feat: pagination for repo list (--per-page, --page, --all)#98

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/repo-list-pagination-503e
Jul 21, 2026
Merged

feat: pagination for repo list (--per-page, --page, --all)#98
cursor[bot] merged 2 commits into
mainfrom
cursor/repo-list-pagination-503e

Conversation

@lbrealdev

@lbrealdev lbrealdev commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #93.

Adds real pagination for repo list:

  • --per-page — results per page (default 20; was the old meaning of --page)
  • -p / --page — page number (default 1)
  • --all — follow GitHub Link headers until exhausted (starts at page 1; --page ignored)

Table and JSON still share the same summary fields; with --all they render the concatenated full set.

Breaking change

--page no longer means page size. Use --per-page instead.

Test plan

  • uv run pytest -v (50 passed)
  • github-rest-cli repo list --page 2 --per-page 10
  • github-rest-cli repo list --all --format json
Open in Web Open in Cursor 

cursoragent and others added 2 commits July 21, 2026 07:31
Rename page size to --per-page, make --page the page number, and add
--all to follow GitHub Link headers across pages.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
Co-authored-by: akae <lbrealdev@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 21, 2026 07:50
@cursor
cursor Bot merged commit 4c07203 into main Jul 21, 2026
4 checks passed
@cursor
cursor Bot deleted the cursor/repo-list-pagination-503e branch July 21, 2026 07:50
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.

Add pagination support for repo list

2 participants