`gh stack sync` always rebases, which breaks PR review history
未關閉
feature request
topic: rebase alternative
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 70
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 7
描述
If a reviewer has already viewed/reviewed a PR, and the submitter performs a `gh stack sync`, it will then force-push, which erases useful information about "changes since last view" in the PR interface.
It should be an option (the default?) to perform a merge from upstream rather than a rebase to avoid messing up the review history.
貢獻指南
研究方向
從 `gh stack sync` 的實作和測試著手;重現 upstream 存在變更時的同步,並將目前的 rebase 行為與 merge 進行比較。完成標準是:該命令支援所要求的非重寫行為,確定透過選項還是預設行為實現,並且測試涵蓋由此產生的歷史記錄。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git, github, go
- 領域
- cli, developer-experience
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100