1.5 KiB
1.5 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 02-backend-ci-options-api | Backend CI options API | done | 2 |
|
plan.md | ../../specs/ui/ci-pr-automation.md |
Task 02: Backend CI Options API
Acceptance
GET /api/v1/github/tasks/:taskId/ci-optionsreturns persisted/default options, effective prompt, default/override flag, and linked PR automation states.PATCH /api/v1/github/tasks/:taskId/ci-optionssupports partial boolean updates and prompt override save/reset.- API tests cover default response, partial update, override reset, and invalid payload behavior.
Verification
cd apps/backend && rtk go test ./internal/github
Files Likely Touched
apps/backend/internal/github/controller.goapps/backend/internal/github/models.goapps/backend/internal/github/service.goapps/backend/internal/github/controller_test.goapps/backend/pkg/websocket/actions.goif websocket update action is addedapps/backend/internal/gateway/websocket/task_notifications.goif websocket notifications are added
Dependencies
01-backend-persistence-prompts
Inputs
- Spec sections: API surface, Permissions, Failure modes.
- Plan sections: Backend > GitHub API.
- Existing patterns:
/api/v1/github/task-prs/:taskId, action-presets endpoints, and controller tests.
Output Contract
When complete, update this file's status to done, update the Wave 2 checkbox in plan.md, and report changed files, tests run, blockers, and residual risks.