fabro/lib
Bryan Helmkamp 0bf2dd30ef
refactor(server): collapse 409 conflict into standard ApiError
Replace hand-built 409 response that inlined {errors,pull_request} with
a regular ApiError::with_code(CONFLICT, ..., "pull_request_exists") and
drop the optional pull_request field that had been added to the
ErrorResponse OpenAPI schema solely to carry the existing record.

Clients receiving a 409 can GET /runs/{id}/pull_request to retrieve the
stored record when they need it — the detail string still includes the
existing html_url, which is the field most clients branch on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 22:45:29 -04:00
..
crates refactor(server): collapse 409 conflict into standard ApiError 2026-04-23 22:45:29 -04:00
packages/fabro-api-client refactor(server): collapse 409 conflict into standard ApiError 2026-04-23 22:45:29 -04:00