Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#567 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu từ extension command hoặc UI mở hộp thoại kích hoạt workflow và theo dõi cách branch/ref mặc định của nó được xác định. Tái hiện với một branch đang hoạt động của workspace và một worktree được liên kết, sau đó xác minh rằng hộp thoại ưu tiên HEAD của repository thuộc workspace đang hoạt động và chỉ fallback khi không thể xác định HEAD đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
TypeScript
Star
661
Fork
214
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/vscode-github-actions

Tất cả issue của github/vscode-github-actions

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.