GET/repos/{owner}/{repo}/stacks

List pull request stacks

Lists pull request stacks in a repository. Use pull_request to filter for the stack containing a specific pull request, and use page and per_page to paginate the results.

5 parameters
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
pull_requestintegeroptional
Filter for the stack containing this repository pull request number.
per_pageintegeroptional
Number of results per page, up to 100. Defaults to 30 when omitted.
Default:30
pageintegeroptional
Page number of results to retrieve. Defaults to 1 when omitted.
Default:1

3 status codes
200Returns an array of pull request stack objects, including each stack's identifier, number, base reference, open status, creation time, and pull requests.
idintegerrequired
numberintegerrequired
node_idstringrequired
urlstringrequired
baseobjectrequired
openbooleanrequired
Whether the stack has any open pull request. False when all pull requests are merged or closed.
created_atstringrequired
pull_requestsarray<object>required
404Returned when the repository cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Returned when the request fails validation or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 404 is returned when the repository identified by the owner path parameter and repo path parameter is not found. A 422 is returned when the request fails validation or the endpoint has been spammed; check the pull_request, page, and per_page query parameters.