ci(examples): deploy GitHub contribution skylines from live API#148
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the static
sales.jsonexample (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):Each matrix job pipes
curlthrough vizb using the same flags documented inQuickExample.mdx:--json-path '.contributions'--select 'count{Contributions}'--group datewith[z{Year}-y{Month}-x{Date}]--statand 3D bar chartChanges
.github/workflows/deploy-examples-json.yml— API-driven 7-user matrix; trigger no longer depends onexamples/json/**docs/src/content/docs/examples.mdx— updated JSON examples tableexamples/README.MD— documents API-fetched JSON examplesexamples/json/sales.json— removedTest plan
deploy-json-examplesworkflow completes on merge