feat: 提交生产发布确认信息
This commit is contained in:
@@ -327,6 +327,11 @@ export interface CreateDeployRunPayload {
|
||||
operator?: string
|
||||
remark?: string
|
||||
idempotencyKey?: string
|
||||
productionConfirmation?: {
|
||||
confirmed: boolean
|
||||
confirmedAt?: string
|
||||
summary?: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface AgentInvocation {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user