cnb-rs repo contributors top
cnb-rs repo contributors top [<REPO>] [-n <N>]查看仓库活跃用户排名——按用户的仓库数 / 星数综合排序(区别于 trend 的提交统计视角)。
不指定仓库时使用全局 --repo 或当前 git remote 推断。
参数
[<REPO>]: 仓库路径(可选)
选项
-n, --top <N>: 返回用户数量(默认:10)
继承的全局选项:
--json: 以 JSON 格式输出--repo <REPO>: 全局仓库路径覆盖--domain <DOMAIN>: 指定目标域名(默认:cnb.cool)
示例
bash
# 当前仓库 Top 10 活跃用户
cnb-rs repo contributors top
# 指定数量
cnb-rs repo contributors top -n 5
# 显式指定仓库
cnb-rs repo contributors top wwvo/cnb-rs/cnb-rs
# JSON 输出
cnb-rs repo contributors top --json | jq '.[].username'API
| 步骤 | API | 方法 |
|---|---|---|
| 活跃用户 | ${CNB_API_ENDPOINT}/{repo}/-/top-activity-users | GET |
OpenAPI:TopContributors。权限:repo-base-info:r。