You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error fetching pull requests with git remote alias #7835
Repository Clone Configuration: Using git remote alias (e.g., origin [email protected]:repo-name for work account, and origin [email protected]:repo-name for personal)
GitHub Product: GitHub.com
Steps to Reproduce
Clone repository using a non-standard remote alias (e.g., [email protected]:repo-name).
Open repository in VSCode with the Pull Request extension enabled.
Try to fetch pull requests.
Actual Behavior
Error message displayed: Fetching pull requests for remote origin with query failed, please check if the repo undefined is valid.
Additional Information
Issue appears only for repositories with non-standard remote alias ([email protected]:repo-name).
For personal repositories using standard alias ([email protected]:repo-name), the error does not occur.
This issue started appearing about a week ago, previously (about a month ago) it worked fine.
Expected Behavior
Fetching pull requests should work for repositories using non-standard remote aliases as well.
Notes
Please let me know if you need any extra logs or details.
I am getting the same error, and when I check the Output console it shows the following:
2025-09-23 10:31:07.478 [warning] [GitHubRepository+0] Fetching default branch failed: HttpError: Not Found - https://docs.github.com/rest/repos/repos#get-a-repository
2025-09-23 10:31:07.478 [error] [FolderRepositoryManager+0] Fetching pull request with query failed: HttpError: Not Found - https://docs.github.com/rest/repos/repos#get-a-repository
I do not know why it is trying to fetch from the docs URL as I have nothing configured for that URL. This is only happening on my org-#####@wwwin-github.<company>.com:<path_to_repo>.git repository though, not when I am opened to a direct git@<company>.com:<path_to_repo>.git.
Activity
James-Bartman commentedon Sep 23, 2025
I am getting the same error, and when I check the Output console it shows the following:
I do not know why it is trying to fetch from the docs URL as I have nothing configured for that URL. This is only happening on my
org-#####@wwwin-github.<company>.com:<path_to_repo>.gitrepository though, not when I am opened to a directgit@<company>.com:<path_to_repo>.git.alexr00 commentedon Sep 26, 2025
Duplicate of #4551