{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/github/v1/github-pull-request-message.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Message reporting that a GitHub pull request has occurred\n",
  "properties": {
    "action": {
      "description": "The GitHub `action` which triggered an event.\n",
      "type": "string"
    },
    "body": {
      "description": "The raw body of github event (for version 1)\n",
      "type": "object"
    },
    "branch": {
      "description": "The head ref of the event (for version 1)\n",
      "type": "string"
    },
    "details": {
      "description": "Metadata describing the pull request (for version 0)\n",
      "type": "object"
    },
    "eventId": {
      "description": "The GitHub webhook deliveryId. Extracted from the header 'X-GitHub-Delivery'\n",
      "pattern": "^[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}$",
      "type": "string"
    },
    "installationId": {
      "description": "The installation which had an event.\n",
      "maximum": 10000000000,
      "minimum": 0,
      "type": "integer"
    },
    "organization": {
      "description": "The GitHub `organization` which had an event.\n",
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_%]*)$",
      "type": "string"
    },
    "repository": {
      "description": "The GitHub `repository` which had an event.\n",
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_%]*)$",
      "type": "string"
    },
    "tasks_for": {
      "description": "The type of the event (for version 1)\n",
      "type": "string"
    },
    "version": {
      "description": "Message version",
      "enum": [
        1
      ]
    }
  },
  "required": [
    "version",
    "organization",
    "repository",
    "action",
    "installationId",
    "eventId",
    "body",
    "tasks_for",
    "branch"
  ],
  "title": "GitHub Pull Request Message",
  "type": "object"
}