GitHubBranchModel¶
- pydantic model safir.github.models.GitHubBranchModel¶
A Pydantic model for a GitHub branch.
https://docs.github.com/en/rest/branches/branches#get-a-branch
- Parameters:
data (
Any
)- Fields:
- field commit: GitHubBranchCommitModel [Required]¶
HEAD commit info.
- field name: str [Required]¶
Branch name (e.g. main)