Hanzo
OpenapiGit

Returns a repo's pull requests, newest number first — what is waiting to be…

Returns a repo's pull requests, newest number first — what is waiting to be reviewed, and what has already landed.

GET /v1/git/repos/{name}/pulls

Addresshttps://api.hanzo.ai/v1/git/repos/{name}/pulls
MethodGET
Operationget_git_repos_by_name_pulls
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a repo's pull requests, newest number first — what is waiting to be reviewed, and what has already landed. Narrow it with ?state=open or ?state=merged; omit state for every proposal.

Request

2 fields.

FieldInTypeRequiredDescription
namepathstringyesName is the repo, from the :name path segment.
statequerystringState narrows the list to "open" or "merged".

Response

StatusBodyMeaning
200pullListok

200 body — 12 fields.

FieldInTypeAlwaysDescription
databodypullView[]Data holds the repo's pull requests, newest number first.
data[].authorbodystringAuthor is the user who opened it; empty for a caller with no user.
data[].basebodystringBase is the branch the work is proposed into.
data[].bodybodystringBody is the longer description; empty when none was given.
data[].createdAtbodystringCreatedAt is RFC 3339 UTC.
data[].headbodystringHead is the branch holding the work.
data[].mergedRevbodystringMergedRev is what base points at now that the merge landed.
data[].numberbodyintegerNumber is the proposal's per-repo handle, dense from 1.
data[].repobodystringRepo is the repository the proposal belongs to.
data[].statebodystringState is "open" or "merged".
data[].titlebodystringTitle is the one-line summary.
data[].updatedAtbodystringUpdatedAt is RFC 3339 UTC.

Failure carries the platform error shape — see Errors.

Examples

hanzo git repos pulls list <name>

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page