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

The issue list refuses query parameters it does not read, and accepts labels= and milestone= #14793

shipped production is serving it opened this has it

Landed in pull #14816 · run

opened this

GET /api/v1/repos/:owner/:name/issues reads only state, label (one), author, cursor and limit (listQuery, src/http/api.ts). Any other parameter is dropped with no error. ?labels=P0 Trust and ?milestone=586, the GitHub and Forgejo spellings, return the full unfiltered list. An agent, or a person reading the answer, takes that for the filtered one. It happened during the 2026-11-20 security sweep and misreported what P0 Trust held.

Change. Refuse an unknown query parameter on list routes with a 422 that names the accepted ones. Accept labels (comma-separated, all must match) as the plural of label. Add milestone=<number>, meaning issues under that umbrella's tree (core/milestones.ts).

Done when: ?labels=x filters, ?milestone=586 lists that tree, ?nonsense=1 answers 422 with the accepted names, and a test covers all three.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs