Pulls

创建合并请求评论。Create pull request comment.

在指定合并请求下创建一条新评论。支持创建普通评论和代码行级评论(Review Comment),创建代码行级评论时需指定文件路径和行号等定位信息。创建成功后返回评论详情。 Create a new comment under the specified pull request. Supports regular comments and inline code review comments. When creating a review comment, specify the file path, line number, and other position information. Returns comment details on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw

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

Path parameters

repostring required

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

numberstring required

Pull唯一标识编号。

Request body

bodystring

评论内容。Comment content.

work_modeboolean

工作模式标志。Work mode flag.

Response

Created

Changes

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