Skip to main content
GET
/
v1
/
git
/
repos
/
{repo}
/
pulls
List pull requests for a git repository
curl --request GET \
  --url https://unify.bundleup.io/v1/git/repos/{repo}/pulls \
  --header 'Authorization: Bearer <token>' \
  --header 'BU-Connection-ID: <bu-connection-id>'
{
  "response": {
    "data": [
      {
        "id": 123,
        "number": 123,
        "title": "<string>",
        "description": "<string>",
        "draft": true,
        "state": "<string>",
        "url": "<string>",
        "user": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>",
        "merged_at": "<string>"
      }
    ],
    "metadata": {
      "next": "<string>"
    },
    "_raw": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

API Key for authentication

BU-Connection-ID
string
required

Connection ID for the integration

BU-Include-Raw
enum<string> | null
default:false

Whether to include raw response from the provider

Available options:
true,
false

Path Parameters

repo
string
required

Repository name

Query Parameters

limit
number
default:100

Number of pull requests to return

Required range: 1 <= x <= 100
after
string

Cursor for pagination

params
string

Optional passthrough parameter

Example:

"{\"team_id\":\"12345\"}"

Response

Successful Response For pulls

response
object
required