fix: preserve daily contribution totals #7
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/fix-commit-graph-display"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this fixes
The Forgejo heatmap API returns one entry per contribution timestamp. The graph aggregation used to overwrite entries from the same day, so a day with 51 contributions could display only the final entry (for example, 1). This made the graph much lower than GitHub's view.
This change:
GitLab being offline is handled by the existing failure path. Its offline HTML response is ignored, while Forgejo and GitHub data continue to populate the graph.
Verification
bun run typecheckgit diff --checkFollow-up fix: the authenticated GitHub path now uses
contributionCalendar, which matches the daily totals shown on GitHub profiles. The previous query counted only commit contributions, so GitHub's pull requests, issues, reviews, and discussions were missing.bun run typecheckandgit diff --checkpass.Follow-up: the activity total and markdown page now say “contributions” instead of “commits”, matching GitHub's calendar semantics. The activity cache key is bumped again so deployments cannot serve the previous schema.