github / github/gh-stack

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

オープン
#371 コメント 5 件 リアクション 22 件 担当者 0 名 GitHub で見る
bug topic: merge commit
主要言語
Go
スター
1.5k
フォーク
70
平均マージ
1日 8時間
マージ済み PR(30日)
7

説明

## 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

- [web-infra-dev/rslint PR #1461](https://github.com/web-infra-dev/rslint/pull/1461) → [generated squash commit](https://github.com/web-infra-dev/rslint/commit/848cda7e34a69462bfe311cbd21885fe3b02c66e)
- [vercel/next.js PR #96274](https://github.com/vercel/next.js/pull/96274) → [generated squash commit](https://github.com/vercel/next.js/commit/a619237b1c1356618f287289213031e0a95dd2a1)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ソースファイル、テスト、エントリポイントのいずれも特定されていません。まず、リンクされた pull request と、それらから生成された squash commit を比較し、gh-stack に関連する merge path があるかどうかを判断してください。mixed author identity が再現可能な形で説明され、プロジェクトスコープの具体的な変更が定義されていることを done の条件とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
git, github
領域
cli
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。