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
// We're running against a GitHub server that doesn't support the query we're trying to run.
275
276
// Switch to the limited schema and try again.
276
277
this._areQueriesLimited=true;
@@ -587,7 +588,7 @@ export class GitHubRepository extends Disposable {
587
588
};
588
589
}catch(e){
589
590
Logger.error(`Fetching all pull requests failed: ${e}`,this.id);
590
-
if(e.code===404){
591
+
if(e.status===404){
591
592
// not found
592
593
vscode.window.showWarningMessage(
593
594
`Fetching all pull requests for remote '${remote?.remoteName}' failed, please check if the repository ${remote?.owner}/${remote?.repositoryName} is valid.`,
@@ -626,7 +627,7 @@ export class GitHubRepository extends Disposable {
626
627
}
627
628
}catch(e){
628
629
Logger.error(`Fetching pull request for branch failed: ${e}`,this.id);
629
-
if(e.code===404){
630
+
if(e.status===404){
630
631
// not found
631
632
vscode.window.showWarningMessage(
632
633
`Fetching pull request for branch for remote '${remote?.remoteName}' failed, please check if the repository ${remote?.owner}/${remote?.repositoryName} is valid.`,
@@ -891,7 +892,7 @@ export class GitHubRepository extends Disposable {
891
892
try{
892
893
Logger.debug(`Fetch authenticated user emails - enter`,this.id);
893
894
const{ octokit }=awaitthis.ensure();
894
-
const{ data }=awaitoctokit.call(octokit.api.users.listEmailsForAuthenticated,{});
895
+
const{ data }=awaitoctokit.call(octokit.api.users.listEmailsForAuthenticatedUser,{});
895
896
Logger.debug(`Fetch authenticated user emails - done`,this.id);
0 commit comments