GitHub & Code
listPullRequests
List Pull Requests
List pull requests for a GitHub repository.
Arguments
ownerstringrequiredRepository ownerpageintegeroptional1-indexed page number. Pass the previous call's nextPage.perPagenumberoptionalResults per pagerepostringrequiredRepository namestatestringoptionalPR state filter
Returns
Paginated: one call returns at most perPage results (100 max), and the result carries hasMore plus nextPage.
Declared limits
page: minimum 1page: maximum 9007199254740991perPage: minimum 1perPage: maximum 100
Ask for it
The Cloud routes these requests to this verb.
- open PRs on X
- pull requests in <repo>
Pair it with
The verbs that finish the job.