Pull Requests

List pull requests

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

get/pull-requests

Query parameters

projectIdstring uuid

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

limitinteger

Maximum number of pull requests to return per page.

cursorstring

Opaque cursor from a previous response's nextCursor to fetch the next page. Pass it back verbatim; its format is not part of the API contract.

status'open' | 'merged' | 'closed'

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

repositoryFullNamestring

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

requestedByUserIdstring

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

Response

OK

nextCursorstring nullable required

Opaque cursor to pass as 'cursor' to fetch the next page. Null when there are no more results.

Changes

Changed in 1 of the 4 revisions of this API.21

    • for the query request parameter cursor, the minLength was increased from 0 to 1

      request-parameter-min-length-increased

    • the / response's property format changed from uuid to no format for status

      response-property-type-changed

    • for the query request parameter cursor, the format was generalized from uuid to no format

      request-parameter-type-generalized