Files
vibe-kanban/frontend/src
Louis Knight-Webb 5810c7cccf All checks pass. Here's a summary of the changes made: (#1595)
## Summary

Fixed the regression where the Create PR dialog was defaulting to the repository's current checked-out branch (`is_current`) instead of the task attempt's configured target branch.

### Changes Made

1. **`frontend/src/components/dialogs/tasks/CreatePRDialog.tsx`**:
   - Added `targetBranch?: string` to the props interface
   - Destructured `targetBranch` in the component
   - Updated the default branch selection logic to prioritize `targetBranch` over `is_current`

2. **`frontend/src/components/tasks/Toolbar/GitOperations.tsx`**:
   - Pass `targetBranch: getSelectedRepoStatus()?.target_branch_name` when showing the dialog

### Behavior

- When opening the Create PR dialog, it now defaults to the attempt's target branch (from `RepoBranchStatus.target_branch_name`)
- Falls back to the current branch (`is_current`) only if the target branch is not set or not found in the branch list
- This restores the original intended behavior that was lost during the multi-repo refactor
2025-12-18 09:53:13 +00:00
..
2025-12-17 18:25:34 +00:00
2025-12-17 18:25:34 +00:00
2025-12-02 14:52:27 +00:00
2025-12-17 18:25:34 +00:00
2025-11-14 15:37:56 +00:00