gh stack checkout only works for formal stacks
まだ誰も着手していません。
評価
調査の方向性
Start at the gh stack checkout command and trace how it determines whether PR #12345 belongs to a formal stack, then inspect how gh pr checkout handles ordinary pull requests. Done means gh stack checkout falls back to the ordinary checkout behavior for a PR that is not in a stack, with the expected notice shown.
索引モデルが issue の本文から書いたものです。
説明
Summary
It seems GitHub, and by consequent the gh and gh stack CLI behaviors, have two different mental models for what a "PR" is: one must now use gh pr checkout 12345 if it is a normal PR and gh stack checkout 12345 if it is part of a GH Stack
Then gh stack checkout does not simply fall back to the gh pr checkout behavior if the given PR number is not part of a formal stack
That places the burden upon any automation, or reviewers, to have an if statement which either looks up the condition of the PR or does an actual if ! gh stack checkout $num; then gh pr checkout $num; fi work-around
Expected Behavior
$ gh stack checkout 12345
✗ PR #12345 is not part of a stack on GitHub, using $(gh pr checkout) instead
remote: Enumerating objects: 11, done.
...etc
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 73
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-stack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
feature request topic: cli - general
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
feature request topic: auto-merge
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug topic: docs
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
github/gh-stack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
kovidgoyal/kitty#10516 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
cisagov/vulnrichment#337 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100