committers.top ranks the most active GitHub users in each location, using GitHub's public API. Its FAQ explains how the rankings work.
- The update rankings workflow refreshes each location every few days with the Go CLI in this repository. It keeps the data as a workflow artifact that expires after 14 days, so the data is never committed.
- The deploy workflow builds the Jekyll site in
site/with that data, publishes it with GitHub Pages and updates the badges.
The CLI needs a GitHub token without any scopes, as everything it reads is public. Set it in GITHUB_TOKEN, or pass it with --token if you don't mind it in your shell history.
go run . --preset germany --output csv --file germany.csv
--list-presets lists the presets, and --output takes plain, csv or yaml. The plain and CSV outputs rank by all contributions, so they leave out users above the All tab's yearly limits.
Pull requests go against master, for both the code and the website. CONTRIBUTING.md covers preset changes and previewing the website.