latestSwagger 2.02026-08-1160086.6 KB
f06e9c828f44
Pull Request Creators
List pull request creators
Querying the pull request creators list in a given repository.
This API provides multiple ways to sort the query results, for example:
- sort=prs-desc (Default): Sorted in descending order based on prs field (the number of PRs they have contributed), meaning that the contributor with the most PRs is at the top.
- sort=first_pr_merged_at-desc: Sorted in descending order based on first_pr_merged_at field (the time of their first merged PR), which means you can got a list of new code contributors of the repository.
get/v1/repos/{owner}/{repo}/pull_request_creators/
Path parameters
ownerstring required
The owner of the repo.
repostring required
The name of the repo.
Query parameters
sort'login' | 'prs' | 'prs-desc' | 'first_pr_opened_at' | 'first_pr_opened_at-desc' | 'first_pr_merged_at' | 'first_pr_merged_at-desc'
Specify the field by which to sort the pull request creators list (values with a -desc suffix indicate descending sorting)
exclude_botsboolean
Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: ti-chi-bot).
pageinteger
Page number of the results to fetch.
page_sizeinteger
The number of results per page (max 100).
Response
Default Response