GitHubAppInstallationEventModel#
- pydantic model safir.github.webhooks.GitHubAppInstallationEventModel#
A Pydantic model for an
installation
webhook.https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "GitHubAppInstallationEventModel", "description": "A Pydantic model for an ``installation`` webhook.\n\nhttps://docs.github.com/en/webhooks/webhook-events-and-payloads#installation", "type": "object", "properties": { "action": { "description": "Action performed.", "allOf": [ { "$ref": "#/definitions/GitHubAppInstallationEventAction" } ] }, "repositories": { "title": "Repositories", "description": "Repositories accessible to this installation.", "type": "array", "items": { "$ref": "#/definitions/GitHubAppInstallationEventRepoModel" } }, "installation": { "title": "Installation", "description": "Information about the GitHub App installation.", "allOf": [ { "$ref": "#/definitions/GitHubAppInstallationModel" } ] } }, "required": [ "action", "repositories", "installation" ], "definitions": { "GitHubAppInstallationEventAction": { "title": "GitHubAppInstallationEventAction", "description": "The action performed on an GitHub App ``installation`` webhook\n(`GitHubAppInstallationEventModel`).", "enum": [ "created", "deleted", "new_permissions_accepted", "suspend", "unsuspend" ], "type": "string" }, "GitHubAppInstallationEventRepoModel": { "title": "GitHubAppInstallationEventRepoModel", "description": "A pydantic model for repository objects used by\n`GitHubAppInstallationRepositoriesEventModel`.\n\nhttps://docs.github.com/en/webhooks/webhook-events-and-payloads#installation", "type": "object", "properties": { "name": { "title": "Name", "description": "The name of the repository, e.g. 'times-square'.", "type": "string" }, "full_name": { "title": "Full Name", "description": "The full name of the repository, e.g. 'lsst-sqre/times-square'.", "type": "string" } }, "required": [ "name", "full_name" ] }, "GitHubAppInstallationModel": { "title": "GitHubAppInstallationModel", "description": "A Pydantic model for the ``installation`` field found in webhook\npayloads for GitHub Apps.", "type": "object", "properties": { "id": { "title": "Id", "description": "The installation ID.", "type": "string" } }, "required": [ "id" ] } } }
- Fields:
-
field action:
GitHubAppInstallationEventAction
[Required]# Action performed.
-
field installation:
GitHubAppInstallationModel
[Required]# Information about the GitHub App installation.
-
field repositories:
list
[GitHubAppInstallationEventRepoModel
] [Required]# Repositories accessible to this installation.