* feat: made a handler for github stats messages same way as the rest * fix: remove settingsPageLag through incremental rendering and efficient update of local storage * refactor: passed eslint * chore: added GitHubStats types * feat: added contributor card skeletons * refactor: pass eslint * feat: removed trickle rendering and added locking to setCachedData --------- Co-authored-by: Derek <derex1987@gmail.com> Co-authored-by: Diego Perez <52579214+doprz@users.noreply.github.com>
13 lines
492 B
TypeScript
13 lines
492 B
TypeScript
import type { GitHubStatsResult } from '@shared/types/GitHubStats';
|
|
|
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
|
|
export default interface GitHubStatsMessages {
|
|
/**
|
|
* Fetch GitHub statistics for all contributors
|
|
* @param includeMergedPRs - Whether to include merged PR counts (optional, default: false)
|
|
* @returns GitHub stats including commits, lines added/deleted, and optionally merged PRs
|
|
*/
|
|
fetchGitHubStats: (includeMergedPRs?: boolean) => GitHubStatsResult;
|
|
}
|