代码托管 CodeArts Repo-查询某个仓库的特定提交信息:响应参数

时间:2023-11-01 16:20:20

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

error

Error object

响应错误

result

SpecificCommitInfo object

响应结果

status

String

响应状态

表5 Error

参数

参数类型

描述

code

String

错误码

message

String

错误信息

表6 SpecificCommitInfo

参数

参数类型

描述

id

String

提交对应的SHA id

short_id

String

提交对应的短SHA id

title

String

提交标题

author_name

String

作者

author_email

String

作者邮箱

committer_name

String

提交作者

committer_email

String

提交作者邮箱

created_at

String

创建时间

message

String

提交信息

parent_ids

Array of strings

父提交id

committed_date

String

提交时间

authored_date

String

作者提交时间

stats

stats object

变更行数

last_pipeline

last_pipeline object

流水线信息

表7 stats

参数

参数类型

描述

additions

Integer

变更增加的行数

deletions

Integer

变更删除的行数

total

Integer

变更的总行数

表8 last_pipeline

参数

参数类型

描述

id

Integer

流水线id

sha

String

提交对应的SHA id

ref

String

分支名

status

String

流水线状态

web_url

String

流水线url

support.huaweicloud.com/api-codehub/ShowSingleCommit.html