Git
批量查询提交元数据。Batch get commit annotations.
批量查询多个提交的元数据信息。通过请求体传入提交哈希列表(最多 20 个)和可选的键名过滤(最多 5 个),一次性返回所有匹配的元数据。适合列表页需要同时展示多个提交附加信息的场景。 Batch query metadata for multiple commits. Pass a list of commit hashes (up to 20) and optional key name filters (up to 5) in the request body. Returns all matching metadata at once. Ideal for list pages that need to display additional information for multiple commits simultaneously. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r
post/{repo}/-/git/commit-annotations-in-batch
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/commit-annotations-in-batch
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.