fix: keep star-tracker count fresh on webhook#56
Merged
Conversation
stargazers_count was only written by backfill, so live star webhooks updated the chart but left the "Tracked repos — N stars" line frozen at the last backfill value. Use the post-action count GitHub includes on the star payload to refresh it on every event. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
wavekat-eason
pushed a commit
that referenced
this pull request
May 15, 2026
🤖 I have created a release *beep* *boop* --- ## [0.0.21](wavekat-com-v0.0.20...wavekat-com-v0.0.21) (2026-05-15) ### Features * add star-tracker worker ([#52](#52)) ([6f13ee1](6f13ee1)) * add wavekat-asr to ecosystem ([#50](#50)) ([f26f29b](f26f29b)) * auto-theme star-tracker embed snippet ([#55](#55)) ([4989603](4989603)) * star-tracker recent trend, range, per-repo charts ([#54](#54)) ([7189f91](7189f91)) ### Bug Fixes * keep star-tracker count fresh on webhook ([#56](#56)) ([1fdf264](1fdf264)) * stop long embed snippets blowing out page width ([#57](#57)) ([7b6b096](7b6b096)) * wrap star-tracker header on mobile ([#53](#53)) ([82e92b9](82e92b9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
repos.stargazers_countwas only written by backfill (register + nightly cron), so live star webhooks updated the chart series but left the "Tracked repos — N stars" line stale.repository.stargazers_countGitHub includes on the star payload to refresh the cached count on every event.Repro
On
/wavekat, wavekat-sip showed+1in Recent activity but0 starsin the Tracked repos list. The repo was backfilled at 0 stars; the subsequent webhook never bumped the count.Test plan
/:slugupdates without waiting for nightly reconcile.deletedtoo).🤖 Generated with Claude Code