github / github/gh-stack

`gh stack sync` can't be run anywhere in the repository

未關閉
#483 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
1.5k
分支
70
平均合併
1 天 8 小時
30 天內合併 PR
7

描述

If you're on a repository that uses Stacked PRs, but you're not on a branch that's currently stacked, you see:

```
% gh stack sync
✗ current branch "fix/number" is not part of a stack
Checkout an existing stack using `gh stack checkout` or create a new stack using `gh stack init`
```

This means that if you want to leverage `.git/gh-stack` as the internal state for what branches are available, you need to now go onto a stacked branch to sync.

There should be a way to sync without necessarily being on a stacked branch (for instance, if you want to make sure that your local branch is cleaned up after it's been merged)

貢獻指南

開啟貢獻指南

研究方向

從 `gh stack sync` 命令開始,檢查它如何驗證目前的分支,以及堆疊儲存庫使用的 `.git/gh-stack` 狀態。從一個不屬於任何堆疊的分支執行該命令;完成的標準是同步可以在那裡繼續進行,包括合併本機分支後的清理。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
go
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。