feat: 提交生产发布确认信息
This commit is contained in:
@@ -327,6 +327,11 @@ export interface CreateDeployRunPayload {
|
|||||||
operator?: string
|
operator?: string
|
||||||
remark?: string
|
remark?: string
|
||||||
idempotencyKey?: string
|
idempotencyKey?: string
|
||||||
|
productionConfirmation?: {
|
||||||
|
confirmed: boolean
|
||||||
|
confirmedAt?: string
|
||||||
|
summary?: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AgentInvocation {
|
export interface AgentInvocation {
|
||||||
|
|||||||
@@ -135,6 +135,14 @@ async function triggerRelease() {
|
|||||||
operator: 'ops-admin',
|
operator: 'ops-admin',
|
||||||
remark: form.note,
|
remark: form.note,
|
||||||
idempotencyKey: `${form.projectKey}:${form.environment}:${form.ref}:${Date.now()}`,
|
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
|
activeRun.value = run
|
||||||
localStatus.value = run.status
|
localStatus.value = run.status
|
||||||
|
|||||||
Reference in New Issue
Block a user