39 lines
717 B
TypeScript
39 lines
717 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;
|
|
}
|
|
|
|
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;
|
|
}
|