跳到主要内容

Get Pull Request Comment

GET 

/api/v5/repos/:owner/:repo/pulls/comments/:id

Request​

Path Parameters

    owner stringrequired

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

    repo stringrequired

    Repository path (path)

    id stringrequired

    Comment ID

Query Parameters

    access_token string

    User authorization code

Responses​

Successful Response

Response Headers
    Schema
      idinteger
      discussion_idstring

      Discussion ID

      bodystring
      comment_typestring
      user object
      idstring
      loginstring
      namestring
      typestring
      target object
      issue object
      idinteger
      titlestring
      numberstring
      created_atstring
      updated_atstring
      position object
      base_shastring

      Basic SHA

      start_shastring

      Starting SHA

      head_shastring

      Head SHA

      old_pathstring

      Old path

      new_pathstring

      New path

      position_typestring

      Location Type, "binary": File-level comment, "text": Code line comment.

      old_lineinteger

      Old Serial Number

      new_lineinteger

      New line number

      start_old_lineinteger

      Starting old serial number

      start_new_lineinteger