chore(FN-4527): complete Steps 4-5 — verify gates and add changeset
Fusion-Task-Id: FN-4527 Fusion-Task-Lineage: de75c453-dc86-43d2-9cc5-50b20ee7014d
This commit is contained in:
12
.changeset/fn-4527-done-task-stale-merge-details.md
Normal file
12
.changeset/fn-4527-done-task-stale-merge-details.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Fix stale "files changed" counts on done task cards. The `/api/tasks/:id/diff`
|
||||
endpoint and the TaskCard done-task badge no longer fall back to the stored
|
||||
`task.mergeDetails.filesChanged` value, which can be stale after a rebase-and-
|
||||
push (see FN-4526). The endpoint now always derives stats from a live
|
||||
`git show --shortstat <commitSha>` when a merge SHA is resolvable, and the
|
||||
TaskCard treats the endpoint's response — including `0` — as authoritative.
|
||||
The stored `mergeDetails.filesChanged` is shown only as a transient placeholder
|
||||
while the live fetch is in flight.
|
||||
Reference in New Issue
Block a user