GitHubPullRequestModel#
- pydantic model safir.github.models.GitHubPullRequestModel#
A Pydantic model for a GitHub Pull Request.
This is also the
pull_requestfield inside theGitHubPullRequestEventModel.https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request
- Parameters:
data (
Any)- Fields:
-
field head:
GitHubPullRequestHeadModel[Required]# The last commit to the head branch of the PR.
-
field html_url:
HttpUrl[Required]# Web URL of the PR.
-
field state:
GitHubPullState[Required]# Whether the PR is opened or closed.
-
field user:
GitHubUserModel[Required]# The user that opened the PR.