[Base] Make getting GitHub API info async
This commit is contained in:
parent
3e86694f00
commit
85365c8ace
|
@ -124,7 +124,7 @@ for (const parentRepo of ModuleRepos) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const githubInfo = await getGithubInfo(repo[0]);
|
let githubInfo = getGithubInfo(repo[0]);
|
||||||
|
|
||||||
// console.log(repo);
|
// console.log(repo);
|
||||||
|
|
||||||
|
@ -181,6 +181,8 @@ for (const parentRepo of ModuleRepos) {
|
||||||
|
|
||||||
const jsHash = createHash('sha512').update(jsCode).digest('hex');
|
const jsHash = createHash('sha512').update(jsCode).digest('hex');
|
||||||
|
|
||||||
|
githubInfo = await githubInfo; // GitHub info is gotten async during other stuff to reduce time
|
||||||
|
|
||||||
const manifestJson = {
|
const manifestJson = {
|
||||||
name: manifest.name,
|
name: manifest.name,
|
||||||
description: manifest.description,
|
description: manifest.description,
|
||||||
|
|
Loading…
Reference in New Issue