docs(repos): add usage examples to list repos and add pagination#1006
Merged
Conversation
Other `kosli list *` reference pages render an "Examples Use Cases" section from the command's Example field; list repos had none. Add examples covering the default listing, `--name` and `--provider` filters, and pagination, matching the style of `list flows` / `list environments`.
Contributor
|
Claude finished @mbevc1's task in 1m 58s —— View job Review — PR #1006 · docs(repos): add usage examples & pagination
Phase 1 — Static analysis ✅
Phase 2 — Code reviewThis is a clean, well-scoped PR and the iterative review rounds already resolved the substantive points. Confirming the current state:
Minor / non-blocking observations:
Testing — good coverage: the pagination case, Phase 3 — Good work 👍
Verdict: LGTM. All prior review concerns are addressed; no blocking issues. |
The list repos endpoint always paginates (page 1, 15 per page by default, max 50) with no unpaginated "return all" mode, so correct the long description and example accordingly. Surface the page context in table output with a "Showing page X of Y, total Z repos" footer from the response envelope, mirroring list controls/environments/flows, and make the no-repos message page-aware. Covered by a server-free unit test plus an integration assertion.
17bbc08 to
78959c9
Compare
`--page-limit 15` equalled the default, making the flag look like a no-op; use 25 (matching the sibling commands' examples) so the flag's effect is clear, and update the comment to match.
1772e75 to
e126a06
Compare
`--page-limit 15` equalled the default, so the value demonstrated nothing distinct from an unparameterised call; use 25 to match the example.
27162c7 to
a0a50c0
Compare
The empty-list message read the requested page argument while the footer read response.Page. They agree in practice, but sourcing both from the response envelope removes the divergence and keeps the page number consistent with the total_pages/total_count shown beside it.
ebe22df to
615c8e5
Compare
AlexKantor87
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Other
kosli list *reference pages render an "Examples Use Cases" section from the command's Example field; list repos had none. Add examples covering the default listing,--nameand--providerfilters, and pagination, matching the style oflist flows/list environments.Also adds pagination and table headers to match backend defaults and behaviour.