kin: KIN-048 Post-pipeline hook: автокоммит после успешного завершения задачи. git add -A && git commit -m 'kin: TASK_ID TITLE'. Срабатывает автоматически как rebuild-frontend.
This commit is contained in:
parent
8a6f280cbd
commit
ae21e48b65
13 changed files with 1554 additions and 65 deletions
12
cli/main.py
12
cli/main.py
|
|
@ -586,6 +586,18 @@ def run_task(ctx, task_id, dry_run, allow_write):
|
|||
pipeline_steps = output["pipeline"]
|
||||
analysis = output.get("analysis", "")
|
||||
|
||||
# Save completion_mode from PM output to task (only if not already set by user)
|
||||
task_current = models.get_task(conn, task_id)
|
||||
if not task_current.get("execution_mode"):
|
||||
pm_completion_mode = models.validate_completion_mode(
|
||||
output.get("completion_mode", "review")
|
||||
)
|
||||
models.update_task(conn, task_id, execution_mode=pm_completion_mode)
|
||||
import logging
|
||||
logging.getLogger("kin").info(
|
||||
"PM set completion_mode=%s for task %s", pm_completion_mode, task_id
|
||||
)
|
||||
|
||||
click.echo(f"\nAnalysis: {analysis}")
|
||||
click.echo(f"Pipeline ({len(pipeline_steps)} steps):")
|
||||
for i, step in enumerate(pipeline_steps, 1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue