github / github/app

[Requests and ideas] Folder/Collection projects don't support per-repo default branches

未关闭
#786 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Requests and ideas
主要语言
没有语言数据
星标
2.1k
派生
153
PR 合并指标
30 天内没有已合并 PR

描述

**Mood:** 😊
**Category:** Requests and ideas

Folder/Collection projects don't support per-repo default branches
Problem

When creating a new session in a collection project (a folder containing multiple git repositories), the app doesn't respect or allow configuration of default branches for each child repository.

Current Behavior

Individual repository projects have a default_branch field in the projects table
Collection projects have an empty default_branch field
The collection_members table (which tracks child repos) has no default_branch column
When creating a new worktree session for a collection, there's no way to specify which branch each child repo should branch from
The app appears to use the main checkout's current branch, not a configured default
Expected Behavior

Collections should support per-repository default branch configuration, so that when creating a new session:

repo-a branches from development
repo-b branches from main
repo-c branches from master
Each child repository in the collection should be able to have its own default branch configured.

Impact

This makes collection projects difficult to use in multi-repo workflows where different repositories follow different branching conventions (e.g., main vs development vs master).

---
| Field | Value |
| --- | --- |
| App version | 0.2.24 |
| OS | macOS 26.5.1 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Day 2 (Week 1) |

贡献指南

打开贡献指南

调研方向

Start by tracing collection session creation and how the projects and collection_members tables supply branch information. Compare the existing project default_branch behavior with collection members, then verify that a new session can use a distinct configured branch for each child repository, including main, development, and master.

由索引模型根据 Issue 内容生成。

评估

技术栈
git
领域
database, desktop
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。