Pulls

创建合并请求评审。Create pull request review.

为指定合并请求提交一次评审。评审可包含整体评审意见和多条代码行级评论。评审提交后,评审状态(批准、请求更改或仅评论)将反映在合并请求的评审记录中。 Submit a review for the specified merge request. The review can include an overall review comment and multiple inline code comments. After submission, the review state (approved, changes requested, or commented) will be reflected in the merge request's review records. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-notes:rw

post/{repo}/-/pulls/{number}/reviews

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}/reviews
  • 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

Review的评审意见内容。

eventstring

Review事件类型.如:approve,comment,request_changes,pending

work_modeboolean

工作模式标志。Work mode flag.

Response

Created

Changes

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