feat: 提交生产发布确认信息

This commit is contained in:
湛兮
2026-06-12 01:56:56 +08:00
parent 02e6a963d6
commit f67c0c7110
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -327,6 +327,11 @@ export interface CreateDeployRunPayload {
operator?: string
remark?: string
idempotencyKey?: string
productionConfirmation?: {
confirmed: boolean
confirmedAt?: string
summary?: string
}
}
export interface AgentInvocation {
+8
View File
@@ -135,6 +135,14 @@ async function triggerRelease() {
operator: 'ops-admin',
remark: form.note,
idempotencyKey: `${form.projectKey}:${form.environment}:${form.ref}:${Date.now()}`,
productionConfirmation:
form.environment === 'production'
? {
confirmed: form.confirmed,
confirmedAt: new Date().toISOString(),
summary: '已确认 ref、回滚方案、通知对象和业务窗口',
}
: undefined,
})
activeRun.value = run
localStatus.value = run.status