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
This is caused by invalid graphQL URL for the enterprise version. The reason is that this function will fallback to /api/v3 for URL other than github.com
Before fixing this, I couldn't create a pending PR review and comments. New comments was immediately posted as single comments (not as part of the pending review). I believe this is because it's using the REST API instead of the graphQL underneath.
How ever, once i use the correct graphQL URL. Loading Description page of PR no longer works. Got error with this
[Debug 130796s 117ms] PullRequestOverviewPanel> initialized without PR
[Debug 130796s 320ms] GitHubRepository> Fetch available merge methods - done
[Debug 130796s 328ms] GithubRepository> Unable to fetch PR: Error: GraphQL error: Field 'isDraft' doesn't exist on type
Not sure why that is. But at least now I can use Draft PR functionalities
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
I think this is related to #947
This is caused by invalid graphQL URL for the enterprise version. The reason is that this function will fallback to
/api/v3
for URL other than github.comvscode-pull-request-github/src/authentication/configuration.ts
Lines 18 to 25 in aae86fd
But when constructing the ApolloClient, it append the base url with
/graphql
. which the URL now becomes/api/v3/graphql
. That's why it returns 404.vscode-pull-request-github/src/github/credentials.ts
Lines 316 to 320 in aae86fd
Before fixing this, I couldn't create a pending PR review and comments. New comments was immediately posted as single comments (not as part of the pending review). I believe this is because it's using the REST API instead of the graphQL underneath.
How ever, once i use the correct graphQL URL. Loading Description page of PR no longer works. Got error with this
Not sure why that is. But at least now I can use Draft PR functionalities
The text was updated successfully, but these errors were encountered: