fix(tools): render complete lists and never print a bare OK #11
No reviewers
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea!11
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/tool-trust"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One formatter patch for three coupled defects. All three live in
lib/handlers/formatters.js(#7 also toucheslib/handlers/common.js).Fixes #2
Fixes #5
Fixes #7
What changed
… and N more — narrow the filter or page through.). The caller'slimit/pageis the only page-size control.OK: removed everyOKfallback. Empty arrays return a per-tool message (No issues.,No labels.,No pull requests., …, fallbackNo results.); unrecognised objects return identifying fields plus a ≤300-char JSON snippet;{ ok: true }with no payload returnsDone.gitea_labels listnow prints one line per label with name, numeric id, colour and description (type/bug (id: 39, #e11d48) — Defect…);createechoesLabel "type/bug" created (id 39).;slimRecordkeepscoloranddescriptionon label-shaped records.Tests
test/handlers-formatters.test.mjs(dependency-free; imports the formatter directly) covers 28 rows, 5 rows, >100 with footer, per-tool empty messages, unknown objects,Done., the no-OKsource grep, label ids/colour/create, and theslimRecordpassthrough.Live check (Forgejo 17; HMR picked up the change)
gitea_issue_listonpvlb-infra/vps-setup(state=all,limit=50) → 28 rows (was 20).gitea_labels {action:"list"}on this repo →area/forgejo (id: 14, #0ea5e9) — …etc. (ids now visible).gitea_pr_liston this repo →No pull requests.(was a bareOK).Note: this PR targets
master; the repository's default branch was renamed frommainper operator direction.Gitea refuses self-approval (
approve your own pull is not allowed), so the approval checkbox stays red; every other readiness gate is green (description, no conflicts, tests updated, no CI/migrations). Proceeding under the operator's delegated go-ahead for this patch. Local + live checks are recorded above.