Create a pull request
Path parameters
owner of the repo
name of the repo
Request body
Whether maintainers can edit the pull request
The primary assignee username
The list of assignee usernames
The base branch for the pull request
The description body of the pull request
The head branch for the pull request, it could be a branch name on the base repository or a form like <username>:<branch> which refers to the user's fork repository's branch.
The list of label IDs to assign to the pull request
The milestone ID to assign to the pull request
The list of reviewer usernames
The list of team reviewer names
The title of the pull request
Response
PullRequest
The number of lines added in the pull request
Whether maintainers can edit the pull request
The description body of the pull request
The number of files changed in the pull request
The number of comments on the pull request
The version of the pull request content for optimistic locking
The number of lines deleted in the pull request
The URL to download the diff patch
Whether the pull request is a draft
The HTML URL to view the pull request
The unique identifier of the pull request
Whether the pull request conversation is locked
The merge base commit SHA
The SHA of the merge commit
Whether the pull request can be merged
Whether the pull request has been merged
The pull request number
The URL to download the patch file
The pin order for the pull request
number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
The current state of the pull request
The title of the pull request
The API URL of the pull request