Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Trigger Workflow preselects stale/unrelated branch instead of active workspace branch

未關閉
#567 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
typescript, vscode
領域
devtools

研究方向

從開啟工作流程觸發對話框的擴充功能命令或 UI 開始,追蹤其預設分支/ref 的解析方式。使用作用中的 workspace 分支和連結的 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)
  1. Create a repository with multiple branches.
  2. Create at least one additional Git linked worktree with a different branch checked out.
  3. In VS Code, open the original workspace folder on branch feature/current.
  4. Use the extension command/UI to trigger a workflow manually.
  5. 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/vscode-github-actions 的其他 Issue

查看 github/vscode-github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。