github / github/app

Git commits have wrong author

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

描述

### Short summary

I noticed that the commits the app generates have the wrong author

### Affected version or release

v1.0.8

### Installation context

Installed on Windows

### What happened?

I noticed that the commits the app generated have the wrong name. It's not been using the values in user.name and user.email. It seems to have guessed the email from my windows login and appended @users.noreply.github.com, and the name is the name associated with that email. The account in the app is my correct user.

Image

The commits generated by Copilot app have someone else's accounts.

Image

### Steps to reproduce

_No response_

### Expected behavior

The app makes commits with my global git config user and email.

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

首先在 Windows 上复现生成的 commit,并检查应用如何构造 commit 作者,以及这与 Git 全局的 user.name 和 user.email 值有何不同。完成的标准是生成的 commit 使用配置的名称和电子邮件,而不是 Windows 登录信息或其他账户。

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

评估

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

把新 issue 发到你的邮箱

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