[api] Add task diff API endpoint #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/74130f47-add-task-diff-api-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implemented by Claude Code agent
Task: Add GET /api/projects/{id}/tasks/{task_id}/diff that returns the git diff for a task's worktree branch against its base branch. Should work for tasks in running, reviewing, review_passed, and needs_review states. Return structured diff with file list, additions/deletions counts, and raw unified diff text.
Success Criteria:
GET /api/projects/{pid}/tasks/{tid}/diff returns JSON with files array (path, status, additions, deletions, patch) and summary (total_files, total_additions, total_deletions). Returns 404 if branch doesn't exist, 400 if task is in backlog/ready state.
⚠️ Review score: 59/100 — BELOW threshold (85) — needs manual review
Pull request closed