Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reordering a stack can cause PRs to be incorrectly marked as merged

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, go
領域
cli

調査の方向性

gh stack push の実装から始め、並べ替えられた stack の祖先関係と既存の PR base がどのように処理されるかを追跡します。報告にある gh stack modifygh stack pushgh stack submit の手順を再現してください。push によってリモート stack が安全に同期されるか、ユーザーに submit を実行するよう明確に案内され、PR が誤って merged としてマークされなければ完了です。

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

説明

Problem

After reordering a published stack, I ran:

gh stack modify
gh stack push
gh stack submit

gh stack push updated the branch ancestry without updating the existing PR bases. Some PRs then targeted descendant branches that already contained their commits.

GitHub saw empty diffs and automatically marked those PRs as merged, although their commits were never merged into main. The PRs could not be reopened and had to be recreated with new branch names.

Version

gh stack version 0.0.8

Expected behavior

I expected gh stack push either

  • to update the remote stack to match the reordered local stack,
  • or to fail and tell me to use gh stack submit for this operation.
主要言語
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 を短くまとめたダイジェスト。