Workflow dispatch fails for workflows in git submodules
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- git, github-actions, typescript, vscode
Direzione di ricerca
Riproduci il problema con un repository padre contenente un workflow di submodule in .github/workflows/deploy.yml, usando Trigger Run o l’esploratore di GitHub Actions. Traccia il percorso di workflow-dispatch e il modo in cui viene identificato il repository del file aperto. Il lavoro è completato quando il dispatch indirizza al repository del submodule e il 404 non si verifica più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
When attempting to trigger a GitHub Actions workflow located in a git submodule (e.g., host/.github/workflows/deploy.yml), the extension fails with a 404 "Not Found" error. The extension incorrectly attempts to dispatch the workflow to the parent repository instead of the submodule's separate GitHub repository.
To Reproduce
Steps to reproduce the behavior:
- Have a git repository with a submodule that has its own separate GitHub repository
- The submodule contains GitHub Actions workflows in
.github/workflows/ - Open the workflow file in VSCode
- Right-click and select "Trigger Run" or use the GitHub Actions explorer
- See error:
404 Not Foundor similar repository not found error
Expected behavior
The extension should:
- Detect that the workflow is located in a git submodule
- Identify the correct GitHub repository for that submodule
- Dispatch the workflow to the correct repository, not the parent
Screenshots
The error appears in the VSCode debug console when attempting to dispatch a workflow in the web submodule:
The extension is attempting to dispatch to the parent repository instead of the submodule's separate GitHub repository.
A user-facing error notification is displayed:
Note: Request IDs and repository names in the screenshot have been redacted for privacy.
Extension Version
v0.31.5
Additional context
This occurs in monorepo setups where submodules are separate GitHub repositories with their own workflows.
monorepo/ (Parent repo: github.com/owner/monorepo)
└── submodule/ (Submodule: github.com/owner/submodule)
└── .github/workflows/
└── deploy.yml ← Should dispatch to submodule repo
The extension's workflow dispatch logic needs to be aware of git submodules and route dispatch requests to the appropriate repository.
- 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 ·
Tutte le issue di github/vscode-github-actions
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Add: Star Sports 2 Telugu HD Apertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100