跳到主要内容

Handle Pull Request Approvals

POST 

/api/v5/repos/:owner/:repo/pulls/:number/review

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

    number integerrequired

    The ordinal number of the PR in this repository, i.e., which PR it is.

    Example: 0

Query Parameters

    access_token stringrequired

    User authorization code

Body

    forceboolean

    Is it mandatory to pass the approval (default is no), effective only for administrators

Responses​

Response Headers
    Schema
      object