GitHubAppInstallationRepositoriesEventModel#
- pydantic model safir.github.webhooks.GitHubAppInstallationRepositoriesEventModel#
A Pydantic model for a
installation_repositories
webhook.https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_repositories
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "GitHubAppInstallationRepositoriesEventModel", "description": "A Pydantic model for a ``installation_repositories`` webhook.\n\nhttps://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_repositories", "type": "object", "properties": { "action": { "allOf": [ { "$ref": "#/$defs/GitHubAppInstallationRepositoriesEventAction" } ], "description": "Action performed on the installation." }, "repositories_added": { "description": "Repositories added to the installation.", "items": { "$ref": "#/$defs/GitHubAppInstallationEventRepoModel" }, "title": "Repositories Added", "type": "array" }, "repositories_removed": { "description": "Repositories removed from the installation.", "items": { "$ref": "#/$defs/GitHubAppInstallationEventRepoModel" }, "title": "Repositories Removed", "type": "array" }, "installation": { "allOf": [ { "$ref": "#/$defs/GitHubAppInstallationModel" } ], "description": "Information about the GitHub App installation." } }, "$defs": { "GitHubAppInstallationEventRepoModel": { "description": "A pydantic model for repository objects used by\n`GitHubAppInstallationRepositoriesEventModel`.\n\nhttps://docs.github.com/en/webhooks/webhook-events-and-payloads#installation", "properties": { "name": { "description": "The name of the repository, e.g. 'times-square'.", "title": "Name", "type": "string" }, "full_name": { "description": "The full name of the repository, e.g. 'lsst-sqre/times-square'.", "title": "Full Name", "type": "string" } }, "required": [ "name", "full_name" ], "title": "GitHubAppInstallationEventRepoModel", "type": "object" }, "GitHubAppInstallationModel": { "description": "A Pydantic model for the ``installation`` field found in webhook\npayloads for GitHub Apps.", "properties": { "id": { "description": "The installation ID.", "title": "Id", "type": "integer" } }, "required": [ "id" ], "title": "GitHubAppInstallationModel", "type": "object" }, "GitHubAppInstallationRepositoriesEventAction": { "description": "The action performed on a GitHub App ``installation_repositories``\nwebhook (`GitHubAppInstallationRepositoriesEventModel`).", "enum": [ "added", "removed" ], "title": "GitHubAppInstallationRepositoriesEventAction", "type": "string" } }, "required": [ "action", "repositories_added", "repositories_removed", "installation" ] }
- Fields:
action (safir.github.webhooks.GitHubAppInstallationRepositoriesEventAction)
installation (safir.github.webhooks.GitHubAppInstallationModel)
repositories_added (list[safir.github.webhooks.GitHubAppInstallationEventRepoModel])
repositories_removed (list[safir.github.webhooks.GitHubAppInstallationEventRepoModel])
- field action: GitHubAppInstallationRepositoriesEventAction [Required]#
Action performed on the installation.
- field installation: GitHubAppInstallationModel [Required]#
Information about the GitHub App installation.
- field repositories_added: list[GitHubAppInstallationEventRepoModel] [Required]#
Repositories added to the installation.
- field repositories_removed: list[GitHubAppInstallationEventRepoModel] [Required]#
Repositories removed from the installation.