Skip to content

Commit 5bf3c93

Browse files
author
HitMargin
committed
feat: add contributors auto-update workflow
- Add GitHub Actions workflow to auto-generate contributors.svg - Update README to use local contributors.svg file - Use dynamic repository detection for forked repos 🤖 Generated with Claude Code
1 parent a15340f commit 5bf3c93

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Contributors
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 0 * * *' # 每天更新一次
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- uses: jaywcjlove/github-action-contributors@main
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
output: "contributors.svg"
25+
repository: ${{ github.repository }}
26+
27+
- uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
commit_message: "docs: update contributors"
30+
file_pattern: "contributors.svg"
31+
branch: main

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ TUI (REPL) 模式需要真实终端,无法直接通过 VS Code launch 启动
126126

127127
## Contributors
128128

129-
<a href="https://github.com/claude-code-best/claude-code/graphs/contributors">
130-
<img src="https://contrib.rocks/image?repo=claude-code-best/claude-code" />
129+
<a href="https://github.com/${{ github.repository }}/graphs/contributors">
130+
<img src="contributors.svg" />
131131
</a>
132132

133133
## Star History

0 commit comments

Comments
 (0)