GitHubPushEventModel

pydantic model safir.github.webhooks.GitHubPushEventModel

A Pydantic model for the push event webhook when a commit or tag is pushed.

https://docs.github.com/en/webhooks/webhook-events-and-payloads#push

Parameters:

data (Any)

Fields:
field after: str [Required]

The SHA of the most recent commit on ref after the push.

field before: str [Required]

The SHA of the most recent commit on ref before the push.

field installation: GitHubAppInstallationModel [Required]

Information about the GitHub App installation.

field ref: str [Required]

The full git ref that was pushed. Example: refs/heads/main or refs/tags/v3.14.1.

field repository: GitHubRepositoryModel [Required]

The repository that was pushed to.