fix totalCount guidance
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
65974f568f
commit
01e345082c
1 changed files with 3 additions and 2 deletions
|
|
@ -32,8 +32,9 @@ List commands cap results.
|
||||||
|
|
||||||
- `gh issue list`, `gh pr list`, `gh search ...`: pass `-L N` (`--limit N`).
|
- `gh issue list`, `gh pr list`, `gh search ...`: pass `-L N` (`--limit N`).
|
||||||
The default is usually 30.
|
The default is usually 30.
|
||||||
- Use `--json totalCount` to get the total number of items. This helps you know
|
- `gh issue list` / `gh pr list` do not expose aggregate totals like
|
||||||
if you need to paginate.
|
`totalCount` via `--json`. If you need a true total, use `gh api graphql`
|
||||||
|
to query `totalCount`; otherwise, treat `-L` as the cap for the current call.
|
||||||
- For raw API calls use `gh api --paginate <path>`. Combine with
|
- For raw API calls use `gh api --paginate <path>`. Combine with
|
||||||
`--jq` and (optionally) `--slurp` to assemble one array.
|
`--jq` and (optionally) `--slurp` to assemble one array.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue