代码托管 CodeArts Repo-获取仓库分支列表:响应示例
时间:2025-02-12 15:03:27
响应示例
状态码: 200
OK
{ "result" : { "total" : 1, "branches" : [ { "name" : "master", "commit" : { "id" : "2912b8f2328e798f7d544272ffaebfccccb598ab", "title" : "Initial commit", "message" : "Initial commit", "committed_date" : "2021-12-06T09:24:50.000+08:00", "short_id" : "2912b8f2", "committer_name" : "repo" }, "diverging_commit_counts" : { "behind" : 0, "ahead" : 0 } } ] }, "status" : "success"}
support.huaweicloud.com/api-codeartsrepo/ListBranchesByRepositoryId.html