Skip to content

Commit d8b2fc3

Browse files
its-miromaroot
authored andcommitted
credit github authors even without token
1 parent 507205c commit d8b2fc3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.vitepress/data/authors.data.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ export default {
4444
number: author.files,
4545
} as DefaultTheme.TeamMember & { number: number };
4646
} catch (error) {
47-
console.error(error);
48-
return null;
47+
//console.error(error);
48+
return {
49+
name: author.login,
50+
number: author.files,
51+
};
4952
}
5053
})
5154
);

.vitepress/data/maintainers.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
username: member.login,
3030
});
3131
} catch (error) {
32-
//console.error(error);
32+
console.error(error);
3333
return [{ login: "FabricMC" }];
3434
}
3535
})(),

0 commit comments

Comments
 (0)