Git

查询提交元数据。Get commit annotations.

查询指定提交上附加的所有自定义元数据(Annotations)列表。元数据以键值对形式存储,可记录构建信息、CI 状态等额外数据。 List all custom metadata (Annotations) attached to the specified commit. Metadata is stored as key-value pairs for recording build information, CI status, and other additional data. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/git/commit-annotations/{sha}

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/{sha}
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

shastring required

提交的哈希值。Commit hash.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.