跳转到内容

cnb-rs repo contributors trend

cnb-rs repo contributors trend [<REPO>] [-L <N>] [--exclude-external]

查看仓库贡献者提交趋势——按周聚合每位贡献者的提交数、新增行数、删除行数(区别于 top 的活跃度排名)。

不指定仓库时使用全局 --repo 或当前 git remote 推断。

参数

  • [<REPO>]: 仓库路径(可选)

选项

  • -L, --limit <N>: 贡献者数量上限(默认:30
  • --exclude-external: 排除外部用户

继承的全局选项:

  • --json: 以 JSON 格式输出
  • --repo <REPO>: 全局仓库路径覆盖
  • --domain <DOMAIN>: 指定目标域名(默认:cnb.cool

示例

bash
# 当前仓库 Top 30 贡献者
cnb-rs repo contributors trend

# 限制数量 + 排除外部用户
cnb-rs repo contributors trend -L 10 --exclude-external

# JSON 输出
cnb-rs repo contributors trend --json | jq '.users_data[].author.user_name'

API

步骤API方法
贡献者趋势${CNB_API_ENDPOINT}/{slug}/-/contributor/trendGET

OpenAPI:GetRepoContributorTrend。权限:repo-code:r

另请参阅

Released under the MIT License.