fix(public-stats): rename the live GitHub-stats allowlist/proxy to the current repo - #6498
fix(public-stats): rename the live GitHub-stats allowlist/proxy to the current repo#6498JSONbored wants to merge 2 commits into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6498 +/- ##
=======================================
Coverage 95.56% 95.56%
=======================================
Files 589 589
Lines 47121 47121
Branches 14989 14989
=======================================
Hits 45032 45032
Misses 1297 1297
Partials 792 792
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-16 12:57:02 UTC
Review summary Nits — 4 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentCI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy · Diff highlights exactly what changed. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
…e current repo wrangler.jsonc's PUBLIC_REPO_STATS_ALLOWLIST (gates the live GET /v1/public/github/ repos/:owner/:repo/stats proxy, src/github/public.ts) and github-stats-chip.tsx's own fetch/fallback URL both still targeted "JSONbored/gittensory" -- worked only via GitHub's repo-rename redirect. Points both at JSONbored/loopover directly, and updates its test + sessionStorage cache key to match. LOOPOVER_DRIFT_ISSUE_REPO is also updated to JSONbored/loopover for the same reason (currently dormant, LOOPOVER_AUTO_FILE_DRIFT_ISSUES is off, but would otherwise file drift issues against the wrong repo the moment that flag is enabled). Deliberately does NOT touch LOOPOVER_PUBLIC_STATS_REPOS, which is a separate, correctly old-name-keyed allowlist for this repo's own HISTORICAL audit_events ledger data (see its own doc comment in wrangler.jsonc) -- renaming it would point the historical stats query at a repo_full_name with zero matching rows.
464d2e3 to
2d3e184
Compare
…list rename wrangler.jsonc's LOOPOVER_DRIFT_ISSUE_REPO and PUBLIC_REPO_STATS_ALLOWLIST vars moved to JSONbored/loopover but the committed generated types weren't regenerated, tripping the cf-typegen drift check in CI.
|
Closing as superseded — every change here (wrangler.jsonc's |





Summary
wrangler.jsonc'sPUBLIC_REPO_STATS_ALLOWLIST(gates the liveGET /v1/public/github/repos/:owner/:repo/statsproxy,src/github/public.ts) andgithub-stats-chip.tsx's own fetch/fallback URL both still targetedJSONbored/gittensory— worked only via GitHub's repo-rename redirect. Points both atJSONbored/loopoverdirectly, and updates its test + sessionStorage cache key to match.LOOPOVER_DRIFT_ISSUE_REPOis also updated toJSONbored/loopoverfor the same reason (currently dormant —LOOPOVER_AUTO_FILE_DRIFT_ISSUESis off — but would otherwise file drift issues against the wrong repo the moment that flag is enabled).LOOPOVER_PUBLIC_STATS_REPOS, which is a separate, correctly old-name-keyed allowlist for this repo's own HISTORICALaudit_eventsledger data (see its own doc comment inwrangler.jsonc) — renaming it would point the historical stats query at arepo_full_namewith zero matching rows.Part of a broader gittensory→loopover residue cleanup (see sibling PRs).
Note:
wrangler.jsoncvars require awrangler deployafter merge to take effect in production.Validation
npx wrangler deploy --dry-run(config parses, values confirmed)github-stats-chip.test.tsxgreen