repo-search: read X-Total-Count so the warning fires at the server's own clamp
This commit is contained in:
parent
54b8122f66
commit
acb5b676d7
2 changed files with 118 additions and 35 deletions
|
|
@ -341,11 +341,12 @@ to discover valid label names before triaging or to audit the label set.
|
|||
reports the real total from the response's `X-Total-Count`
|
||||
(`… 50 of 187 shown … 137 more`), so trust the trailer, not the row
|
||||
count, when deciding whether you've seen everything.
|
||||
- `repo-search` has no `X-Total-Count` to fall back on, so it can only
|
||||
warn, not quantify: a result count that exactly equals `--limit`
|
||||
prints a stderr warning that more may exist, same trust-the-trailer
|
||||
principle as `list` above but without a real number behind it. It
|
||||
also can't tell "doesn't exist" from "you lack permission to see
|
||||
- `repo-search` reads `X-Total-Count` the same way `list` does and warns
|
||||
with the real remaining count when it's present (`… 50 of 187 shown …
|
||||
137 more exist`); without it (an older forge, a stripping proxy) it
|
||||
falls back to the cruder `count == limit` heuristic, same
|
||||
trust-the-trailer-not-the-row-count principle as `list` above. Either
|
||||
way it can't tell "doesn't exist" from "you lack permission to see
|
||||
it" — both render as an absent row with no signal either way — and
|
||||
it matches repo **name** only, not owner, so there's no way to
|
||||
enumerate an org's repos through this verb.
|
||||
|
|
|
|||
Loading…
Reference in a new issue