feat: show GitHub commit history in topbar notifications

This commit is contained in:
KodekaTeam committed 2026-06-22 21:22:02 +07:00
1 parent 1435f5a6d7
commit 021163cf44
4 files changed
+388 -239

No files matched your search

+26
View File
@@ -1065,6 +1065,32 @@ export interface CreatedApiKeyRecord extends ApiKeyRecord {
rawKey: string;
}
export interface CommitHistoryNotificationRecord {
id: string;
sha: string;
shortSha: string;
title: string;
message: string;
authorName: string;
authorUsername: string;
authorAvatarUrl: string | null;
url: string;
committedAt: string;
}
export const topbarNotificationsApi = {
listCommits: () =>
get<{
success: boolean;
data: CommitHistoryNotificationRecord[];
meta: {
repository: string;
branch: string;
path: string;
};
}>("/notifications/commits", { timeoutMs: 15000 }),
};
export const apiKeys = {
list: () => get<{ success: boolean; data: ApiKeyRecord[] }>("/api-keys"),