查询仓库分支下提交列表
接口描述
中文:查询仓库分支下提交列表
英文:DescribeGitCommits
输入参数
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
DepotId | 是 | Integer | 仓库 id |
Ref | 是 | String | 分支名称 |
Path | 否 | String | 查询文件路径 |
PageNumber | 否 | Integer | 分页页码,默认为 1 |
PageSize | 否 | Integer | 分页页距,默认为 10 |
StartDate | 否 | String | 时间过滤起始点 |
EndDate | 否 | String | 时间过滤到达点 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Commits | []Commit | 提交详情列表 |
示例
输入示例
{
"Action":"DescribeGitCommits",
"DepotId":1001,
"PageNumber":1,
"PageSize":20,
"Ref":"master",
"Path":"",
"StartDate":"",
"EndDate":""
}
输出示例
{
"Response": {
"RequestId": "ae27609d-83a4-6a31-788c-c8d5c2ea9278",
"Commits": [
{
"ShortMessage": "commit 1",
"Sha": "bf778a27fa30a889a30af6362ba1f16a48dd58dd",
"CommitDate": 1602817039000,
"Commiter": {
"Email": "demo1@coding.com",
"Name": "洋葱猴"
}
},
{
"ShortMessage": "commit 2",
"Sha": "41f071ff685389db1d0a796dbd4770dd9c8931f0",
"CommitDate": 1602817003000,
"Commiter": {
"Email": "demo2@coding.com",
"Name": "洋葱猴"
}
}
]
}
}

感谢反馈有用
感谢反馈没用