fix(dev-infra): properly determine oauth scopes for git client token (#37462)
Resubmit ofb2bd38699b
since85b6c94cc6
accidentally reverted the fix due to rebasing most likely. PR Close #37462
This commit is contained in:
parent
2a330a60ed
commit
17996bf719
|
@ -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<string[]>([]);
|
||||
private _oauthScopes: Promise<string[]>|null = null;
|
||||
/** Regular expression that matches the provided Github token. */
|
||||
private _tokenRegex = new RegExp(this._githubToken, 'g');
|
||||
|
||||
|
|
Loading…
Reference in New Issue