Skip to content

Dynamic shields.io badge - #58

Merged
taekchef merged 1 commit into
mainfrom
claude/dynamic-badge
Oct 15, 2026
Merged

taekchef merged 1 commit into
mainfrom
claude/dynamic-badge

Conversation

@taekchef

Copy link
Copy Markdown
Contributor

做了什么

  • 新命令 creditia badge-json:输出 shields.io endpoint 格式的 JSON(标签、前两名工具和占比、第一名的品牌色和标志)。有 credits.json 用它,没有(CI 里)就汇总全部提交上的盖章,不需要分析核心
  • creditia site 生成的署名网站里总会带一份 badge.json:发到 GitHub Pages 后,README 里放 https://img.shields.io/endpoint?url=https://<用户>.github.io/<仓库>/badge.json,徽章随每次推送更新
  • Action 加 badge-json 输入
  • README 中英文补上用法

验证

  • CLI 测试:临时仓库只有盖章时,输出 Claude Code (Claude Opus 5.5) 75%、颜色是 6 位十六进制、标志 claude
  • render、cli 测试通过

🤖 Generated with Claude Code

- 新命令 creditia badge-json:有档案用档案,没有(CI 里)就汇总全部提交上的盖章,不需要分析核心
- 署名网站(site)里总会带一份 badge.json,发布到 GitHub Pages 后 README 的徽章跟着每次推送变
- Action 加 badge-json 输入
- README 中英文补上用法,新增测试

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@taekchef
taekchef merged commit 98300df into main Oct 15, 2026
3 checks passed
@taekchef
taekchef deleted the claude/dynamic-badge branch October 15, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant