跳到主要内容

List authorized users' Pull Request list

GET 

/api/v5/user/pulls

Request​

Query Parameters

    access_token stringrequired

    User authorization code

    state string

    Return merge requests that are open, closed, locked, merged, or all. open: open; closed: closed; locked: locked; merged: merged; all: all. Default returns all.

    sort string

    Merge requests, created at: created; updated at: updated; merged at: merged_at. Sorted by created time by default.

    direction string

    Merge requests sorted by the sort field in ascending or descending order, desc: descending; asc: ascending

    labels string

    , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,......

    created_after string

    Return merge requests created after the specified time, time format is ISO 8601 for example: 2024-11-20T13:00:21+08:00

    created_before string

    Return the merge requests created before the specified time, the time format is ISO 8601, for example: 2024-11-20T13:00:21+08:00

    updated_after string

    Return the merge requests updated after the specified time, in ISO 8601 format, for example: 2024-11-20T13:00:21+08:00

    updated_before string

    Merge requests updated before the specified time, in ISO 8601 format, for example: 2024-11-20T13:00:21+08:00

    scope string

    Return the merged pull requests within the given range, need_my_approve: pull requests that need my approval; created_by_me: pull requests created by me; assigned_to_me: pull requests assigned to me; need_my_review: pull requests that need my review. By default, return the ones I created.

    source_branch string

    Merge request with the given source branch

    target_branch string

    Return merge requests with the given target branch.

    per_page string

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

    page string

    The current page number

Responses​

Response Headers
    Schema
    • Array [
    • numberintegerrequired

      Serial number

      html_urlstringrequired

      Page Address

      urlstringrequired
      close_related_issueintegerrequired

      Close the associated issue after merging

      draftbooleanrequired

      Is it a draft status

      labels object[]required
    • Array [
    • idinteger
      namestring
      colorstring
      created_atstring
      updated_atstring

      label added time

    • ]
    • user objectrequired

      Author

      idstringrequired
      user_idstringrequired
      object_idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      assignees object[]required

      Reviewers List

    • Array [
    • user_idstringrequired
      object_idstringrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      assigneebooleanrequired
      code_ownerbooleanrequired
      acceptbooleanrequired
    • ]
    • testers object[]required

      Test Person List

    • Array [
    • user_idstringrequired
      object_idstringrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      assigneebooleanrequired
      acceptbooleanrequired
    • ]
    • head objectrequired

      commit message

      labelstringrequired
      refstringrequired
      user objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      repo objectrequired
      idintegerrequired
      full_pathstringrequired
      full_namestringrequired
      human_namestringrequired
      namestringrequired
      pathstringrequired
      descriptionstringrequired
      owner objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      assigner objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      internalbooleanrequired
      html_urlstringrequired
      base objectrequired

      Target branch information

      labelstringrequired
      refstringrequired
      user objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      repo objectrequired
      idintegerrequired
      full_pathstringrequired
      full_namestringrequired
      human_namestringrequired
      namestringrequired
      pathstringrequired
      descriptionstringrequired
      owner objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      assigner objectrequired
      idstringrequired
      loginstringrequired
      namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      html_urlstringrequired
      internalbooleanrequired
      html_urlstringrequired
      idintegerrequired
      iidintegerrequired
      project_idintegerrequired

      Project ID

      titlestringrequired

      Title

      bodystringrequired

      description

      statestringrequired

      Status, open/closed/merged

      assignees_numberintegerrequired

      Number of reviewers

      testers_numberintegerrequired

      Number of testers

      created_atstringrequired

      creation time

      updated_atstringrequired

      Update time

      merged_atstringrequired

      Merge Time

      closed_atstringrequired

      Close time

      target_branchstringrequired

      Target branch

      source_branchstringrequired

      Source branch

      source_project_idintegerrequired

      Source project id

      web_urlstringrequired
      merge_request_typestringrequired

      Pull Request Type

      added_linesintegerrequired

      New line added

      removed_linesintegerrequired

      Number of deleted lines.

      diff_refs objectrequired

      Difference Citation

      base_shastringrequired
      head_shastringrequired
      start_shastringrequired
      notesintegerrequired

      Comment count

      source_git_urlstringrequired
      mergeablebooleanrequired

      Is it possible to merge?

      lockedbooleanrequired

      Locked

      closed_by objectrequired

      Closer information.

      idintegerrequired
      namestringrequired
      usernamestringrequired
      iam_idstringrequired
      nick_namestringrequired
      statestringrequired
      avatar_urlstringrequired
      emailstringrequired
      name_cnstringrequired
      web_urlstringrequired
      visibility_reasonstring

      Visibility, public: Publicly visible, other: Visible to project members only

      merged_by object

      Merged Person

      idstringrequired
      loginstringrequired
      namestringrequired
      avatar_urlstringrequired
      html_urlstringrequired
    • ]