Public: anyone can read this; the crew can change it.
Issues: a route to assign an issue to a person or an agent #18285
Its check is red, 21h 4m ago
check failed: 1 of 2244 tests — "listing issues and pulls is described with the query the handlers read"
Issues can now be filed already assigned and listed by assignee. Most of what the issue asks for was already on main, and I left the "Done when" step undone (details below). Already on main, so I didn't rebuild it: PUT /api/v1/repos/:owner/:name/issues/:number/assignee assigns or unassigns, with null to clear.
-
Reviews
No review yet.
-
Checks
stopped failed before it answered — 2243 passed, 1 failed: listing issues and pulls is described with the query the handlers read deploy 5693c75
Check failed: listing issues and pulls is described with the query the handlers readCheck of 5693c75checked against main at a9db6c9fast tier: red in 1m48s
Website spec: 27 findings (report only)
- /admin/telemetry http://127.0.0.1:45851/admin/telemetry answered 404 — https://specification.website/
- /board http://127.0.0.1:45851/board answered 303 — https://specification.website/
- /cockpit http://127.0.0.1:45851/cockpit answered 303 — https://specification.website/
- /notes http://127.0.0.1:45851/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:45851/review answered 303 — https://specification.website/
- /system http://127.0.0.1:45851/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:45851/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:45851/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:45851/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:45851/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:45851/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:45851/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:45851/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:45851/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:45851/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:45851/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:45851/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample http://127.0.0.1:45851/preview-admin/sample answered 404 — https://specification.website/
- /preview-admin/sample/drop http://127.0.0.1:45851/preview-admin/sample/drop answered 404 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:45851/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:45851/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/pulls/3 http://127.0.0.1:45851/preview-admin/sample/pulls/3 answered 404 — https://specification.website/
- /preview-admin/sample/next?pick http://127.0.0.1:45851/preview-admin/sample/next?pick answered 404 — https://specification.website/
- /preview-admin/sample/bets http://127.0.0.1:45851/preview-admin/sample/bets answered 404 — https://specification.website/
- /advisories http://127.0.0.1:45851/advisories answered 303 — https://specification.website/
- /looks/missing http://127.0.0.1:45851/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:45851/looks/failed answered 500 — https://specification.website/
Issues can now be filed already assigned and listed by assignee. Most of what the issue asks for was already on main, and I left the "Done when" step undone (details below).
Already on main, so I didn't rebuild it:
PUT /api/v1/repos/:owner/:name/issues/:number/assigneeassigns or unassigns, withnullto clear. It runs theassignIssuepermission check and is inopenapi.json.POST …/issuesis inopenapi.jsontoo, with atitleandbody.- The issue page, the MCP
assignandassignedtools, and the terminal assign picker already existed. GET /api/v1/user/assignedis already a cross-repository "assigned to me" list. I pointed the how-to at it.
What I added:
POST …/issuestakesassignee(a username, ornullor left out for nobody), and it is in the contract.- A non-string or unknown name is refused with 422 (
invalid_assigneeorno_such_user) before anything is filed. - The assignment runs through
assignIssue, so it has the same permission check as the PUT route. - If that check refuses, the issue is still filed and the 201 carries
assignRefusedwith the code. Say if you'd rather it be an error.
- A non-string or unknown name is refused with 422 (
GET …/issues?assignee=<username>filters the list, andassignee=meis the caller's own, answering 401 when signed out. It is in the contract and in the accepted-parameters list. I updatedtest/api-list-query.test.tsfor that list, because its expectation was out of date.- The MCP
issuestool takesassignee, withmetoo. - In the terminal's issue list,
otoggles "assigned to me", shown as anassignee:mechip. docs/features/api-list-filters.mddocuments all of it.test/api-issue-assignee.test.tscovers assignment at creation, the refusals (nothing filed),me, a named filter, and the signed-out 401.
tsc, design-lint, the gate, test/mcp-size.test.ts and the targeted API, OpenAPI and MCP tests pass. I did not run the full suite or test/doorless.test.ts, so the forge's full check is the first run of those. It is pushed.
Not done:
- Assigning forge-apple #75 to #82 to trevato, and adding the query to
ForgeClient.yourList()in ForgeKit. Those are in another repository that my token can't reach. Once this lands, a person or the Apple session can usePUT …/assigneeor?assignee=me. - A mirrored origin's issue list shows none for
assignee, since its summaries carry no assignee. - Pulls don't take the new
assigneelist filter. They still have the existing assignee PUT.
Try it: GET /api/v1/repos/trevato/forge/issues?assignee=me with a token, or press o on the terminal's issue list.
Reused: assignIssue and listIssues' existing assignee option. No new dependency.
Issues can now be filed already assigned and listed by assignee. Most of what the issue asks for was already on main, and I left the "Done when" step undone (details below).
Already on main, so I didn't rebuild it:
PUT /api/v1/repos/:owner/:name/issues/:number/assigneeassigns or unassigns, withnullto clear. It runs theassignIssuepermission check and is inopenapi.json.POST …/issuesis inopenapi.jsontoo, with atitleandbody.assignandassignedtools, and the terminal assign picker already existed.GET /api/v1/user/assignedis already a cross-repository "assigned to me" list. I pointed the how-to at it.What I added:
POST …/issuestakesassignee(a username, ornullor left out for nobody), and it is in the contract.invalid_assigneeorno_such_user) before anything is filed.assignIssue, so it has the same permission check as the PUT route.assignRefusedwith the code. Say if you'd rather it be an error.GET …/issues?assignee=<username>filters the list, andassignee=meis the caller's own, answering 401 when signed out. It is in the contract and in the accepted-parameters list. I updatedtest/api-list-query.test.tsfor that list, because its expectation was out of date.issuestool takesassignee, withmetoo.otoggles "assigned to me", shown as anassignee:mechip.docs/features/api-list-filters.mddocuments all of it.test/api-issue-assignee.test.tscovers assignment at creation, the refusals (nothing filed),me, a named filter, and the signed-out 401.tsc,design-lint, the gate,test/mcp-size.test.tsand the targeted API, OpenAPI and MCP tests pass. I did not run the full suite ortest/doorless.test.ts, so the forge's full check is the first run of those. It is pushed.Not done:
ForgeClient.yourList()in ForgeKit. Those are in another repository that my token can't reach. Once this lands, a person or the Apple session can usePUT …/assigneeor?assignee=me.assignee, since its summaries carry no assignee.assigneelist filter. They still have the existing assignee PUT.Try it:
GET /api/v1/repos/trevato/forge/issues?assignee=mewith a token, or pressoon the terminal's issue list.Reused:
assignIssueandlistIssues' existingassigneeoption. No new dependency.Closes #18256