Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Stacked PR squash merges can combine the PR author's name with the merger's email

未关闭
#371 5 条评论 22 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
git, github
领域
cli

调研方向

未识别出源文件、测试或入口点。首先比较链接的 pull request 与其生成的 squash commit,并确定 gh-stack 是否存在相关的 merge path;完成应意味着已经以可复现的方式解释 mixed author identity,并定义了一个具体的项目范围内变更。

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

描述

bug topic: merge commit

Description

When a native GitHub Stacked PR is squash-merged by someone other than the PR author, the generated commit can contain a mixed author identity:

  • The Git author name belongs to the PR author.
  • The Git author email belongs to the user who merged the stack.

The original commits are correctly associated with the PR author. The incorrect email is introduced when GitHub creates the squashed commit.

As a result, the repository page may display the PR author's name while the API, contribution graph, contributor statistics, and other author-based tooling attribute the commit to the merger.

Public examples

主要语言
Go
星标
1.5k
派生
73
平均合并
1 天 8 小时
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

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

github/gh-stack 的其他 Issue

查看 github/gh-stack 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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