neosourceDocs
Search docs

List CR revisions

GET/api/repos/{owner}/{repo}/pulls/{number}/revisions

listPullRequestRevisions

Lists the revision history of a pull request (one per force-push or rebase).

Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.

curl

curl -X GET 'https://neosource.dev/api/repos/OWNER/REPO/pulls/NUMBER/revisions'

fetch

fetch("https://neosource.dev/api/repos/OWNER/REPO/pulls/NUMBER/revisions", {
  method: "GET",
});

Path parameters

ownerrequired

Repository owner or organization slug.

string

reporequired

Repository name.

string

numberrequired

Change request number.

integerint32

Responses

200Revision list

application/json

RevisionListResponse

object

revisionsrequired

array

items

RevisionResponse

object

base_commit

string | null

40-char Git OID hex of the commit this revision's diff is taken from, captured when the revision was written. Absent means one of two things, and the wire cannot tell them apart — deliberately, because neither is actionable for a client: the revision predates base capture, or the two histories share no common ancestor (the whole head tree is the diff). Both render as "no base commit to show"; the server distinguishes them internally via `RevisionBase`.

created_atrequired

integerint64

head_change_idrequired

string

head_commitrequired

string

40-char Git OID hex.

pr_idrequired

string

revision_numberrequired

integerint32

Standard errors

Bodies documented once for the whole API — see standard errors.

  • 400Bad Request — one of: invalid_input
  • 403Forbidden — one of: forbidden
  • 404Not Found — one of: not_found
  • 423Locked — one of: busy
  • 429Rate limited — retry after the `Retry-After` header
  • 500Internal server error
  • 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
  • 504Gateway timeout — the request exceeded the server's handling budget