Add star history chart, hourly workflow and index page

stars.mjs renders dist/<owner>/<repo>.svg for each repo in repos.txt:
a cumulative star chart with labelled breakouts, spikes and first star,
ending in an isometric star. The hourly workflow commits only when the
star count or UTC day changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 01:40:41 +00:00
co-authored by Claude Opus 5.5
parent 3053c48e6f
commit 71d4360c3c
7 changed files with 308 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
name: stars
on:
schedule:
- cron: '17 * * * *'
workflow_dispatch:
permissions:
contents: write
concurrency: stars
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- run: node stars.mjs
env:
GITHUB_TOKEN: ${{ secrets.STARS_TOKEN || github.token }}
- run: |
git add dist
git diff --cached --quiet && exit 0
git -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com' commit -m 'Update star charts'
git push