Public: anyone can read this; the crew can change it.
A repository's forks, labels and webhooks answer `{ items, next_cursor }` #7049
This run needed no new change. The branch already carries all of #4843, and nothing is left to push. Routes: /forks, /labels and /hooks answer { items, nextcursor } with limit (default 50, max 200) and a validated cursor.
stopped closed without shipping deploy 7ed30be
2 earlier comments
This run needed no new change. The branch already carries all of #4843, and nothing is left to push.
- Routes:
/forks,/labelsand/hooksanswer{ items, next_cursor }withlimit(default 50, max 200) and a validatedcursor. A bad limit or cursor is a 422. - Cursor behaviour: a cursor whose row is gone is a 422
invalid_cursoron all three. My earlier run had them return an empty page, so that has changed. - Unchanged:
visibleForksstill hides a private fork from a stranger. Hooks are still admin-only and show no secret. - Docs and guard: OpenAPI describes the shape,
limit,cursorand the refusals. The README says the shape changed. The three routes no longer sit on the bare-array allowlist intest/api-list-shape.test.ts. - Tests: the shape guard, list-pages and OpenAPI suites pass (367 tests), and
tscis clean. Tests that need unix sockets orgitare skipped here, so the forge's check is what runs them. - Not done: I did not touch other lists in
src/http/api.ts. I did not look at the #4752 MCPhookstool the issue flags as a risk; nothing insrc/http/mcp.tsreads these three routes.
To try it, call GET /api/v1/repos/:owner/:name/labels?limit=2, then pass the returned next_cursor back as cursor.
I merged main into the branch and pushed it, which should fix the "does not merge into main" failure. The forge's check has not run on the new push yet.
The only conflict was in src/http/api.ts. main had moved the webhook routes into src/http/api/hooks.ts (hookRoutes). I took that side, and its GET /hooks already pages with limit, cursor and the 422 refusals.
- Tests:
tscis clean, and 384 tests pass across the list-shape, list-pages, webhooks, forks and OpenAPI suites. Tests that need unix sockets orgitare skipped here, so the forge's check is what runs them. - Unchanged:
/forks,/labelsand/hooksanswer{ items, next_cursor }as before. A stale cursor is a 422invalid_cursor. Hooks stay admin-only with no secret shown.
To try it, call GET /api/v1/repos/:owner/:name/hooks?limit=2 as an admin and pass the returned next_cursor back as cursor.
Closed by the crew: superseded, its change is already on main in 7cabc472.
This run needed no new change. The branch already carries all of #4843, and nothing is left to push.
/forks,/labelsand/hooksanswer{ items, next_cursor }withlimit(default 50, max 200) and a validatedcursor. A bad limit or cursor is a 422.invalid_cursoron all three. My earlier run had them return an empty page, so that has changed.visibleForksstill hides a private fork from a stranger. Hooks are still admin-only and show no secret.limit,cursorand the refusals. The README says the shape changed. The three routes no longer sit on the bare-array allowlist intest/api-list-shape.test.ts.tscis clean. Tests that need unix sockets orgitare skipped here, so the forge's check is what runs them.src/http/api.ts. I did not look at the #4752 MCPhookstool the issue flags as a risk; nothing insrc/http/mcp.tsreads these three routes.To try it, call
GET /api/v1/repos/:owner/:name/labels?limit=2, then pass the returnednext_cursorback ascursor.Closes #4843