Hanzo
OpenapiGit

Returns one pull request by its per-repo number.

Returns one pull request by its per-repo number.

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

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

Returns one pull request by its per-repo number. A number belonging to another tenant's repo is not found, exactly as the repo itself is not.

Request

2 fields.

FieldInTypeRequiredDescription
namepathstringyesName is the repo, from the :name path segment.
numberpathintegeryesNumber is the proposal's per-repo number, from the :number path segment.

Response

StatusBodyMeaning
200pullViewok

200 body — 11 fields.

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

Failure carries the platform error shape — see Errors.

Examples

hanzo git repos pulls get <name> 1

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page