This commit is contained in:
+7
-1
@@ -63,11 +63,17 @@ export async function getStaticProps(context) {
|
||||
// console.log(githubResp);
|
||||
|
||||
var publicGithubRepos = await githubResp.json();
|
||||
console.log(publicGithubRepos);
|
||||
} catch (error) {
|
||||
console.warn(error);
|
||||
}
|
||||
|
||||
for (const repo of publicGithubRepos) {
|
||||
if (publicGiteaRepos.documentation_url) {
|
||||
console.error(publicGithubRepos);
|
||||
publicGithubRepos = [];
|
||||
}
|
||||
|
||||
for (const repo in publicGithubRepos) {
|
||||
var resp = await fetch(
|
||||
"https://api.github.com/repos/" + repo.full_name + "/languages",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user