Models for GitHub webhook payloads#

This page provides a quick reference for the Pydantic models provided in safir.github.webhooks with the corresponding GitHub webhook events.

Note

Safir’s coverage of GitHub webhooks is not exhaustive. You can contribute additional models as needed.

Additionally, the models are not necessarily complete. GitHub may provide additional fields that are not parsed by these models because they were not deemed relevant. To use additional fields documented by GitHub, you can either subclass these models and add additional fields, or contribute updates to the models in Safir.

GitHub events#

Event

Model

check_run

GitHubCheckRunEventModel

check_suite

GitHubCheckSuiteEventModel

installation

GitHubAppInstallationEventModel

installation_repositories

GitHubAppInstallationRepositoriesEventModel

pull_request

GitHubPullRequestEventModel

push

GitHubPushEventModel