GitHubAppInstallationRepositoriesEventModel#

pydantic model safir.github.webhooks.GitHubAppInstallationRepositoriesEventModel#

A Pydantic model for a installation_repositories webhook.

https://docs.github.com/en/developers/webhooks-and-events/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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_repositories",
   "type": "object",
   "properties": {
      "action": {
         "description": "Action performed on the installation.",
         "allOf": [
            {
               "$ref": "#/definitions/GitHubAppInstallationRepositoriesEventAction"
            }
         ]
      },
      "repositories_added": {
         "title": "Repositories Added",
         "description": "Repositories added to the installation.",
         "type": "array",
         "items": {
            "$ref": "#/definitions/GitHubAppInstallationEventRepoModel"
         }
      },
      "repositories_removed": {
         "title": "Repositories Removed",
         "description": "Repositories removed from the installation.",
         "type": "array",
         "items": {
            "$ref": "#/definitions/GitHubAppInstallationEventRepoModel"
         }
      },
      "installation": {
         "title": "Installation",
         "description": "Information about the GitHub App installation.",
         "allOf": [
            {
               "$ref": "#/definitions/GitHubAppInstallationModel"
            }
         ]
      }
   },
   "required": [
      "action",
      "repositories_added",
      "repositories_removed",
      "installation"
   ],
   "definitions": {
      "GitHubAppInstallationRepositoriesEventAction": {
         "title": "GitHubAppInstallationRepositoriesEventAction",
         "description": "The action performed on a GitHub App ``installation_repositories``\nwebhook (`GitHubAppInstallationRepositoriesEventModel`).",
         "enum": [
            "added",
            "removed"
         ],
         "type": "string"
      },
      "GitHubAppInstallationEventRepoModel": {
         "title": "GitHubAppInstallationEventRepoModel",
         "description": "A pydantic model for repository objects used by\n`GitHubAppInstallationRepositoriesEventModel`.\n\nhttps://docs.github.com/webhooks-and-events/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: 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.