Sazabi
APIPull requests

List pull requests

GET
/pull-requests

List pull requests that Sazabi opened, optionally filtered by status, repository, and requesting user.

Query Parameters

projectId?string

Project to list pull requests for. Auto-filled from CLI and SDK context when omitted.

Formatuuid
limit?integer

Maximum number of pull requests to return per page.

Range1 <= value <= 100
Default50
cursor?string

Cursor from a previous response's nextCursor to fetch the next page.

Formatuuid
status?string

Filter by pull request status (open, merged, or closed).

Value in

  • "open"
  • "merged"
  • "closed"
repositoryFullName?string

Filter by repository full name, for example owner/repo. Case-insensitive.

requestedByUserId?string

Filter by the Sazabi user who requested the pull request. Pass 'me' to filter to the authenticated user.

Response Body

application/json

curl -X GET "https://example.com/pull-requests"
{  "pullRequests": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "repositoryFullName": "string",      "pullRequestId": "string",      "githubPullRequestId": -9007199254740991,      "title": "string",      "url": "string",      "status": "open",      "reviewState": "review_required",      "checksState": "passing",      "requestedByUserId": "string",      "authorLogin": "string",      "githubAuthorLogin": "string",      "threadId": "51f72284-0555-48fe-a20a-4369ee94dc3e",      "runId": "78c33d18-170c-44d3-a227-b3194f134f73",      "createdAt": "2019-08-24T14:15:22Z",      "mergedAt": "2019-08-24T14:15:22Z",      "closedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "53a4a333-2825-45a4-80d2-5f430d088f36"}