mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-24 11:47:43 +00:00
Signed-off-by: Quan Zhuo <quanzhuo@kylinos.cn>
This commit is contained in:
@@ -61,7 +61,7 @@ export class GithubRemoteSourceProvider implements RemoteSourceProvider {
|
||||
if (!query) {
|
||||
const user = await octokit.users.getAuthenticated({});
|
||||
const username = user.data.login;
|
||||
const res = await octokit.repos.listForUser({ username, sort: 'updated', per_page: 100 });
|
||||
const res = await octokit.repos.listForAuthenticatedUser({ username, sort: 'updated', per_page: 100 });
|
||||
this.userReposCache = res.data.map(asRemoteSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user