feat(FN-3217): honor resolved merge target across completion flows

- Add merge target branch resolver contract to core types and exports
- Update task lifecycle completion path to resolve and propagate merge target branch
- Use resolved merge target in merger execution instead of stale/default branch assumptions
- Expand core and CLI tests for merge-target resolution behavior and add changeset for @runfusion/fusion

Fusion-Task-Id: FN-3217
This commit is contained in:
Fusion
2026-05-09 23:06:18 -07:00
committed by gsxdsm
parent a2c87cfb47
commit bcb79d8b57
9 changed files with 150 additions and 34 deletions

View File

@@ -901,6 +901,7 @@ describe("processPullRequestMergeTask", () => {
title: "FN-093: Add support for creating pull requests",
body: "Automated PR for FN-093.\n\nImplement PR automation",
head: "fusion/fn-093",
base: "main",
});
expect(store.updatePrInfo).toHaveBeenCalledWith(
"FN-093",
@@ -1126,6 +1127,7 @@ describe("runDashboard — PR-first auto-merge queue", () => {
title: "FN-093: Task",
body: "Automated PR for FN-093.\n\nDescription",
head: "fusion/fn-093",
base: "main",
});
expect(aiMergeTask).not.toHaveBeenCalled();
});
@@ -1154,6 +1156,7 @@ describe("runDashboard — PR-first auto-merge queue", () => {
title: "FN-093: Task",
body: "Automated PR for FN-093.\n\nDescription",
head: "fusion/fn-093",
base: "main",
});
expect(aiMergeTask).not.toHaveBeenCalled();
});