feat(FN-4518): complete Step 4 — carry rebase base through self-healing

Fusion-Task-Id: FN-4518
Fusion-Task-Lineage: 48749dec-b2c9-484b-a13e-ffacc1fa9014
This commit is contained in:
Fusion
2026-05-14 16:53:47 -07:00
committed by gsxdsm
parent abb7838d3c
commit d9f81099fb
3 changed files with 128 additions and 0 deletions

View File

@@ -143,6 +143,27 @@ describe("formatTrackingComment", () => {
expect(comment).toContain("Merged: 2026-05-12T10:00:00.000Z");
});
it("keeps aggregate Files line when rebaseBaseSha is present", () => {
const comment = formatTrackingComment(
{
id: "FN-1",
title: "Build thing",
branch: "fusion/fn-1",
mergeDetails: {
commitSha: "abcdef1234567890",
rebaseBaseSha: "1234567890abcdef",
mergeCommitMessage: "feat(FN-1): ship thing\n\nbody",
filesChanged: 3,
insertions: 42,
deletions: 5,
},
},
"done",
);
expect(comment).toContain("Files: 3 changed (+42 / -5)");
});
it("omits empty merge placeholders when only commit details are present", () => {
const comment = formatTrackingComment(
{