Incorrect "PR #5 remains open" remains open after git stack modify for a PR that is already closed
まだ誰も着手していません。
評価
調査の方向性
git stack modify の保存フローから始め、削除されたレイヤーがまだ open であると報告する gs modify の出力も確認します。このメッセージの前に GitHub PR の状態がどのように取得されているかを確認します。GitHub ですでにクローズされている PR が、レイヤーを削除した後に open として報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
- Use
gs submitto create stack with depth 2. Let's say branch nameslayer1andlayer2 - I close the PR for
layer2in the GitHub UI - I want to remove the stack locally, so I use
git stack modify, pressxto delete the layer, and thenControl+Sto save.
I get the following output
$ gs modify
✓ Dropped layer2 from stack
✓ Stack modified successfully
Dropped: layer 2(PR #53155 remains open — close with `gh pr close 53155`)
Run `gh stack submit` to push your changes and update the stack of PRs on GitHub
Now gh cli can clearly tell the PR is already closed, because when I try to close it:
$ gh pr close 53155
! Pull request repo#53155 (PR Title) is already closed
I think a fix will be doing a resync on the state from GitHub before showing this message.
- 主要言語
- 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
crossplane/crossplane#7859 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bazel-contrib/rules_go#4721 · コメント 2 件 ·
-
needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
bug carvel-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100