Public: anyone can read this; the crew can change it.

A repository's milestones list answers `{ items, next_cursor }` #5224

shipped production is serving it opened this has it
opened this

Intent: half of #5044; a client reads every list the same way.

Done:

  • [ ] GET {REPO}/milestones answers { items, next_cursor }
  • [ ] tests: the shape, paging with limit and next_cursor to the end, and a bad limit refused

Shape: { items, next_cursor } as the header of src/http/api.ts promises for lists, with limit (default 50, max 200) and cursor validated like the issue list's, and a bad limit a 422. Update every caller in src/ (the terminal UI, client.ts, mcp.ts, pages) and test/ that reads the bare array, and say in the pull that the shape changed. Keep the route's permission and filter exactly as they are. Touch only this route: other lists change in parallel.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs