branch_sync_guard: handle stack branches whose upstream is the parent branch

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

Start in scripts/lib/branch_sync_guard.sh, where the guard resolves the upstream via @{u}, and check how scripts/wait_pr_ready.sh calls it. Reproduce by creating a branch with git switch -c <branch> origin/<base> and inspecting git rev-parse --abbrev-ref @{u}. Done means the guard compares against origin/<current> when the upstream names a different branch, and prints a --no-track hint when that ref is missing. The issue does not name a test file.

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

説明

git switch -c <branch> origin/<base> sets the new branch's upstream to the parent PR's branch. scripts/lib/branch_sync_guard.sh then compares against that upstream, so wait_pr_ready.sh refuses the stack branch. An owner in the Cursor plugin stack had to run git branch --unset-upstream.

Proposed mechanism: when @{u} names a different branch than the current one and origin/<current> exists, compare against origin/<current>. Otherwise print a hint to use --no-track.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

主要言語
TypeScript
スター
2.1k
フォーク
139
平均マージ
4時間 38分
マージ済み PR(30日)
926

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/xum のほかの issue

coder/xum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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