{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-schema/github-repo-branches-api-integration-schema.json",
  "title": "integration",
  "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier of the GitHub app",
      "example": 37,
      "type": "integer"
    },
    "slug": {
      "description": "The slug name of the GitHub app",
      "example": "probot-owners",
      "type": "string"
    },
    "node_id": {
      "type": "string",
      "example": "MDExOkludGVncmF0aW9uMQ=="
    },
    "owner": {
      "$ref": "#/components/schemas/nullable-simple-user"
    },
    "name": {
      "description": "The name of the GitHub app",
      "example": "Probot Owners",
      "type": "string"
    },
    "description": {
      "type": "string",
      "example": "The description of the app."
    },
    "external_url": {
      "type": "string",
      "format": "uri",
      "example": "https://example.com"
    },
    "html_url": {
      "type": "string",
      "format": "uri",
      "example": "https://github.com/apps/super-ci"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2017-07-08T16:18:44-04:00"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2017-07-08T16:18:44-04:00"
    },
    "permissions": {
      "description": "The set of permissions for the GitHub app",
      "type": "object",
      "properties": {
        "issues": {
          "type": "string"
        },
        "checks": {
          "type": "string"
        },
        "metadata": {
          "type": "string"
        },
        "contents": {
          "type": "string"
        },
        "deployments": {
          "type": "string"
        }
      },
      "additionalProperties": {
        "type": "string"
      },
      "example": {
        "issues": "read",
        "deployments": "write"
      }
    },
    "events": {
      "description": "The list of events for the GitHub app",
      "example": [
        "label",
        "deployment"
      ],
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "installations_count": {
      "description": "The number of installations associated with the GitHub app",
      "example": 5,
      "type": "integer"
    },
    "client_id": {
      "type": "string",
      "example": "\"Iv1.25b5d1e65ffc4022\""
    },
    "client_secret": {
      "type": "string",
      "example": "\"1d4b2097ac622ba702d19de498f005747a8b21d3\""
    },
    "webhook_secret": {
      "type": "string",
      "example": "\"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b\""
    },
    "pem": {
      "type": "string",
      "example": "\"REDACTED_PRIVATE_KEY_EXAMPLE\\n\""
    }
  },
  "required": [
    "id",
    "node_id",
    "owner",
    "name",
    "description",
    "external_url",
    "html_url",
    "created_at",
    "updated_at",
    "permissions",
    "events"
  ]
}