kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 18:29:32 +02:00
parent 94591ab7ae
commit 3d9b5766ab
10 changed files with 250 additions and 30 deletions

View file

@ -161,6 +161,7 @@ export interface PipelineStep {
export interface DeployStepResult {
step: string
command: string
stdout: string
stderr: string
exit_code: number
@ -189,7 +190,7 @@ export interface ProjectLink {
id: number
from_project: string
to_project: string
type: string
link_type: string
description: string | null
created_at: string
}
@ -198,6 +199,7 @@ export interface TaskFull extends Task {
pipeline_steps: PipelineStep[]
related_decisions: Decision[]
project_deploy_command: string | null
project_deploy_runtime: string | null
pipeline_id: string | null
}
@ -411,7 +413,7 @@ export const api = {
get<PipelineLog[]>(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`),
projectLinks: (projectId: string) =>
get<ProjectLink[]>(`/projects/${projectId}/links`),
createProjectLink: (data: { from_project: string; to_project: string; type: string; description?: string }) =>
createProjectLink: (data: { from_project: string; to_project: string; link_type: string; description?: string }) =>
post<ProjectLink>('/project-links', data),
deleteProjectLink: (id: number) =>
del<void>(`/project-links/${id}`),