`gh stack sync` can't be run anywhere in the repository
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 70
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 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)
コントリビューションガイド
調査の方向性
Start at the `gh stack sync` command and inspect how it validates the current branch, along with the `.git/gh-stack` state used by stacked repositories. Run the command from a branch that is not part of a stack; done means synchronization can proceed there, including cleanup after a merged local branch.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100