Settings shows github.com organization icons for repositories hosted on `*.ghe.com`

未关闭 适合新手
#5,544 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

从获取仓库条目组织图标的 Settings 面板代码入手,追踪它如何确定 GitHub 主机。更新查找逻辑,使其使用仓库的主机,然后验证:当 github.com 上同名组织的图标不同时,*.ghe.com 上的仓库会显示其 Enterprise 组织图标。

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

描述

triage
Short summary

When signed in to a GitHub Enterprise Cloud instance on *.ghe.com, the Settings panel fetches repository organization icons from github.com.

Affected version or release

v1.1.35

Installation context

No response

What happened?

Description

When signed in to a GitHub Enterprise Cloud instance on *.ghe.com, the Settings panel fetches repository organization icons from github.com. If an organization with the same name exists on github.com, its icon is displayed instead of the icon belonging to the organization on the enterprise instance.

Steps to reproduce

  1. Sign in to a *.ghe.com instance.
  2. Add a repository whose organization name also exists on github.com, with a different organization icon.
  3. Open the Settings panel and view the repository entry.
  4. Observe that the icon belongs to the same-named organization on github.com.

Expected behavior

Organization icons should be resolved using the repository’s GitHub host, so repositories on *.ghe.com display their enterprise organization’s icon.

Actual behavior

The icon is fetched from the same-named organization on github.com, resulting in incorrect branding.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

主要语言
没有语言数据
星标
2.3k
派生
202
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/app 的其他 Issue

查看 github/app 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

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