cnb-rs repo contributors simple
cnb-rs repo contributors simple [<REPO>]查看仓库贡献者缩略信息——用户名 / 邮箱 / 提交数的简表(区别于 top 的活跃度排名与 trend 的按周提交趋势)。
不指定仓库时使用全局 --repo 或当前 git remote 推断。
参数
[<REPO>]: 仓库路径(可选)
继承的全局选项:
--json: 以 JSON 格式输出--repo <REPO>: 全局仓库路径覆盖--domain <DOMAIN>: 指定目标域名(默认:cnb.cool)
示例
bash
# 当前仓库贡献者简表
cnb-rs repo contributors simple
# 显式指定仓库
cnb-rs repo contributors simple wwvo/cnb-rs/cnb-rs
# JSON 输出
cnb-rs repo contributors simple --json | jq '.top_100_contrib[].user_name'API
| 步骤 | API | 方法 |
|---|---|---|
| 贡献者缩略信息 | ${CNB_API_ENDPOINT}/{repo}/-/contributor/simply | GET |
OpenAPI:GetRepoContributorSimply。权限:repo-base-info:r。