generated from nhcarrigan/template
This commit is contained in:
+28
-12
@@ -110,25 +110,39 @@ const getRepositories = async(): Promise<Array<Repository>> => {
|
||||
"nhcarrigan-games",
|
||||
];
|
||||
for (const org of orgs) {
|
||||
const response = await fetch(`https://git.nhcarrigan.com/api/v1/orgs/${org}/repos`);
|
||||
const response = await fetch(`https://git.nhcarrigan.com/api/v1/orgs/${org}/repos?limit=50`);
|
||||
const data = await response.json();
|
||||
repos.push(...data);
|
||||
if (data.length === 50) {
|
||||
let page = 2;
|
||||
while (true) {
|
||||
const responseInner = await fetch(`https://git.nhcarrigan.com/api/v1/orgs/${org}/repos?limit=50&page=${page}`);
|
||||
const dataInner = await responseInner.json();
|
||||
repos.push(...dataInner);
|
||||
if (dataInner.length < 50) {
|
||||
break;
|
||||
}
|
||||
page = page + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return repos;
|
||||
};
|
||||
|
||||
const repoNameMap = {
|
||||
"a4p-bot": "Artists4Palestine Bot",
|
||||
"beccalia-origins": "Beccalia: Origins",
|
||||
"beccalia-prologue": "Beccalia: Prologue",
|
||||
"blog": "Naomi's Blog",
|
||||
"docs": "NHCarrigan Documentation",
|
||||
"eslint-config": "ESLint Config",
|
||||
"life-of-a-naomi": "Life of a Naomi",
|
||||
"naomis-adventure-1": "Naomi's Adventure I: An Isekai Story",
|
||||
"ruu-goblin-quest": "Ruu's Goblin Quest",
|
||||
"typescript-config": "TypeScript Config",
|
||||
"vscode-themes": "Naomi's VSCode Themes",
|
||||
"a4p-bot": "Artists4Palestine Bot",
|
||||
"beccalia-origins": "Beccalia: Origins",
|
||||
"beccalia-prologue": "Beccalia: Prologue",
|
||||
"blog": "Naomi's Blog",
|
||||
"data": "Data API",
|
||||
"docs": "NHCarrigan Documentation",
|
||||
"eslint-config": "ESLint Config",
|
||||
"fcc-review-generator": "freeCodeCamp Review Generator",
|
||||
"life-of-a-naomi": "Life of a Naomi",
|
||||
"naomis-adventure-1": "Naomi's Adventure I: An Isekai Story",
|
||||
"ruu-goblin-quest": "Ruu's Goblin Quest",
|
||||
"typescript-config": "TypeScript Config",
|
||||
"vscode-themes": "Naomi's VSCode Themes",
|
||||
};
|
||||
|
||||
const excludedRepos = new Set<string>([
|
||||
@@ -139,6 +153,8 @@ const excludedRepos = new Set<string>([
|
||||
"nginx-configs",
|
||||
".profile",
|
||||
".gitea",
|
||||
"womp-womp",
|
||||
"sakura",
|
||||
]);
|
||||
|
||||
const convertKebabCaseToTitleCase = (string_: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user