René's URL Explorer Experiment


Title: Workflow dispatch defaults to first repository's branch in multi-root workspaces · Issue #634 · github/vscode-github-actions · GitHub

Open Graph Title: Workflow dispatch defaults to first repository's branch in multi-root workspaces · Issue #634 · github/vscode-github-actions

X Title: Workflow dispatch defaults to first repository's branch in multi-root workspaces · Issue #634 · github/vscode-github-actions

Description: Description When triggering a workflow_dispatch workflow from a multi-root VS Code workspace containing multiple Git repositories, the ref input is prefilled with the current branch of the first Git repository rather than the repository ...

Open Graph Description: Description When triggering a workflow_dispatch workflow from a multi-root VS Code workspace containing multiple Git repositories, the ref input is prefilled with the current branch of the first Gi...

X Description: Description When triggering a workflow_dispatch workflow from a multi-root VS Code workspace containing multiple Git repositories, the ref input is prefilled with the current branch of the first Gi...

Opengraph URL: https://github.com/github/vscode-github-actions/issues/634

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Workflow dispatch defaults to first repository's branch in multi-root workspaces","articleBody":"## Description\n\nWhen triggering a `workflow_dispatch` workflow from a multi-root VS Code workspace containing multiple Git repositories, the ref input is prefilled with the current branch of the first Git repository rather than the repository containing the selected workflow.\n\nThe workflow itself is dispatched against the correct repository, but the default ref often belongs to another repository. This requires manually correcting the branch on nearly every dispatch and can accidentally trigger a workflow on the wrong ref when branch names overlap.\n\n## Steps to reproduce\n\n1. Create a multi-root workspace containing two or more GitHub repositories.\n2. Check out different branches in the repositories, for example:\n   - Repository A: `branch-a`\n   - Repository B: `branch-b`\n3. Open a `workflow_dispatch` workflow from Repository B.\n4. Trigger the workflow using the editor action or GitHub Actions explorer.\n5. Observe the value in **Enter ref to trigger workflow on**.\n\n## Expected behavior\n\nThe ref defaults to `refs/heads/branch-b`, the current branch of the repository containing the selected workflow.\n\n## Actual behavior\n\nThe ref defaults to `refs/heads/branch-a`, the current branch of the first repository known to VS Code's Git extension.\n\n## Probable cause\n\n`triggerWorkflowRun.ts` correctly resolves `gitHubRepoContext` from the workflow file's workspace folder, but obtains the default ref through `getGitHead()`:\n\n```ts\nvalue: (await getGitHead()) || gitHubRepoContext.defaultBranch\n```\n\n`getGitHead()` in `src/git/repository.ts` always reads `git.repositories[0]`:\n\n```ts\nconst head = git.repositories[0].state.HEAD;\n```\n\nThis ignores the workflow's workspace/repository context.\n\n## Suggested fix\n\nResolve HEAD from `gitHubRepoContext.repositoryState`, or change `getGitHead` to accept the workflow's workspace URI/repository context and retrieve the corresponding Git repository before reading HEAD.\n\n## Environment\n\n- VS Code: 1.141.0 (`2a59476c9bfcb90b3ddc372c36762471b7dfad1c`), x64\n- GitHub Actions extension: 0.32.3\n- OS: Windows\n- Workspace: multi-root with multiple local GitHub repositories","author":{"url":"https://github.com/MehmetKinsey","@type":"Person","name":"MehmetKinsey"},"datePublished":"2026-10-09T08:49:53Z","url":"https://github.com/github/vscode-github-actions/issues/634"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e7b452f3-ace2-dae3-9b4e-2db074d67e31
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB9FA:1E3FF9:9B7F4:D62DF:6AFD8993
html-safe-nonceec5f9a13e7b91e8e4522d2cc578be6e715b0ba9656ed50e2b63871cd2fae201b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUZBOjFFM0ZGOTo5QjdGNDpENjJERjo2QUZEODk5MyIsInZpc2l0b3JfaWQiOiIzMzM0MzU3MTM3MTY0NzAwMDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7e1ec7c4f0665b2806f948d9d21f83aa136cef3598a17a8c046fef70ca9b96f8
hovercard-subject-tagissue:5775460252
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/634/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ab3f630916fc8b230b5f8b83fe1bb3a9271df1856245f3d0cca83cefaf1df9b8/github/vscode-github-actions/issues/634
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab3f630916fc8b230b5f8b83fe1bb3a9271df1856245f3d0cca83cefaf1df9b8/github/vscode-github-actions/issues/634
og:image:altDescription When triggering a workflow_dispatch workflow from a multi-root VS Code workspace containing multiple Git repositories, the ref input is prefilled with the current branch of the first Gi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMehmetKinsey
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
go-importgithub.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id616663763
octolytics-dimension-repository_nwogithub/vscode-github-actions
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id616663763
octolytics-dimension-repository_network_root_nwogithub/vscode-github-actions
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/vscode-github-actions/issues/634#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fvscode-github-actions%2Fissues%2F634
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fvscode-github-actions%2Fissues%2F634
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fvscode-github-actions
Reloadhttps://github.com/github/vscode-github-actions/issues/634
Reloadhttps://github.com/github/vscode-github-actions/issues/634
Reloadhttps://github.com/github/vscode-github-actions/issues/634
githubhttps://github.com/github
vscode-github-actionshttps://github.com/github/vscode-github-actions
Codehttps://github.com/github/vscode-github-actions
Issues190 (190)https://github.com/github/vscode-github-actions/issues
Pull requests49 (49)https://github.com/github/vscode-github-actions/pulls
Discussionshttps://github.com/github/vscode-github-actions/discussions
Actionshttps://github.com/github/vscode-github-actions/actions
Projectshttps://github.com/github/vscode-github-actions/projects
Security and qualityhttps://github.com/github/vscode-github-actions/security
Insightshttps://github.com/github/vscode-github-actions/insights
https://github.com/github/vscode-github-actions
New issuehttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/634
New issuehttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/634
Workflow dispatch defaults to first repository's branch in multi-root workspaceshttps://github.com/github/vscode-github-actions/issues/634#top
https://github.com/MehmetKinsey
MehmetKinseyhttps://github.com/MehmetKinsey
on Oct 9, 2026https://github.com/github/vscode-github-actions/issues/634#issue-5775460252
github-project-automationhttps://github.com/apps/github-project-automation
GitHub Actions VS Code Extensionhttps://github.com/orgs/github/projects/9557
on Oct 9, 2026https://github.com/github/vscode-github-actions/issues/634#event-32988171440
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/vscode-github-actions/issues/634
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/634
GitHub Actions VS Code Extensionhttps://github.com/orgs/github/projects/9557
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.