feat: add star-count metric (WatchEvents)#3
Merged
Conversation
- produce_statistics: add WatchEvent → star_counts accumulation and star-count output file (sixth metric alongside the existing five) - pack_statistics: add star-count to the VALID types list - index.html: add Star count option to the metric dropdown and its METRIC_DESC entry; clear chart/table/legend/month-picker when data fetch fails instead of leaving stale content - README, AGENTS.md, docs/GITHUB_EVENT_TYPES.md: update all references from five to six metrics and list star-count throughout
… by language name on rating tie
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
Adds a sixth language popularity metric: Star count, based on
WatchEvent(GitHub's name for starring a repository).Changes
Backend
produce_statistics: accumulatesWatchEventrows intostar_countsper repo and writes a newlanguage-ratings-YYYY-MM-star-count.jsonloutput file (same proportional formula as the other metrics).pack_statistics: addsstar-countto theVALIDtypes list so--type star-countis accepted.Frontend
index.html: adds Star count option to the metric dropdown with a description entry inMETRIC_DESC.index.html(bonus fix): when a data file is missing (404 or any fetch error), the chart, table, legend, and month picker are now cleared instead of left showing stale data from the previously selected metric.Documentation
README.md: step 4 comment, step 5for TYPE inloop, rating files table, combined files table all updated for six metrics.AGENTS.md: description and valid<type>values updated.docs/GITHUB_EVENT_TYPES.md: addsWatchEvent → star-countrow; updates "three" → "four" event types.Notes
filter_archive:WatchEventrows on active repos already survive the full filter chain.produce_statisticsfor each month and thenpack_statistics --type star-count.