kin: auto-commit after pipeline
This commit is contained in:
parent
a7e6e8ad35
commit
d552b8bd45
3 changed files with 473 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue