kin: auto-commit after pipeline
This commit is contained in:
parent
05bcb14b99
commit
02b53e82ca
8 changed files with 555 additions and 68 deletions
|
|
@ -69,6 +69,7 @@ export interface Project {
|
|||
execution_mode: string | null
|
||||
autocommit_enabled: number | null
|
||||
auto_test_enabled: number | null
|
||||
worktrees_enabled: number | null
|
||||
obsidian_vault_path: string | null
|
||||
deploy_command: string | null
|
||||
test_command: string | null
|
||||
|
|
@ -167,13 +168,6 @@ export interface DeployStepResult {
|
|||
exit_code: number
|
||||
}
|
||||
|
||||
export interface DependentDeploy {
|
||||
project_id: string
|
||||
project_name: string
|
||||
success: boolean
|
||||
results: DeployStepResult[]
|
||||
}
|
||||
|
||||
export interface DeployResult {
|
||||
success: boolean
|
||||
exit_code: number
|
||||
|
|
@ -182,7 +176,8 @@ export interface DeployResult {
|
|||
duration_seconds: number
|
||||
steps?: string[]
|
||||
results?: DeployStepResult[]
|
||||
dependents_deployed?: DependentDeploy[]
|
||||
// WARNING (decision #546): бэкенд возвращает list[str] (project_id), не объекты
|
||||
dependents_deployed?: string[]
|
||||
overall_success?: boolean
|
||||
}
|
||||
|
||||
|
|
@ -363,7 +358,7 @@ export const api = {
|
|||
post<{ updated: string[]; count: number }>(`/projects/${projectId}/audit/apply`, { task_ids: taskIds }),
|
||||
patchTask: (id: string, data: { status?: string; execution_mode?: string; priority?: number; route_type?: string; title?: string; brief_text?: string; acceptance_criteria?: string }) =>
|
||||
patch<Task>(`/tasks/${id}`, data),
|
||||
patchProject: (id: string, data: { execution_mode?: string; autocommit_enabled?: boolean; auto_test_enabled?: boolean; obsidian_vault_path?: string; deploy_command?: string; test_command?: string; project_type?: string; ssh_host?: string; ssh_user?: string; ssh_key_path?: string; ssh_proxy_jump?: string; deploy_host?: string; deploy_path?: string; deploy_runtime?: string; deploy_restart_cmd?: string }) =>
|
||||
patchProject: (id: string, data: { execution_mode?: string; autocommit_enabled?: boolean; auto_test_enabled?: boolean; worktrees_enabled?: boolean; obsidian_vault_path?: string; deploy_command?: string; test_command?: string; project_type?: string; ssh_host?: string; ssh_user?: string; ssh_key_path?: string; ssh_proxy_jump?: string; deploy_host?: string; deploy_path?: string; deploy_runtime?: string; deploy_restart_cmd?: string }) =>
|
||||
patch<Project>(`/projects/${id}`, data),
|
||||
deployProject: (projectId: string) =>
|
||||
post<DeployResult>(`/projects/${projectId}/deploy`, {}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue