Git
查询分支列表。List branches.
分页查询指定仓库中的分支列表。返回每个分支的名称、最近提交信息等。 Paginate the branch list of the specified repository. Returns the name and latest commit info of each branch. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r
get/{repo}/-/git/branches
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/git/branches
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Query parameters
pageinteger
分页页码。Page number.
page_sizeinteger
分页页大小。Page size.
querystring
分支名称关键字,按分支名过滤。Branch name keyword, filter by branch name.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.