Trigger Workflow preselects stale/unrelated branch instead of active workspace branch
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript, vscode
- 領域
- devtools
調査の方向性
ワークフローのトリガーダイアログを開く extension command または UI から始め、デフォルトの branch/ref がどのように解決されるかを追跡します。アクティブな workspace ブランチと linked worktree を使って再現し、そのうえで、ダイアログがアクティブな workspace リポジトリの HEAD を優先し、その HEAD を特定できない場合にのみフォールバックすることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Extension
GitHub Actions for VS Code
Summary
When triggering a workflow from VS Code, the branch/ref dropdown preselects an unrelated branch (often from a linked worktree or prior context) instead of the branch currently checked out in the active workspace folder.
Expected behavior
Default selected branch/ref should be the branch currently checked out in the active workspace repository.
Actual behavior
The dialog defaults to a different branch than the active workspace branch.
Repro (generic)
- Create a repository with multiple branches.
- Create at least one additional Git linked worktree with a different branch checked out.
- In VS Code, open the original workspace folder on branch
feature/current. - Use the extension command/UI to trigger a workflow manually.
- Observe the preselected branch/ref in the trigger dialog.
Observed result
The preselected branch/ref is not feature/current; it appears to come from stale/cached/worktree context.
Notes
- Manually switching the branch in the dialog works, but the default is misleading and easy to miss.
- This can cause accidental workflow runs on the wrong branch.
Suggested fix
Prefer branch/ref resolution from the active workspace repository HEAD (and only fall back to cached/worktree-derived refs if workspace HEAD cannot be determined).
- 主要言語
- TypeScript
- スター
- 661
- フォーク
- 214
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/vscode-github-actions のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/vscode-github-actions#627 · リアクション 1 件 ·
-
long work オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
github/vscode-github-actions#628 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
github/vscode-github-actions#625 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
github/vscode-github-actions#621 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
github/vscode-github-actions#619 ·
github/vscode-github-actions の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/inspector#2458 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/ibm-products#9907 ·