gsxdsm
9ba3a8e453
FN-5826: centralize branch assignment derivation
Centralize working-branch vs merge-target derivation and reuse it across branch-selection flows.
- add a shared core helper to derive working branch, merge target, and default branch assignment
- export the new helper from @fusion/core and add focused unit coverage for branch-assignment behavior
- update dashboard branch-selection route to consume the shared helper instead of duplicating derivation logic
- extend dashboard branch-selection tests to verify helper-driven branch/merge-target precedence
Files changed:
.../core/src/__tests__/branch-assignment.test.ts | 99 ++++++++++++++++++++++
packages/core/src/branch-assignment.ts | 76 +++++++++++++++++
packages/core/src/index.ts | 11 +++
.../src/__tests__/branch-selection.test.ts | 12 +++
packages/dashboard/src/routes/branch-selection.ts | 39 +++++----
5 files changed, 222 insertions(+), 15 deletions(-)
Fusion-Task-Id: FN-5826
Fusion-Task-Lineage: ad7c5487-5266-4281-abd6-33784dd7e488
2026-06-01 01:39:59 -07:00
..
2026-05-31 20:05:32 -07:00
2026-05-31 20:05:32 -07:00
2026-06-01 01:39:59 -07:00
2026-06-01 01:39:59 -07:00
2026-05-31 20:05:32 -07:00
2026-05-31 20:05:32 -07:00
2026-06-01 01:37:25 -07:00
2026-05-31 20:05:32 -07:00
2026-05-31 20:05:32 -07:00
2026-05-28 21:23:48 -07:00
2026-05-31 20:05:32 -07:00