Discord · Schema

GithubWebhook

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
action stringnull
ref stringnull
ref_type stringnull
comment object
issue object
pull_request object
repository object
forkee object
sender object
member object
release object
head_commit object
commits arraynull
forced booleannull
compare stringnull
review object
check_run object
check_suite object
discussion object
answer object
View JSON Schema on GitHub

JSON Schema

discord-githubwebhook-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GithubWebhook",
  "title": "GithubWebhook",
  "type": "object",
  "properties": {
    "action": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 152133
    },
    "ref": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 152133
    },
    "ref_type": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 152133
    },
    "comment": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubComment"
        }
      ]
    },
    "issue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubIssue"
        }
      ]
    },
    "pull_request": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubIssue"
        }
      ]
    },
    "repository": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubRepository"
        }
      ]
    },
    "forkee": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubRepository"
        }
      ]
    },
    "sender": {
      "$ref": "#/components/schemas/GithubUser"
    },
    "member": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubUser"
        }
      ]
    },
    "release": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubRelease"
        }
      ]
    },
    "head_commit": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubCommit"
        }
      ]
    },
    "commits": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/GithubCommit"
      },
      "maxItems": 1521
    },
    "forced": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "compare": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2048,
      "format": "uri"
    },
    "review": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubReview"
        }
      ]
    },
    "check_run": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubCheckRun"
        }
      ]
    },
    "check_suite": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubCheckSuite"
        }
      ]
    },
    "discussion": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubDiscussion"
        }
      ]
    },
    "answer": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GithubComment"
        }
      ]
    }
  },
  "required": [
    "sender"
  ]
}