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

オープン
#483 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
cli

調査の方向性

gh stack sync コマンドから始め、現在のブランチをどのように検証しているかと、スタックされたリポジトリで使用される .git/gh-stack の状態を調べます。スタックの一部ではないブランチからコマンドを実行します; マージされたローカルブランチの後のクリーンアップを含め、そこで同期を進められれば完了です。

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

説明

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)

主要言語
Go
スター
1.5k
フォーク
73
平均マージ
1日 8時間
マージ済み PR(30日)
7

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-stack のほかの issue

github/gh-stack の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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