Read bug context from BugPack, locate the relevant code, apply a fix, and mark the bug as fixed.
GET http://localhost:3456/api/bugs/:id to fetch full bug details including description, screenshots, environment, and related files.
relatedFiles array from the bug context to find the relevant source files. If relatedFiles is empty, use the pagePath and description to search the codebase.
PATCH http://localhost:3456/api/bugs/:id with:
```json
{ "status": "fixed" }
```
PATCH http://localhost:3456/api/bugs/:id with a description update to document what was changed.
# Step 1: Get bug context
GET http://localhost:3456/api/bugs/abc-123
# Step 5: Mark as fixed
PATCH http://localhost:3456/api/bugs/abc-123
Content-Type: application/json
{ "status": "fixed" }
Response:
{
"ok": true,
"data": {
"id": "abc-123",
"status": "fixed"
}
}
共 1 个版本