跳到主要内容

Pull Request Commit File List

GET 

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

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

Responses​

Successful Response

Response Headers
    total_added_lines
    Example:
    total_removed_lines
    Example:
Schema
  • Array [
  • shastring
    filenamestring
    statusstring
    additionsstring
    deletionsstring
    blob_urlstring
    raw_urlstring
    patch object
    diffstring
    new_pathstring
    old_pathstring
    a_modestring
    b_modestring
    new_fileinteger
    renamed_fileinteger
    deleted_fileinteger
    too_largeinteger
    added_linesinteger
    removed_linesinteger
    target_branchstring

    Target branch

    source_branchstring

    Source branch

    target_project object

    Target Repository

    idstring
    full_namestring
    human_namestring
    pathstring
    source_project object

    Source Repository

    idstring
    full_namestring
    human_namestringrequired
    pathstringrequired
  • ]