github / github/app

[Requests and ideas] Use context-derived branch names with configurable prefix for worktree sessions

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

描述

**Mood:** 😔
**Category:** Requests and ideas

## Summary

When GitHub Copilot creates a new worktree session, it auto-generates branch names
in the format `username/random-words` (e.g. `jonathansant/verbose-couscous`).
These names are not meaningful and don't reflect the work being done.

## Proposed Improvements

### 1. Derive the branch slug from the session prompt/context

Copilot already generates a meaningful session name from the prompt — the branch
name should use that same context.

**Current:** `jonathansant/verbose-couscous`
**Proposed:** `feature/update-player-endpoint`

### 2. Let users configure the branch prefix

The prefix before the slug should be configurable in project settings, so teams
can match their own Git conventions.

| Configured prefix | Resulting branch |
|---|---|
| `feature` (default) | `feature/update-player-endpoint` |
| `fix` | `fix/update-player-endpoint` |
| `jonathansant` | `jonathansant/update-player-endpoint` |

## Example

Given a prompt: _"Add negative unit tests for config validation"_

| | Branch name |
|---|---|
| **Current** | `jonathansant/fantastic-bassoon` |
| **Proposed** | `feature/add-negative-unit-tests-for-config` |

## Why This Matters

- Branch names appear in PRs, CI pipelines, and git history — meaningful names
improve team communication
- Aligns with how Copilot already names sessions (context-aware)
- Configurable prefix lets teams follow their own branching conventions

---
| Field | Value |
| --- | --- |
| App version | 0.2.8 |
| OS | macOS 26.5.0 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 2 |

贡献指南

打开贡献指南

调研方向

Start by locating the worktree session branch-creation flow and the existing context-derived session-name generation in the app. Then inspect project settings handling for a configurable prefix; done means producing context-based slugs and applying the selected prefix while preserving the documented examples.

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

评估

领域
desktop
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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