查询仓库所有分支
接口描述
中文:查询仓库所有分支
英文:DescribeGitBranches
输入参数
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
DepotId | 是 | Integer | 仓库 id |
PageNumber | 否 | Integer | 分页页码,默认为 1 |
PageSize | 否 | Integer | 分页页距,默认为 10 |
KeyWord | 否 | String | 关键词 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Branches | GitBranch | 分支列表 |
TotalCount | Integer | 总条数 |
示例
输入示例
{
"Action":"DescribeGitBranches",
"DepotId":1001,
"PageNumber":1,
"PageSize":20,
"KeyWord":""
}
输出示例
{
"Response": {
"RequestId": "7c57d93d-e731-6150-8575-b3bf68f11b05",
"TotalCount": 4,
"Branches": [
{
"BranchName": "master",
"IsDefaultBranch": true,
"IsProtected": false,
"Sha": "92811220f02b7c9f1ef5559c74ced479f271c905"
},
{
"BranchName": "branch-1",
"IsDefaultBranch": false,
"IsProtected": false,
"Sha": "92811220f02b7c9f1ef5559c74ced479f271c905"
},
{
"BranchName": "branch-2",
"IsDefaultBranch": false,
"IsProtected": false,
"Sha": "92811220f02b7c9f1ef5559c74ced479f271c905"
},
{
"BranchName": "branch-3",
"IsDefaultBranch": false,
"IsProtected": false,
"Sha": "92811220f02b7c9f1ef5559c74ced479f271c905"
}
]
}
}

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