Elffuss BraidHub

kikocis/utopia public

Star history, taken from #163 on its own (#178)

* docs: add repository star history

Signed-off-by: Liangziyi <Danmushu@outlook.com>
(cherry picked from commit 0185b1ecca71f3627df19cc37def48ff03a6f337)

* Daily, and pinned to a commit rather than a movable tag

---------

Signed-off-by: Liangziyi <Danmushu@outlook.com>
Co-authored-by: Liangziyi <Danmushu@outlook.com>
Changesetd886dd6c4e30036d94c4c1c3547d2e00c76ad765d4c3eb4c9437bc011343d262
AuthorWaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-09-02 17:18 +08:00
CommitterGitHub <noreply@github.com> · 2026-09-02 17:18 +08:00
Parents056185cb340e

Browse the files at this changeset

2 files changed

added .github/workflows/star-history.yml +34 −0
@@ -0,0 +1,34 @@
1+name: Star History
2+
3+on:
4+ schedule:
5+ # 每天一次。星标曲线一周才动一次的话,图上那一段是平的——
6+ # 而它存在的意义正是让人看见增长的形状
7+ - cron: "0 0 * * *"
8+ workflow_dispatch:
9+
10+permissions:
11+ contents: write
12+
13+jobs:
14+ star-history:
15+ runs-on: ubuntu-latest
16+ steps:
17+ - name: Generate Star History
18+ # 钉到 commit,不是 tag。**这是仓库里第一个有 `contents: write` 的
19+ # workflow**,而 tag 可以被 action 作者改指向——写权限配可变引用,
20+ # 等于把仓库的写入托付给一份随时能换掉的代码。
21+ # 65836723 = v3.34,升级时连这行注释一起改
22+ uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6
23+ with:
24+ filename: assets/star-history.svg
25+ token: ${{ secrets.METRICS_TOKEN }}
26+ committer_token: ${{ github.token }}
27+ user: ${{ github.repository_owner }}
28+ repo: ${{ github.event.repository.name }}
29+ template: repository
30+ base: ""
31+ plugin_stargazers: yes
32+ plugin_stargazers_days: 0
33+ plugin_stargazers_charts_type: graph
34+ output_action: commit
modified README.md +8 −0
@@ -115,6 +115,14 @@
115115
116116 Please read [SECURITY.md](SECURITY.md) before exposing it to the public internet.
117117
118+## Star History
119+
120+<div align="center">
121+
122+<img src="assets/star-history.svg" alt="Star History" width="820">
123+
124+</div>
125+
118126 ## Community
119127
120128 - 💬 [Discussions](https://github.com/deeplethe/utopia/discussions): discussion, experience reports and reviews