cnb-rs repo contributor
cnb-rs repo contributor [<repo>] [flags]查看仓库贡献者排行及趋势数据,包括每位贡献者的提交数、新增行数和删除行数。
不指定仓库路径时,使用当前 Git 目录对应的仓库。
选项
[<repo>]: 仓库路径(如org/repo),可选-L, --limit <N>: 贡献者数量上限(默认:30,上限100)--exclude-external: 排除外部用户
继承的全局选项:
--json: 以 JSON 格式输出--domain <DOMAIN>: 指定目标域名(默认:cnb.cool)
示例
bash
# 查看当前仓库贡献者 Top 10
$ cnb-rs repo contributor --limit 10
# 查看指定仓库
$ cnb-rs repo contributor org/repo
# 排除外部用户
$ cnb-rs repo contributor --exclude-external
# JSON 输出
$ cnb-rs repo contributor --jsonAPI
| 步骤 | API | 方法 | 说明 |
|---|---|---|---|
| 获取趋势数据 | ${CNB_API_ENDPOINT}/{slug}/-/contributor/trend | GET | 贡献者趋势 |
API 详情(OpenAPI:GetRepoContributorTrend):
- 权限要求:
repo-code:r