mirror of
https://github.com/mudler/LocalAI.git
synced 2026-08-01 11:00:24 -04:00
The star, fork, contributor and release counts were typed into the templates by hand, so they only moved when somebody remembered. They had already drifted: stars read 48,042 against 48,067, forks 4,314 against 4,320, and contributors 224 against 225. They move to website/data/stats.yaml, which .github/ci/refresh-site-counters.sh rewrites from the GitHub API, run weekly by a new workflow. The contributors and releases endpoints never report a total, so the script asks for one item per page and reads the count out of the Link header. It refuses to write a zero or a non-number, which is what a rate-limited or failed call looks like, and the workflow commits only when a number actually moved. The Discord count has no API behind it, so the script reads the existing value back and carries it through. The engine count was wrong in a second way. The hero said 18, the section heading said "Eighteen engines", the timeline said "Nineteen engines of our own", and the /engines/ page derived 19 from the data file. All of them now derive from that same file, so they cannot disagree again. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Assisted-by: Claude Code:claude-opus-5[1m]
14 lines
459 B
YAML
14 lines
459 B
YAML
# Counters shown on the landing page.
|
|
#
|
|
# The four GitHub fields are rewritten by .github/ci/refresh-site-counters.sh,
|
|
# which runs weekly from .github/workflows/refresh-site-counters.yml. Editing
|
|
# them by hand works but will be overwritten on the next run.
|
|
stars: 48067
|
|
forks: 4320
|
|
contributors: 225
|
|
releases: 133
|
|
|
|
# The GitHub API cannot answer for this one, so it is maintained by hand and
|
|
# the refresh script carries it through untouched.
|
|
discord: 3187
|