Domain degisikligi: fristy.net -> fristy.dev
CI / Code Health (pull_request) Successful in 24s
CI / Lint, Test & Build (pull_request) Failing after 25s

This commit is contained in:
fristy committed 2026-10-15 21:46:01 +03:00
1 parent 0c30c18e24
commit 873635f5f8
18 files changed
+165 -37

No files matched your search

+4 -1
View File
@@ -5,6 +5,8 @@ const GITEA_USER = "fristy";
const EXCLUDED_REPOS = new Set([".profile"]);
const MAX_REPOS = 8;
export interface GiteaRepo {
id: number;
name: string;
@@ -56,7 +58,8 @@ export async function getRepos(): Promise<GiteaRepo[]> {
forks: repo.forks_count,
updatedAt: repo.updated_at,
}))
.sort((a, b) => +new Date(b.updatedAt) - +new Date(a.updatedAt));
.sort((a, b) => +new Date(b.updatedAt) - +new Date(a.updatedAt))
.slice(0, MAX_REPOS);
} catch {
warnDev("cannot fetch gitea repos");
return [];