vscode-pull-request-github
vscode-pull-request-github copied to clipboard
Unable to load any prs when using ssh url
I searched for existing isues
- Extension version:v0.92.0
- VSCode Version:1.91.1
- OS: Windows 11 -WSL Ubuntu 22.04.4 LTS
- Repository Clone Configuration (single repository/fork of an upstream repository):single repository
- Github Product (Github.com/Github Enterprise version x.x.x): Github.com
Steps to Reproduce:
- configure origin and github with only ssh auth and no https or PAT
- install extension
- get error
Fetching pull requests for remote origin with query failed, please check if the repo undefined is valid.
I'm not able to reproduce this. Can you share the value of githubPullRequests.queries? Is this in a public repo, and if so, can you share which one?
I am facing the same issue.
To reproduce this issue, We need to authenticate github via ssh instead of https. You will not notice PRs under github pull requests, PRs will not be listed.
When we authenticate via https, it shows the PRs under github pull requests.
Here are the queries: "githubPullRequests.queries": [ { "label": "Waiting For My Review", "query": "is:open review-requested:${user}" }, { "label": "Assigned To Me", "query": "is:open assignee:${user}" }, { "label": "Created By Me", "query": "is:open author:${user}" } ]
just curious, How is it not working when authenticated over ssh, but smoothly works via https.
I am having the same issue from Windows11 using ssh to connect to private repos. This same configuration on my Mac works just fine.
I had a similar issue. My issue was that I was logged in to two GitHub accounts through VS Code. I clicked the "Accounts" icon at the bottom of the activity bar and signed out of the GitHub account that wasn't authorized for the repo I was using. At that point, I was able to return to the extension and successfully sign in to GitHub.
I'm still not able to repro. Does @cg2916's work around work for everyone? If not, I'll re-open the issue.
I'm still not able to repro. Does @cg2916's work around work for everyone? If not, I'll re-open the issue.
The issue ~~is~~ was occurring for me with extension version 0.102.0 and VS Code version 1.96.4. I can't use that workaround as I have multiple GitHub accounts and GitHub Enterprise accounts which I need to use for other extensions.
Since this extension is marked as "trusted by Microsoft", I can't selectively remove its access to those accounts. I can't figure out how to specify that the PRs extension should only use a specific GHE account.
To reiterate:
I have two GitHub accounts and a GHE account logged in. I need the PR extension to only use the GHE account to access PRs for a particular repo, using my SSH settings as provided by default when running ssh from command line. How can I configure this?
This is the only meaningful message logged in the extension output console:
2025-02-24 10:52:45.857 [warning] GitHubRepository+1> Fetching default branch failed: HttpError: Not Found
2025-02-24 10:52:45.857 [error] GitHubRepository+1> Fetching pull request with query failed: HttpError: Not Found
Update: It just started working a few hours later. Not sure if it just took a bunch of refreshes or what. Maybe it's a race condition of which gets to authenticate first or something.