vscode-github-actions
vscode-github-actions copied to clipboard
Try to auto-detect which remote points to github.com
Is your feature request related to a problem? Please describe.
The extension couldn't find GitHub repository for the git repository when both of the following conditions are met:
- git repository has two remotes
- github url is not set as
originremote
i.e.:
$ git remote -v
github https://github.com/my-org/my-repo.git (fetch)
github https://github.com/my-org/my-repo.git (push)
origin https://internal-scm.example.com/my-repo.git (fetch)
origin https://internal-scm.example.com/my-repo.git (push)
Describe the solution you'd like
Let the extension detect GitHub repository from all the remotes, not only from origin.
Additional context
AFAIK GitHub CLI supports this scenario.
I found the configuration github-actions.remote-name it works, but still think supporting auto-detection would be helpful.
Thank you. I've updated the title slightly to reflect this.
@sarisia / @cschleiden, would you please attach the steps on how to get to the configuration and change it? Thanks!
https://github.com/github/vscode-github-actions/issues/50#issuecomment-1495360003 @sarisia / @cschleiden, would you please attach the steps on how to get to the configuration and change it? Thanks!
-
Open VSCode settings

-
Search for
github-actions.remote-name
@sarisia, thank you!
The latest release may fix this, though its possible there's more work to be done there, can you try it and let me know?
@felipesu19 Thank you for looking into this! Unfortunatelly, it's still not working.. (v0.25.7)
Thank you for trying! i'll move it into issues to triage then!