Commit f35ce0a7 authored by 黎博's avatar 黎博

修改获取分支的数量

parent cce30282
......@@ -157,7 +157,11 @@ const gitBranch = async (svcName) => {
}
})
const branchInfo = await awaitRequest({
url: `http://${proConfig.git_lab}/api/${version}/projects/${projectId}/repository/branches?private_token=${token}&per_page=10000`,
url: `http://${proConfig.git_lab}/api/${version}/projects/${projectId}/repository/branches?private_token=${token}&page=1&per_page=100`,
method: 'GET',
})
branchInfo += await awaitRequest({
url: `http://${proConfig.git_lab}/api/${version}/projects/${projectId}/repository/branches?private_token=${token}&page=2&per_page=100`,
method: 'GET',
})
return branchInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment