Skip to content

v2.1.0: Real GitHub contributions

Choose a tag to compare

@kamycoding kamycoding released this 09 Nov 12:31
· 55 commits to main since this release
9edaa41

Overview

The contribution heatmap in the stack section now shows real GitHub activity instead of placeholder data, and refreshes itself every day.

Changed

  • The heatmap shows the public GitHub contributions of kamycoding for the last 17 weeks, using GitHub's own contribution levels
  • Stats below the heatmap (best day, current streak, active days) are calculated from the same data

Added

  • Build-time fetch of the GitHub contribution calendar through the GraphQL API (scripts/fetch-contributions.ts)
  • Response validation with zod
  • A committed snapshot (src/content/contributions.json) as fallback, so the build never fails when GitHub is unavailable or the token is missing
  • Daily refresh: a GitHub Action runs at 03:00 UTC and triggers a Netlify build hook; it can also be started manually
  • ADR 0006 documents the decision

Notes

  • Only public contributions are counted, so the number can be lower than the total on the GitHub profile
  • The GitHub token lives only in the Netlify environment and never reaches the browser

Full Changelog: v2.0.0...v2.1.0