← Public packages
@kentcdodds/lineage
Interactive commit-level lines of kody, minus generated noise, as an offline-ready chart.
src/commit-complete.ts
15 lines · 487 B · TypeScript/**
* A commits row is complete enough to skip GitHub re-fetch.
* Retry only when countable files were recorded but no buckets landed
* (the overlapping-backfill hole). A successful persist of a merge or
* other empty GitHub `files` list writes counted=0, skipped=0 and must
* still count as stored.
*/
export function commitLooksStored(
countedFiles: number,
_skippedFiles: number,
bucketCount: number,
): boolean {
if (countedFiles > 0) return bucketCount > 0
return true
}