Skip to content

Implement weekly run for fetching sponsors and contributors#313

Merged
MiniDigger merged 1 commit into
mainfrom
feat/sponsors-contributors
Jun 23, 2026
Merged

Implement weekly run for fetching sponsors and contributors#313
MiniDigger merged 1 commit into
mainfrom
feat/sponsors-contributors

Conversation

@darbyjack

Copy link
Copy Markdown
Member

This pull request introduces a new automated workflow for updating sponsor and contributor data, centralizes data fetching, and refactors how this data is retrieved and typed in the codebase. The main improvements are the addition of a scheduled GitHub Actions workflow to update data, the creation of a script to fetch and store sponsor/contributor information, and updates to the frontend code to consume this data from static JSON files rather than directly from APIs.

Automated Data Update Workflow

  • Added a new GitHub Actions workflow (.github/workflows/update-data.yml) that runs weekly or manually to update sponsor and contributor data. It checks out the data branch, runs a data generation script, and commits any changes.

Data Generation Script

  • Introduced a new script (scripts/update-data.ts) that fetches sponsors from OpenCollective and GitHub Sponsors, as well as contributors from the PaperMC repository, and writes this data to JSON files for use by the website.
  • Added a data:update script to package.json to run the data update script manually.

Frontend Data Fetching Refactor

  • Updated the contributors utility (src/utils/github.ts) to fetch contributor data from the static JSON file in the data branch, instead of paginating through the GitHub API at runtime.
  • Updated the sponsors utility (src/utils/sponsors.ts) to fetch sponsor data from the static JSON file, and refactored types to use type aliases instead of interface for consistency with the new data source. [1] [2]

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
papermc-website f38dd2b Jun 23 2026, 06:47 PM

@MiniDigger MiniDigger merged commit 8093f5d into main Jun 23, 2026
2 of 3 checks passed
@MiniDigger MiniDigger deleted the feat/sponsors-contributors branch June 23, 2026 18:51
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.

2 participants