Skip to content

Show sponsors in the README, refresh every 3h - #22

Merged
nmndwivedi merged 1 commit into
mainfrom
sponsors-readme
Sep 19, 2026
Merged

nmndwivedi merged 1 commit into
mainfrom
sponsors-readme

Conversation

@nmndwivedi

Copy link
Copy Markdown
Collaborator

What & why

The website's sponsor wall already feeds itself from docs/sponsors.json, but the README's Sponsors section was a hardcoded "No sponsors yet" — so our first sponsor showed on the site and not on GitHub.

  • scripts/sponsors.mjs now also rewrites the block between <!-- sponsors:start --> / <!-- sponsors:end --> in README.md (rendering lives in scripts/lib/sponsorsReadme.mjs), and the workflow commits it alongside the snapshot.
  • The workflow polls every 3 hours instead of daily, so a new sponsor doesn't wait up to a day.
  • sponsors.json is only rewritten when the sponsor list actually changed — previously the fresh generatedAt meant a commit and a production deploy on every run.

README block is rendered from the current snapshot in this PR. Verified the renderer is idempotent and round-trips back to the empty state.

🤖 Generated with Claude Code

The README's Sponsors section was a hardcoded 'No sponsors yet'. The
sponsors script now rewrites the block between the sponsors markers from
the same snapshot the website reads, and the workflow commits it.

Also: poll every 3 hours instead of daily, and leave sponsors.json alone
when the wall hasn't changed so quiet runs don't commit or redeploy.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
tryquickdraw Ignored Ignored Preview Sep 19, 2026 10:56pm UTC

@nmndwivedi
nmndwivedi merged commit 3adcd56 into main Sep 19, 2026
3 checks passed
@nmndwivedi
nmndwivedi deleted the sponsors-readme branch September 19, 2026 22:58
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