kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-18 21:02:34 +02:00
parent a7e6e8ad35
commit d552b8bd45
3 changed files with 473 additions and 1 deletions

View file

@ -712,6 +712,7 @@ class TaskCreate(BaseModel):
category: str | None = None
acceptance_criteria: str | None = None
labels: list[str] | None = None
parent_task_id: str | None = None
@app.post("/api/tasks")
@ -732,7 +733,8 @@ def create_task(body: TaskCreate):
t = models.create_task(conn, task_id, body.project_id, body.title,
priority=body.priority, brief=brief, category=category,
acceptance_criteria=body.acceptance_criteria,
labels=body.labels)
labels=body.labels,
parent_task_id=body.parent_task_id)
conn.close()
# Auto-trigger: if task has 'auto' label, launch pipeline in background