跳到主要内容

获取代码量贡献

GET 

/api/v5/:owner/:repo/repository/commit_statistics

Request​

Path Parameters

    owner stringrequired

    仓库所属空间地址(组织或个人的地址path)

    repo stringrequired

    仓库路径(path)

Query Parameters

    access_token string

    用户授权码

    branch_name stringrequired

    分支名

    author string

    作者用户名

    only_self boolean

    查询个人

    since string

    仅返回此日期及以后的提交

    until string

    仅返回此日期及之前的提交

Responses​

成功响应

Response Headers
    Schema
      commits object[]
    • Array [
    • author_namestring
      datestring
    • ]
    • statistics object[]
    • Array [
    • project_idinteger
      branchstring
      user_namestring
      nick_namestring
      add_linesinteger
      delete_linesinteger
      commit_countinteger
    • ]
    • totalinteger