Issues

创建 Issue 评论。Create issue comment.

在指定 Issue 下创建一条新评论。请求体中需包含评论的文本内容。创建成功后返回评论详情,包括自动生成的评论 ID 和创建时间。调用者需具有仓库的读取权限。 Create a new comment under the specified issue. The request body must include the comment text. Returns comment details including the auto-generated comment ID and creation time on success. The caller must have read access to the repository. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw

post/{repo}/-/issues/{number}/comments

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

Path parameters

repostring required

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

numberinteger required

Issue唯一标识编号。

Request body

bodystring

Issue评论内容。

work_modeboolean

Response

Created

Changes

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