fix(dashboard): carry pr_number on live approval_added
Completes the merge_config_pr approval-card link for live-added approvals. The ApprovalAdded SSE event now carries pr_number (only for merge_config_pr); applyApprovalAdded was dropping it, so a live-added merge_config_pr card showed the sha but not the 'review PR on forge' link until a cold /api/state reload. Carry pr_number through the same way as sha_short.
This commit is contained in:
parent
12ed5da11a
commit
211dab6f90
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ export function applyApprovalAdded(ev) {
|
|||
agent: ev.agent,
|
||||
kind: ev.approval_kind,
|
||||
sha_short: ev.sha_short || null,
|
||||
pr_number: ev.pr_number ?? null,
|
||||
diff: ev.diff || null,
|
||||
description: ev.description || null,
|
||||
// The ApprovalAdded event carries no requested_at; a live-added
|
||||
|
|
|
|||
Loading…
Reference in a new issue