Skip to content

ci(examples): deploy GitHub contribution skylines from live API#148

Merged
fahimfaisaal merged 3 commits into
mainfrom
ci/json-gh-contributions-examples
Jun 25, 2026
Merged

ci(examples): deploy GitHub contribution skylines from live API#148
fahimfaisaal merged 3 commits into
mainfrom
ci/json-gh-contributions-examples

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

Summary

Replaces the static sales.json example (which duplicated CSV data and did not showcase JSON-specific features) with live GitHub contribution skylines fetched from the jogruber API.

Seven well-known developers are visualized as separate dashboard tabs (?d=0?d=6):

  • torvalds
  • sindresorhus
  • yyx990803
  • gaearon
  • isaacs
  • antirez
  • gvanrossum

Each matrix job pipes curl through vizb using the same flags documented in QuickExample.mdx:

  • --json-path '.contributions'
  • --select 'count{Contributions}'
  • --group date with [z{Year}-y{Month}-x{Date}]
  • --stat and 3D bar chart

Changes

  • .github/workflows/deploy-examples-json.yml — API-driven 7-user matrix; trigger no longer depends on examples/json/**
  • docs/src/content/docs/examples.mdx — updated JSON examples table
  • examples/README.MD — documents API-fetched JSON examples
  • examples/json/sales.json — removed

Test plan

Replace static sales.json with seven jogruber API fetches (torvalds,
sindresorhus, yyx990803, gaearon, isaacs, antirez, gvanrossum). Each
matrix job pipes curl through vizb with --json-path, --select, and date
grouping, then merges into the JSON examples dashboard.
Document that JSON matrix rows only need output and user in order.
Remove stale /ui/* redirects from astro.config.mjs.
@fahimfaisaal
fahimfaisaal merged commit cbf1833 into main Jun 25, 2026
@fahimfaisaal
fahimfaisaal deleted the ci/json-gh-contributions-examples branch June 25, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant