Files
williammarch.xyz/lib/types.ts
2026-04-02 23:02:19 +01:00

40 lines
746 B
TypeScript

export interface GiteaRepo {
id: number;
name: string;
full_name: string;
description: string;
html_url: string;
language: string | null;
stars_count: number;
forks_count: number;
updated: string;
private: boolean;
fork: boolean;
website?: string | null;
}
export interface GiteaCommit {
sha: string;
html_url: string;
created: string;
commit: {
message: string;
author: { name: string; date: string };
};
author?: { login: string; avatar_url: string };
_repo?: string;
_repoUrl?: string;
}
export interface HeatmapEntry {
timestamp: number;
contributions: number;
}
export interface CommitStats {
total: number;
currentStreak: number;
longestStreak: number;
activeDays: number;
}