跳到主要内容

Get PR Associated Issue

GET 

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

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 string

    User authorization code

    page integer

    Current page number: defaults to 1

    per_page integer

    The number of items per page, with a maximum of 100. The default is 20.

Responses​

Successful Response

Response Headers
    Schema
    • Array [
    • numberstring
      titlestring
      statestring
      urlstring
      bodystring
      user object
      idstring
      loginstring
      namestring
      labels object[]
    • Array [
    • idinteger
      namestring
      colorstring
      created_atstring
      updated_atstring

      label added time

    • ]
    • issue_created_atstring

      Issue Creation Time

      issue_updated_atstringrequired

      Issue Update Time

      issue_closed_atstringrequired

      Issue close time

    • ]