Trigger Workflow preselects stale/unrelated branch instead of active workspace branch
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools
Direzione di ricerca
Inizia dal comando dell’estensione o dalla UI che apre la finestra di dialogo per l’attivazione del workflow e traccia come viene risolta la branch/ref predefinita. Riproduci il caso con un branch attivo del workspace e un worktree collegato, quindi verifica che la finestra di dialogo preferisca l’HEAD del repository del workspace attivo e ricorra al fallback solo quando non è possibile determinare quell’HEAD.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- TypeScript
- Stelle
- 661
- Fork
- 214
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/vscode-github-actions
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
github/vscode-github-actions#627 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
github/vscode-github-actions#625 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
github/vscode-github-actions#621 · 3 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
github/vscode-github-actions#619 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 63/100
github/vscode-github-actions#618 · 2 commenti ·