microsoft / vscode-pull-request-github

GitHub Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
MIT License
2.29k stars 575 forks source link

Unable to load any prs when using ssh url #6095

Open fingalickn opened 2 months ago

fingalickn commented 2 months ago

I searched for existing isues

Steps to Reproduce:

  1. configure origin and github with only ssh auth and no https or PAT
  2. install extension
  3. get error Fetching pull requests for remote origin with query failed, please check if the repo undefined is valid.
alexr00 commented 1 month ago

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?

vinodkumaratse commented 1 month ago

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.

CloudPremiseDev commented 4 days ago

I am having the same issue from Windows11 using ssh to connect to private repos. This same configuration on my Mac works just fine.