Git

查询提交附件列表。List commit assets.

查询指定提交上关联的所有附件列表。返回每个附件的名称、大小、下载地址等信息。 List all assets associated with the specified commit. Returns the name, size, and download URL of each asset. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/git/commit-assets/{sha1}

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

Path parameters

repostring required

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

sha1string required

提交的哈希值。Commit hash.

Response

OK

Changes

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