Skip to content

Conversation

@benmarten
Copy link

@benmarten benmarten commented Jan 9, 2026

Closes #1637

Summary

  • Adds default_branch field to project_repos table
  • New UI input in project settings to configure default branch per repo
  • Used during workspace setup and PR creation
  • Allows overriding the repository's default branch on a per-project basis
  • Includes database migration

Test plan

  • Verified default branch can be configured per repo in project settings
  • Verified workspace setup uses configured default branch
  • Verified PR creation targets configured default branch
  • Verified migration runs successfully

🤖 Generated with Claude Code

@vibe-kanban-cloud
Copy link

Review Complete

Your review story is ready!

View Story

Comment !reviewfast on this PR to re-generate the story.

@benmarten benmarten force-pushed the vk/c302-default-branch branch from ae59a3e to f0c765d Compare January 9, 2026 17:35
- Add default_branch column to project_repos table
- Auto-detect default branch from remote HEAD when not configured
- Use configured default branch in branch selection dialogs
- Add useRepoBranchSelection hook for branch selection logic
- Update CreateAttemptDialog to use default branch

Note: Run 'pnpm run generate-types' and 'pnpm run prepare-db' after applying
@benmarten benmarten force-pushed the vk/c302-default-branch branch from f0c765d to 5f77412 Compare January 9, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Option to always use remote base branch

1 participant