kin: auto-commit after pipeline
This commit is contained in:
parent
3d9b5766ab
commit
e63703ad33
1 changed files with 12 additions and 1 deletions
13
web/api.py
13
web/api.py
|
|
@ -811,8 +811,19 @@ def get_task_full(task_id: str):
|
||||||
task_decisions = [d for d in decisions if d.get("task_id") == task_id]
|
task_decisions = [d for d in decisions if d.get("task_id") == task_id]
|
||||||
p = models.get_project(conn, t["project_id"])
|
p = models.get_project(conn, t["project_id"])
|
||||||
project_deploy_command = p.get("deploy_command") if p else None
|
project_deploy_command = p.get("deploy_command") if p else None
|
||||||
|
project_deploy_host = p.get("deploy_host") if p else None
|
||||||
|
project_deploy_path = p.get("deploy_path") if p else None
|
||||||
|
project_deploy_runtime = p.get("deploy_runtime") if p else None
|
||||||
conn.close()
|
conn.close()
|
||||||
return {**t, "pipeline_steps": steps, "related_decisions": task_decisions, "project_deploy_command": project_deploy_command}
|
return {
|
||||||
|
**t,
|
||||||
|
"pipeline_steps": steps,
|
||||||
|
"related_decisions": task_decisions,
|
||||||
|
"project_deploy_command": project_deploy_command,
|
||||||
|
"project_deploy_host": project_deploy_host,
|
||||||
|
"project_deploy_path": project_deploy_path,
|
||||||
|
"project_deploy_runtime": project_deploy_runtime,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class TaskApprove(BaseModel):
|
class TaskApprove(BaseModel):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue