github / github/app

Repo rename on GitHub breaks "My work" PR/issue filter semi-permanently

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

描述

### Short summary

When a GitHub repository is **renamed**, the Copilot app keeps using the old `owner/repo` name when filtering PRs and issues. Removing and re-adding the repository doesn't help, since the app seems to derive `owner/repo` from the local clone remote URL.

### Affected version or release

1.0.16

### Installation context

GHE / Proxima, but likely affecting all GitHub flavors

### What happened?

When a repository is renamed in GitHub, in the Copilot app under "My work":
- The repository dropdown shows the old name.
- Selecting it (or "All repositories") shows **no** PRs/issues for the renamed repository.
- The stale name persists even after **removing and re-adding** the repository, because the app seems to use the local git remote URL to derive the filter value.

Note that the repository name is shown correctly in the app sidebar, as well as in settings. This seems to only affect the PR/issue view.

### Steps to reproduce

1. Clone `owner/old-name` locally and add it to the Copilot app.
2. Rename the repository on GitHub to `owner/new-name` (GitHub sets up a redirect; the local remote URL still points at `old-name` and keeps working).
3. Open **My Work** and use the repository filter dropdown.

### Expected behavior

The filter uses the repo's **canonical** current name (`owner/new-name`) and shows the current PRs/issues.

### Additional context

As a workaround, deleting the local clone or editing its remote URL to match the new clone URL, then removing and re-adding the repository fixes it.

贡献指南

打开贡献指南

调研方向

从 Copilot 应用的 My Work 仓库筛选器开始,追踪本地 git remote URL 如何成为 PR/issue 筛选器的值。复现从 owner/old-name 重命名为 owner/new-name,然后验证筛选器使用 owner/new-name,并显示重命名后仓库当前的 PRs 和 issues。

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

评估

技术栈
git, github
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 发到你的邮箱

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