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
Copy file name to clipboardExpand all lines: src/autoupdater.ts
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -465,10 +465,18 @@ export class AutoUpdater {
465
465
break;
466
466
}catch(e: unknown){
467
467
if(einstanceofError){
468
-
/**
469
-
* If this update was against a fork and we got a 403 then it's
470
-
* probably because we don't have access to it.
471
-
*/
468
+
if(
469
+
isRequestError(e)&&
470
+
e.message.includes('Parameter token or opts.auth is required')
471
+
){
472
+
ghCore.error(
473
+
`Could not update pull request #${prNumber} due to an authorisation error. Error was: ${e.message}. Please confirm you are using the correct token and it has the correct authorisation scopes.`,
'Could not update pull request #1 due to an authorisation error. Error was: Parameter token or opts.auth is required. Please confirm you are using the correct token and it has the correct authorisation scopes.',
1113
+
);
1114
+
});
1115
+
1093
1116
test('merge: retries if error and retries < retryCount',async()=>{
0 commit comments