Workflow dispatch fails for workflows in git submodules
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- git, github-actions, typescript, vscode
Rechercherichtung
Reproduziere den Fehler mit einem übergeordneten Repository, das einen Submodul-Workflow unter .github/workflows/deploy.yml enthält, unter Verwendung von Trigger Run oder dem GitHub Actions explorer. Verfolge den workflow-dispatch-Pfad und, wie das Repository der geöffneten Datei identifiziert wird. Als erledigt gilt die Aufgabe, wenn der Dispatch auf das Submodul-Repository zielt und der 404 nicht mehr auftritt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 661
- Forks
- 214
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/vscode-github-actions
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
github/vscode-github-actions#627 · 1 Reaktion ·
-
long work Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
github/vscode-github-actions#628 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
github/vscode-github-actions#625 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
github/vscode-github-actions#621 · 3 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 50/100
github/vscode-github-actions#619 ·
Alle Issues in github/vscode-github-actions
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
fil-donadoni/tolaria#4409 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
corsairdev/corsair#1764 ·