每天 03:30 (Asia/Taipei) 由 Cron 自動執行
⚠️ 本檔範圍 = README all-contributors 名單 auto-sync 機制。 Contributor 關係週期(onboarding / 升降級 / inactive 處理 / 復活)的完整 SOP 在 CONTRIBUTOR-SYSTEM-PIPELINE.md。
git pull → 掃描 merged PR authors → 比對現有名單 → 新增 → 更新 README 表格 → push
cd ~/taiwan-md && git pullgh pr list --repo frank890417/taiwan-md --state merged --limit 200 --json author --jq '.[].author.login' | sort -u > /tmp/pr-authors.txt
cat .all-contributorsrc | python3 -c "import sys,json; [print(c['login']) for c in json.load(sys.stdin)['contributors']]" | sort -u > /tmp/existing-contributors.txt
comm -23 /tmp/pr-authors.txt /tmp/existing-contributors.txt > /tmp/new-contributors.txt對每個新人:
gh api users/{login}查 profilegh pr list --author {login} --state merged --json title,labels分析貢獻類型- 決定 emoji:🖋️ content / 🌍 translation / 🐛 bug / 💻 code / 🤔 ideas / 📖 doc
- 加入
.all-contributorsrc
重新生成 <!-- ALL-CONTRIBUTORS-LIST:START --> 到 <!-- ALL-CONTRIBUTORS-LIST:END --> 之間的表格。每行 7 人。
git add .all-contributorsrc README.md
git diff --cached --quiet || (git commit -m "chore: auto-update contributors" && git push)Sponsors + Contact sections 已被刪掉 3 次。Contributors grid 不在 template 裡管理。
.all-contributorsrc 和 README.md。不要 git add -A。
不需要回報「今天沒有新 contributor」。
| 檔案 | 用途 |
|---|---|
.all-contributorsrc |
貢獻者清單(JSON) |
README.md |
含 contributor 表格 |
src/templates/about.template.astro |
版本:v1.0 | 2026-03-29