Git

设置提交元数据。Set commit annotations.

为指定提交设置自定义元数据。传入的元数据键值对将覆盖已有的同名键。可一次设置多个键值对。 Set custom metadata for the specified commit. Incoming key-value pairs will overwrite existing keys with the same name. Multiple key-value pairs can be set at once. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw

put/{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.

Request body

Response

OK

Changes

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