From 17996bf7196c4ad05b34bb752fc9ac0a9ee11f4e Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 4 Jun 2020 18:55:52 +0200 Subject: [PATCH] fix(dev-infra): properly determine oauth scopes for git client token (#37462) Resubmit of b2bd38699b0595d0a35b501f20251f8715a9fd1c since 85b6c94cc6d4dd1cfae68fc14575d0efa57574b3 accidentally reverted the fix due to rebasing most likely. PR Close #37462 --- dev-infra/utils/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-infra/utils/git.ts b/dev-infra/utils/git.ts index 147f6a625a..1330ac158c 100644 --- a/dev-infra/utils/git.ts +++ b/dev-infra/utils/git.ts @@ -60,7 +60,7 @@ export class GitClient { /** The file path of project's root directory. */ private _projectRoot = getRepoBaseDir(); /** The OAuth scopes available for the provided Github token. */ - private _oauthScopes = Promise.resolve([]); + private _oauthScopes: Promise|null = null; /** Regular expression that matches the provided Github token. */ private _tokenRegex = new RegExp(this._githubToken, 'g');