Fix hardcoded 'main' branch - detect default branch dynamically

- Add getDefaultBranchName() method to WorkstreamManager
- Detects repo default by checking HEAD symbolic ref and fallback
- Update CreateWorkstream to use dynamic default branch detection
- Update 'onx new' CLI flag default to empty string
- Manager now determines correct default branch automatically

Fixes bug where 'onx new feature' always used 'main' even when repo 
uses 'master' as the default branch. Now workstreams correctly detect 
and use the repository's actual default branch.
This commit is contained in:
User
2025-10-15 19:36:36 -04:00
parent 900bdeaf79
commit 3ee6d63c61

Diff Content Not Available