Query structured spec data via REST or MCP. Get exactly what your agent needs.
https://api.github.com
/enterprises/{enterprise}/actions/cache/retention-limit
Sets GitHub Actions cache retention limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache retention limit. OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-retention-limit-for-enterprise"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-retention-limit"
}
}
}
},
"required": true
}
PUT /enterprises/{enterprise}/actions/cache/retention-limit
/enterprises/{enterprise}/actions/cache/storage-limit
Sets GitHub Actions cache storage limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache storage limit. OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-storage-limit-for-enterprise"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-storage-limit"
}
}
}
},
"required": true
}
PUT /enterprises/{enterprise}/actions/cache/storage-limit
/organizations/{org}/actions/cache/retention-limit
Sets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-retention-limit-for-organization"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-retention-limit"
}
}
}
},
"required": true
}
PUT /organizations/{org}/actions/cache/retention-limit
/organizations/{org}/actions/cache/storage-limit
Sets GitHub Actions cache storage limit for an organization. All organizations and repositories under this organization may not set a higher cache storage limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-storage-limit-for-organization"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-storage-limit"
}
}
}
},
"required": true
}
PUT /organizations/{org}/actions/cache/storage-limit
/orgs/{org}/actions/permissions
Sets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"enabled_repositories"
],
"properties": {
"allowed_actions": {
"$ref": "#/components/schemas/allowed-actions"
},
"enabled_repositories": {
"$ref": "#/components/schemas/enabled-repositories"
},
"sha_pinning_required": {
"$ref": "#/components/schemas/sha-pinning-required"
}
}
},
"examples": {
"default": {
"value": {
"allowed_actions": "selected",
"enabled_repositories": "all",
"sha_pinning_required": true
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions
/orgs/{org}/actions/permissions/artifact-and-log-retention
Sets artifact and log retention settings for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-artifact-and-log-retention"
},
"examples": {
"application/json": {
"value": {
"days": 100
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/artifact-and-log-retention
/orgs/{org}/actions/permissions/fork-pr-contributor-approval
Sets the fork PR contributor approval policy for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-fork-pr-contributor-approval"
},
"examples": {
"default": {
"value": {
"approval_policy": "first_time_contributors"
},
"summary": "Set approval policy to first time contributors"
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/fork-pr-contributor-approval
/orgs/{org}/actions/permissions/fork-pr-workflows-private-repos
Sets the settings for whether workflows from fork pull requests can run on private repositories in an organization.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-fork-pr-workflows-private-repos-request"
},
"examples": {
"default": {
"$ref": "#/components/examples/actions-fork-pr-workflows-private-repos"
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos
/orgs/{org}/actions/permissions/repositories
Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer",
"description": "Unique identifier of the repository."
},
"description": "List of repository IDs to enable for GitHub Actions."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
32,
42
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/repositories
/orgs/{org}/actions/permissions/repositories/{repository_id}
Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/actions/permissions/repositories/{repository_id}
/orgs/{org}/actions/permissions/selected-actions
Sets the actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/selected-actions"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/selected-actions"
}
}
}
},
"required": false
}
PUT /orgs/{org}/actions/permissions/selected-actions
/orgs/{org}/actions/permissions/self-hosted-runners
Sets the settings for self-hosted runners for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"enabled_repositories"
],
"properties": {
"enabled_repositories": {
"enum": [
"all",
"selected",
"none"
],
"type": "string",
"description": "The policy that controls whether self-hosted runners can be used in the organization"
}
}
},
"examples": {
"application/json": {
"value": {
"enabled_repositories": "all"
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/self-hosted-runners
/orgs/{org}/actions/permissions/self-hosted-runners/repositories
Sets repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "IDs of repositories that can use repository-level self-hosted runners"
}
}
},
"examples": {
"application/json": {
"value": {
"selected_repository_ids": [
1,
2,
3
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories
/orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}
Adds a repository to the list of repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}
/orgs/{org}/actions/permissions/workflow
Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, and sets if GitHub Actions can submit approving pull request reviews. For more information, see "[Setting the permissions of the GITHUB_TOKEN for your organization](https://docs.github.com/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-set-default-workflow-permissions"
},
"examples": {
"default": {
"$ref": "#/components/examples/actions-default-workflow-permissions"
}
}
}
},
"required": false
}
PUT /orgs/{org}/actions/permissions/workflow
/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories
Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer",
"description": "Unique identifier of the repository."
},
"description": "List of repository IDs that can access the runner group."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
32,
91
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories
/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
/orgs/{org}/actions/runner-groups/{runner_group_id}/runners
Replaces the list of self-hosted runners that are part of an organization runner group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"runners"
],
"properties": {
"runners": {
"type": "array",
"items": {
"type": "integer",
"description": "Unique identifier of the runner."
},
"description": "List of runner IDs to add to the runner group."
}
}
},
"examples": {
"default": {
"value": {
"runners": [
9,
2
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners
/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
Adds a self-hosted runner to a runner group configured in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
/orgs/{org}/actions/runners/{runner_id}/labels
Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in an organization. Authenticated users must have admin access to the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"labels"
],
"properties": {
"labels": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 100,
"minItems": 0,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels."
}
}
},
"examples": {
"default": {
"value": {
"labels": [
"gpu",
"accelerated"
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/runners/{runner_id}/labels
/orgs/{org}/actions/secrets/{secret_name}
Creates or updates an organization secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"encrypted_value",
"key_id",
"visibility"
],
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint."
},
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"visibility": "selected",
"encrypted_value": "c2VjcmV0",
"selected_repository_ids": [
1296269,
1296280
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/secrets/{secret_name}
/orgs/{org}/actions/secrets/{secret_name}/repositories
Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret). Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
64780797
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories
/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. For more information about setting the visibility, see [Create or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret). Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| repository_id | path | required | integer |
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
/orgs/{org}/actions/variables/{name}/repositories
Replaces all repositories for an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The IDs of the repositories that can access the organization variable."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
64780797
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/variables/{name}/repositories
/orgs/{org}/actions/variables/{name}/repositories/{repository_id}
Adds a repository to an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| repository_id | path | required | integer |
PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}
/repos/{owner}/{repo}/actions/cache/retention-limit
Sets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-retention-limit-for-repository"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-retention-limit"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/cache/retention-limit
/repos/{owner}/{repo}/actions/cache/storage-limit
Sets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be stored before eviction occurs. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-cache-storage-limit-for-repository"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/actions-cache-storage-limit"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/cache/storage-limit
/repos/{owner}/{repo}/actions/oidc/customization/sub
Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Actions OIDC subject customization for a repository",
"required": [
"use_default"
],
"properties": {
"use_default": {
"type": "boolean",
"description": "Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored."
},
"include_claim_keys": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores."
}
},
"description": "Actions OIDC subject customization for a repository"
},
"examples": {
"default": {
"value": {
"use_default": false,
"include_claim_keys": [
"repo",
"context"
]
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/oidc/customization/sub
/repos/{owner}/{repo}/actions/permissions
Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"$ref": "#/components/schemas/actions-enabled"
},
"allowed_actions": {
"$ref": "#/components/schemas/allowed-actions"
},
"sha_pinning_required": {
"$ref": "#/components/schemas/sha-pinning-required"
}
}
},
"examples": {
"default": {
"value": {
"enabled": true,
"allowed_actions": "selected",
"sha_pinning_required": true
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions
/repos/{owner}/{repo}/actions/permissions/access
Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. This endpoint only applies to private repositories. For more information, see "[Allowing access to components in a private repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)". OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-workflow-access-to-repository"
},
"examples": {
"default": {
"$ref": "#/components/examples/actions-workflow-access-to-repository"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions/access
/repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention
Sets artifact and log retention settings for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-artifact-and-log-retention"
},
"examples": {
"default": {
"value": {
"days": 90
},
"summary": "Set retention days"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention
/repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval
Sets the fork PR contributor approval policy for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-fork-pr-contributor-approval"
},
"examples": {
"default": {
"value": {
"approval_policy": "first_time_contributors"
},
"summary": "Set approval policy to first time contributors"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval
/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos
Sets the settings for whether workflows from fork pull requests can run on a private repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-fork-pr-workflows-private-repos-request"
},
"examples": {
"default": {
"$ref": "#/components/examples/actions-fork-pr-workflows-private-repos"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos
/repos/{owner}/{repo}/actions/permissions/selected-actions
Sets the actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/selected-actions"
},
"examples": {
"selected_actions": {
"$ref": "#/components/examples/selected-actions"
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/actions/permissions/selected-actions
/repos/{owner}/{repo}/actions/permissions/workflow
Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, and sets if GitHub Actions can submit approving pull request reviews. For more information, see "[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)." OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actions-set-default-workflow-permissions"
},
"examples": {
"default": {
"$ref": "#/components/examples/actions-default-workflow-permissions"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/permissions/workflow
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in a repository. Authenticated users must have admin access to the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"labels"
],
"properties": {
"labels": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 100,
"minItems": 0,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels."
}
}
},
"examples": {
"default": {
"value": {
"labels": [
"gpu",
"accelerated"
]
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels
/repos/{owner}/{repo}/actions/secrets/{secret_name}
Creates or updates a repository secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"encrypted_value",
"key_id"
],
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"encrypted_value": "c2VjcmV0"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}
/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable
Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable
/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable
Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable
/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
Creates or updates an environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"encrypted_value",
"key_id"
],
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"encrypted_value": "c2VjcmV0"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
/notifications
Marks all notifications as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"read": {
"type": "boolean",
"description": "Whether the notification has been read."
},
"last_read_at": {
"type": "string",
"format": "date-time",
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp."
}
}
},
"examples": {
"default": {
"value": {
"read": true,
"last_read_at": "2022-06-10T00:00:00Z"
}
}
}
}
},
"required": false
}
PUT /notifications
/notifications/threads/{thread_id}/subscription
If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**. You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored. Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/rest/activity/notifications#delete-a-thread-subscription) endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ignored": {
"type": "boolean",
"default": false,
"description": "Whether to block all notifications from a thread."
}
}
},
"examples": {
"default": {
"value": {
"ignored": false
}
}
}
}
},
"required": false
}
PUT /notifications/threads/{thread_id}/subscription
/repos/{owner}/{repo}/notifications
Marks all notifications in a repository as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"last_read_at": {
"type": "string",
"format": "date-time",
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp."
}
}
},
"examples": {
"default": {
"value": {
"last_read_at": "2019-01-01T00:00:00Z"
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/notifications
/repos/{owner}/{repo}/subscription
If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/activity/watching#delete-a-repository-subscription) completely.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ignored": {
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository."
},
"subscribed": {
"type": "boolean",
"description": "Determines if notifications should be received from this repository."
}
}
},
"examples": {
"default": {
"value": {
"ignored": false,
"subscribed": true
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/subscription
/user/starred/{owner}/{repo}
Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /user/starred/{owner}/{repo}
/app/installations/{installation_id}/suspended
Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
PUT /app/installations/{installation_id}/suspended
/user/installations/{installation_id}/repositories/{repository_id}
Add a single repository to an installation. The authenticated user must have admin access to the repository. This endpoint only works for PATs (classic) with the `repo` scope.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /user/installations/{installation_id}/repositories/{repository_id}
/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults
Sets a code security configuration as a default to be applied to new repositories in your enterprise. This configuration will be applied by default to the matching repository type when created, but only for organizations within the enterprise that do not already have a default code security configuration set. The authenticated user must be an administrator for the enterprise to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"default_for_new_repos": {
"enum": [
"all",
"none",
"private_and_internal",
"public"
],
"type": "string",
"description": "Specify which types of repository this security configuration should be applied to by default."
}
}
},
"examples": {
"default": {
"value": {
"default_for_new_repos": "all"
},
"summary": "Set this configuration to be enabled by default on all new repositories."
}
}
}
},
"required": true
}
PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults
/orgs/{org}/code-security/configurations/{configuration_id}/defaults
Sets a code security configuration as a default to be applied to new repositories in your organization. This configuration will be applied to the matching repository type (all, none, public, private and internal) by default when they are created. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"default_for_new_repos": {
"enum": [
"all",
"none",
"private_and_internal",
"public"
],
"type": "string",
"description": "Specify which types of repository this security configuration should be applied to by default."
}
}
},
"examples": {
"default": {
"value": {
"default_for_new_repos": "all"
},
"summary": "Set this configuration to be enabled by default on all new repositories."
}
}
}
},
"required": true
}
PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults
/orgs/{org}/codespaces/secrets/{secret_name}
Creates or updates an organization development environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"visibility"
],
"properties": {
"key_id": {
"type": "string",
"description": "The ID of the key you used to encrypt the secret."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint."
},
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"visibility": "selected",
"encrypted_value": "c2VjcmV0",
"selected_repository_ids": [
1296269,
1296280
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/codespaces/secrets/{secret_name}
/orgs/{org}/codespaces/secrets/{secret_name}/repositories
Replaces all repositories for an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
64780797
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories
/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}
Adds a repository to an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| repository_id | path | required | integer |
PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}
/repos/{owner}/{repo}/codespaces/secrets/{secret_name}
Creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The associated user must be a repository admin.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"encrypted_value": "c2VjcmV0"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}
/user/codespaces/secrets/{secret_name}
Creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." The authenticated user must have Codespaces access to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"key_id"
],
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint."
},
"selected_repository_ids": {
"type": "array",
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"description": "An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"encrypted_value": "c2VjcmV0",
"selected_repository_ids": [
"1234567",
"2345678"
]
}
}
}
}
},
"required": true
}
PUT /user/codespaces/secrets/{secret_name}
/user/codespaces/secrets/{secret_name}/repositories
Select the repositories that will use a user's development environment secret. The authenticated user must have Codespaces access to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
"1296269",
"1296280"
]
}
}
}
}
},
"required": true
}
PUT /user/codespaces/secrets/{secret_name}/repositories
/user/codespaces/secrets/{secret_name}/repositories/{repository_id}
Adds a repository to the selected repositories for a user's development environment secret. The authenticated user must have Codespaces access to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| repository_id | path | required | integer |
PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}
/enterprises/{enterprise}/copilot/policies/coding_agent
Sets the policy for Copilot coding agent usage across an enterprise. Enterprise owners can configure whether Copilot coding agent is enabled for all organizations, disabled for all organizations, configured by individual organization admins, or enabled for selected organizations only. Only enterprise owners can set the coding agent policy for their enterprise. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:enterprise` scopes to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"policy_state"
],
"properties": {
"policy_state": {
"enum": [
"enabled_for_all_orgs",
"disabled_for_all_orgs",
"enabled_for_selected_orgs",
"configured_by_org_admins"
],
"type": "string",
"description": "The policy state for Copilot coding agent in the enterprise. Can be one of `enabled_for_all_orgs`, `disabled_for_all_orgs`, `enabled_for_selected_orgs`, or `configured_by_org_admins`."
}
}
},
"examples": {
"default": {
"value": {
"policy_state": "enabled_for_all_orgs"
},
"summary": "Enable coding agent for all organizations"
}
}
}
},
"required": true,
"description": "The coding agent policy configuration"
}
PUT /enterprises/{enterprise}/copilot/policies/coding_agent
/orgs/{org}/copilot/coding-agent/permissions
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets the policy for which repositories in an organization can use Copilot coding agent. Organization owners can configure whether Copilot coding agent is enabled for all repositories, selected repositories, or no repositories owned by the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"enabled_repositories"
],
"properties": {
"enabled_repositories": {
"enum": [
"all",
"selected",
"none"
],
"type": "string",
"description": "The policy for which repositories can use Copilot coding agent. Can be one of `all`, `selected`, or `none`."
}
}
},
"examples": {
"default": {
"value": {
"enabled_repositories": "selected"
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/copilot/coding-agent/permissions
/orgs/{org}/copilot/coding-agent/permissions/repositories
> [!NOTE] > This endpoint is in public preview and is subject to change. Replaces the list of selected repositories that are enabled for Copilot coding agent in an organization. This method can only be called when the coding agent repository policy is set to `selected`. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer",
"description": "Unique identifier of the repository."
},
"description": "List of repository IDs to enable for Copilot coding agent."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
32,
42
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/copilot/coding-agent/permissions/repositories
/orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
> [!NOTE] > This endpoint is in public preview and is subject to change. Adds a repository to the list of selected repositories enabled for Copilot coding agent in an organization. This method can only be called when the coding agent repository policy is set to `selected`. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
/orgs/{org}/copilot/content_exclusion
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets Copilot content exclusion path rules for an organization. To configure these settings, go to the organization's settings on GitHub. For more information, see "[Excluding content from GitHub Copilot](https://docs.github.com/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot#configuring-content-exclusions-for-your-organization)." Organization owners can set Copilot content exclusion rules for the organization. OAuth app tokens and personal access tokens (classic) need the `copilot` scope to use this endpoint. > [!CAUTION] > * At this time, the API does not support comments. When using this endpoint, any existing comments in your rules will be deleted. > * At this time, the API does not support duplicate keys. If you submit content exclusions through the API with duplicate keys, only the last occurrence will be saved. Earlier entries with the same key will be overwritten.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"description": "The path to the file that will be excluded."
},
{
"type": "object",
"required": [
"ifAnyMatch"
],
"properties": {
"ifAnyMatch": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ifNoneMatch"
],
"properties": {
"ifNoneMatch": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
]
}
}
},
"examples": {
"default": {
"value": {
"octo-repo": [
"/src/some-dir/kernel.rs"
]
},
"summary": "Example of content exclusion paths"
}
}
}
},
"required": true,
"description": "The content exclusion rules to set"
}
PUT /orgs/{org}/copilot/content_exclusion
/orgs/{org}/dependabot/repository-access/default-level
Sets the default level of repository access Dependabot will have while performing an update. Available values are: - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. Unauthorized users will not see the existence of this endpoint. This operation supports both server-to-server and user-to-server access.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"default_level"
],
"properties": {
"default_level": {
"enum": [
"public",
"internal"
],
"type": "string",
"example": "internal",
"description": "The default repository access level for Dependabot updates."
}
}
},
"examples": {
"204": {
"value": {
"default_level": "public"
},
"summary": "Example with a 'succeeded' status."
}
}
}
},
"required": true
}
PUT /orgs/{org}/dependabot/repository-access/default-level
/orgs/{org}/dependabot/secrets/{secret_name}
Creates or updates an organization secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"visibility"
],
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint."
},
"selected_repository_ids": {
"type": "array",
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"visibility": "selected",
"encrypted_value": "c2VjcmV0",
"selected_repository_ids": [
1296269,
1296280
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/dependabot/secrets/{secret_name}
/orgs/{org}/dependabot/secrets/{secret_name}/repositories
Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret). OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
64780797
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories
/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret). OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| repository_id | path | required | integer |
PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
/repos/{owner}/{repo}/dependabot/secrets/{secret_name}
Creates or updates a repository secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)." OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"key_id": {
"type": "string",
"description": "ID of the key you used to encrypt the secret."
},
"encrypted_value": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint."
}
}
},
"examples": {
"default": {
"value": {
"key_id": "012345678912345678",
"encrypted_value": "c2VjcmV0"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
Add a team member to an enterprise team.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
/enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}
Assign an enterprise team to an organization.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}
/gists/{gist_id}/star
Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
PUT /gists/{gist_id}/star
/orgs/{org}/interaction-limits
Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/interaction-limit"
},
"examples": {
"default": {
"value": {
"limit": "collaborators_only",
"expiry": "one_month"
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/interaction-limits
/repos/{owner}/{repo}/interaction-limits
Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/interaction-limit"
},
"examples": {
"default": {
"value": {
"limit": "collaborators_only",
"expiry": "one_day"
},
"summary": "Example request body"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/interaction-limits
/user/interaction-limits
Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/interaction-limit"
},
"examples": {
"default": {
"value": {
"limit": "collaborators_only",
"expiry": "one_month"
}
}
}
}
},
"required": true
}
PUT /user/interaction-limits
/repos/{owner}/{repo}/issues/comments/{comment_id}/pin
You can use the REST API to pin comments on issues. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/issues/comments/{comment_id}/pin
/repos/{owner}/{repo}/issues/{issue_number}/labels
Removes any previous labels and sets the new labels for an issue.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue).\""
}
}
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"minItems": 1
}
}
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"minItems": 1
},
{
"type": "string"
}
]
},
"examples": {
"default": {
"value": {
"labels": [
"bug",
"enhancement"
]
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/issues/{issue_number}/labels
/repos/{owner}/{repo}/issues/{issue_number}/lock
Users with push access can lock an issue or pull request's conversation. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"lock_reason": {
"enum": [
"off-topic",
"too heated",
"resolved",
"spam"
],
"type": "string",
"description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`"
}
}
},
"examples": {
"default": {
"value": {
"lock_reason": "off-topic"
},
"summary": "Example of locking an issue as off-topic"
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/issues/{issue_number}/lock
/repositories/{repository_id}/issues/{issue_number}/issue-field-values
Set custom field values for an issue, replacing any existing values. You can set values for organization-level issue fields that have been defined for the repository's organization. This endpoint supports the following field data types: - **`text`**: String values for text fields - **`single_select`**: Option names for single-select fields (must match an existing option name) - **`number`**: Numeric values for number fields - **`date`**: ISO 8601 date strings for date fields This operation will replace all existing field values with the provided ones. If you want to add field values without replacing existing ones, use the `POST` endpoint instead. Only users with push access to the repository can set issue field values. If you don't have the proper permissions, you'll receive a `403 Forbidden` response. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"issue_field_values": {
"type": "array",
"items": {
"type": "object",
"required": [
"field_id",
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"description": "The value to set for text, single_select, or date fields"
},
{
"type": "number",
"description": "The value to set for number fields"
}
],
"example": "Critical",
"description": "The value to set for the field. The type depends on the field's data type:\n- For text fields: provide a string value\n- For single_select fields: provide the option name as a string (must match an existing option)\n- For number fields: provide a numeric value\n- For date fields: provide an ISO 8601 date string"
},
"field_id": {
"type": "integer",
"example": 123,
"description": "The ID of the issue field to set"
}
},
"additionalProperties": false
},
"maxItems": 25,
"description": "An array of issue field values to set for this issue. Each field value must include the field ID and the value to set. All existing field values will be replaced."
}
}
},
"examples": {
"default": {
"value": {
"issue_field_values": [
{
"value": "Critical",
"field_id": 123
},
{
"value": 5,
"field_id": 456
},
{
"value": "2024-12-31",
"field_id": 789
}
]
},
"summary": "Set multiple field values"
},
"single-field": {
"value": {
"issue_field_values": [
{
"value": "High Priority",
"field_id": 123
}
]
},
"summary": "Set a single field value"
}
}
}
},
"required": true
}
PUT /repositories/{repository_id}/issues/{issue_number}/issue-field-values
/orgs/{org}/actions/oidc/customization/sub
Creates or updates the customization template for an OpenID Connect (OIDC) subject claim. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Actions OIDC Subject customization",
"properties": {
"include_claim_keys": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores."
}
},
"description": "Actions OIDC Subject customization"
},
"examples": {
"default": {
"$ref": "#/components/examples/oidc-custom-sub"
}
}
}
},
"required": true
}
PUT /orgs/{org}/actions/oidc/customization/sub
/orgs/{org}/blocks/{username}
Blocks the given user on behalf of the specified organization and returns a 204. If the organization cannot block the given user a 422 is returned.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/blocks/{username}
/orgs/{org}/issue-types/{issue_type_id}
Updates an issue type for an organization. You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/organization-update-issue-type"
},
"examples": {
"default": {
"value": {
"name": "Epic",
"color": "green",
"is_enabled": true,
"description": "An issue type for a multi-week tracking of work"
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/issue-types/{issue_type_id}
/orgs/{org}/memberships/{username}
Only authenticated organization owners can add a member to the organization or update the member's role. * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. **Rate limits** To prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"role": {
"enum": [
"admin",
"member"
],
"type": "string",
"default": "member",
"description": "The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization."
}
}
},
"examples": {
"default": {
"value": {
"role": "member"
},
"summary": "Set an organization membership role for a user"
}
}
}
},
"required": false
}
PUT /orgs/{org}/memberships/{username}
/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}
Assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." The authenticated user must be an administrator for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}
/orgs/{org}/organization-roles/users/{username}/{role_id}
Assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." The authenticated user must be an administrator for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
PUT /orgs/{org}/organization-roles/users/{username}/{role_id}
/orgs/{org}/outside_collaborators/{username}
When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://docs.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". Converting an organization member to an outside collaborator may be restricted by enterprise administrators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"async": {
"type": "boolean",
"default": false,
"description": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued."
}
}
},
"examples": {
"202": {
"value": {
"async": true
},
"summary": "Status code 202, asynchronous request"
},
"204": {
"value": null,
"summary": "Status code 204, synchronous request"
}
}
}
},
"required": false
}
PUT /orgs/{org}/outside_collaborators/{username}
/orgs/{org}/properties/schema/{custom_property_name}
Creates a new or updates an existing custom property that is defined for an organization. To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/custom-property-set-payload"
},
"examples": {
"default": {
"value": {
"required": true,
"value_type": "single_select",
"description": "Prod or dev environment",
"default_value": "production",
"allowed_values": [
"production",
"development"
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/properties/schema/{custom_property_name}
/orgs/{org}/public_members/{username}
The user can publicize their own membership. (A user cannot publicize the membership for another user.) Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/public_members/{username}
/orgs/{org}/settings/immutable-releases
Sets the immutable releases policy for repositories in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"enforced_repositories"
],
"properties": {
"enforced_repositories": {
"enum": [
"all",
"none",
"selected"
],
"type": "string",
"example": "all",
"description": "The policy that controls how immutable releases are enforced in the organization."
},
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids for which immutable releases enforcement should be applied. You can only provide a list of repository ids when the `enforced_repositories` is set to `selected`. You can add and remove individual repositories using the [Enable a selected repository for immutable releases in an organization](https://docs.github.com/rest/orgs/orgs#enable-a-selected-repository-for-immutable-releases-in-an-organization) and [Disable a selected repository for immutable releases in an organization](https://docs.github.com/rest/orgs/orgs#disable-a-selected-repository-for-immutable-releases-in-an-organization) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"enforced_repositories": "all"
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/settings/immutable-releases
/orgs/{org}/settings/immutable-releases/repositories
Replaces all repositories that have been selected for immutable releases enforcement in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"selected_repository_ids"
],
"properties": {
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository ids for which immutable releases enforcement should be applied. You can only provide a list of repository ids when the `enforced_repositories` is set to `selected`. You can add and remove individual repositories using the [Enable a selected repository for immutable releases in an organization](https://docs.github.com/rest/orgs/orgs#enable-a-selected-repository-for-immutable-releases-in-an-organization) and [Disable a selected repository for immutable releases in an organization](https://docs.github.com/rest/orgs/orgs#disable-a-selected-repository-for-immutable-releases-in-an-organization) endpoints."
}
}
},
"examples": {
"default": {
"value": {
"selected_repository_ids": [
64780797
]
}
}
}
}
},
"required": true
}
PUT /orgs/{org}/settings/immutable-releases/repositories
/orgs/{org}/settings/immutable-releases/repositories/{repository_id}
Adds a repository to the list of selected repositories that are enforced for immutable releases in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}
/repos/{owner}/{repo}/pulls/{pull_number}/merge
Merges a pull request into the base branch. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"sha": {
"type": "string",
"description": "SHA that pull request head must match to allow merge."
},
"commit_title": {
"type": "string",
"description": "Title for the automatic commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"description": "Extra detail to append to automatic commit message."
}
}
},
"examples": {
"response-if-merge-was-successful": {
"value": {
"commit_title": "Expand enum",
"commit_message": "Add a new value to the merge_method enum"
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge
/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
Updates the contents of a specified review summary comment. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"description": "The body text of the pull request review."
}
}
},
"examples": {
"default": {
"value": {
"body": "This is close to perfect! Please address the suggested inline change. And add more about this."
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals
Dismisses a specified review on a pull request. > [!NOTE] > To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/branches/branch-protection), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"message"
],
"properties": {
"event": {
"enum": [
"DISMISS"
],
"type": "string",
"example": "\"DISMISS\""
},
"message": {
"type": "string",
"description": "The message for the pull request review dismissal"
}
}
},
"examples": {
"default": {
"value": {
"event": "DISMISS",
"message": "You are dismissed"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals
/repos/{owner}/{repo}/pulls/{pull_number}/update-branch
Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. Note: If making a request on behalf of a GitHub App you must also have permissions to write the contents of the head repository.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"expected_head_sha": {
"type": "string",
"description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref."
}
}
},
"examples": {
"default": {
"value": {
"expected_head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch
/orgs/{org}/rulesets/{ruleset_id}
Update a ruleset for an organization.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| ruleset_id | path | required | integer | The ID of the ruleset. |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the ruleset."
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/org-rules"
},
"description": "An array of rules within the ruleset."
},
"target": {
"enum": [
"branch",
"tag",
"push",
"repository"
],
"type": "string",
"description": "The target of the ruleset"
},
"conditions": {
"$ref": "#/components/schemas/org-ruleset-conditions"
},
"enforcement": {
"$ref": "#/components/schemas/repository-rule-enforcement"
},
"bypass_actors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-bypass-actor"
},
"description": "The actors that can bypass the rules in this ruleset"
}
}
},
"examples": {
"default": {
"value": {
"name": "super cool ruleset",
"rules": [
{
"type": "commit_author_email_pattern",
"parameters": {
"pattern": "github",
"operator": "contains"
}
}
],
"target": "branch",
"conditions": {
"ref_name": {
"exclude": [
"refs/heads/dev*"
],
"include": [
"refs/heads/main",
"refs/heads/master"
]
},
"repository_name": {
"exclude": [
"unimportant_repository"
],
"include": [
"important_repository",
"another_important_repository"
],
"protected": true
}
},
"enforcement": "active",
"bypass_actors": [
{
"actor_id": 234,
"actor_type": "Team",
"bypass_mode": "always"
}
]
}
}
}
}
},
"required": false,
"description": "Request body"
}
PUT /orgs/{org}/rulesets/{ruleset_id}
/repos/{owner}/{repo}/automated-security-fixes
Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/automated-security-fixes
/repos/{owner}/{repo}/branches/{branch}/protection
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. Protecting a branch requires admin or owner permissions to the repository. > [!NOTE] > Passing new arrays of `users` and `teams` replaces their previous values. > [!NOTE] > The list of users, apps, and teams in total is limited to 100 items.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"required_status_checks",
"enforce_admins",
"required_pull_request_reviews",
"restrictions"
],
"properties": {
"lock_branch": {
"type": "boolean",
"default": false,
"description": "Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`."
},
"restrictions": {
"type": "object",
"nullable": true,
"required": [
"users",
"teams"
],
"properties": {
"apps": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of app `slug`s with push access"
},
"teams": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of team `slug`s with push access"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of user `login`s with push access"
}
},
"description": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable."
},
"enforce_admins": {
"type": "boolean",
"nullable": true,
"description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable."
},
"allow_deletions": {
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation."
},
"block_creations": {
"type": "boolean",
"description": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`."
},
"allow_force_pushes": {
"type": "boolean",
"nullable": true,
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\""
},
"allow_fork_syncing": {
"type": "boolean",
"default": false,
"description": "Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`."
},
"required_status_checks": {
"type": "object",
"nullable": true,
"required": [
"strict",
"contexts"
],
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"context"
],
"properties": {
"app_id": {
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status."
},
"context": {
"type": "string",
"description": "The name of the required check"
}
}
},
"description": "The list of status checks to require in order to merge into this branch."
},
"strict": {
"type": "boolean",
"description": "Require branches to be up to date before merging."
},
"contexts": {
"type": "array",
"items": {
"type": "string"
},
"deprecated": true,
"description": "**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control."
}
},
"description": "Require status checks to pass before merging. Set to `null` to disable."
},
"required_linear_history": {
"type": "boolean",
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation."
},
"required_pull_request_reviews": {
"type": "object",
"nullable": true,
"properties": {
"dismiss_stale_reviews": {
"type": "boolean",
"description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit."
},
"dismissal_restrictions": {
"type": "object",
"properties": {
"apps": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of app `slug`s with dismissal access"
},
"teams": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of team `slug`s with dismissal access"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of user `login`s with dismissal access"
}
},
"description": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories."
},
"require_code_owner_reviews": {
"type": "boolean",
"description": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them."
},
"require_last_push_approval": {
"type": "boolean",
"default": false,
"description": "Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`."
},
"bypass_pull_request_allowances": {
"type": "object",
"properties": {
"apps": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of app `slug`s allowed to bypass pull request requirements."
},
"teams": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of team `slug`s allowed to bypass pull request requirements."
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of user `login`s allowed to bypass pull request requirements."
}
},
"description": "Allow specific users, teams, or apps to bypass pull request requirements."
},
"required_approving_review_count": {
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers."
}
},
"description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable."
},
"required_conversation_resolution": {
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`."
}
}
},
"examples": {
"default": {
"value": {
"lock_branch": true,
"restrictions": {
"apps": [
"super-ci"
],
"teams": [
"justice-league"
],
"users": [
"octocat"
]
},
"enforce_admins": true,
"allow_deletions": true,
"block_creations": true,
"allow_force_pushes": true,
"allow_fork_syncing": true,
"required_status_checks": {
"strict": true,
"contexts": [
"continuous-integration/travis-ci"
]
},
"required_linear_history": true,
"required_pull_request_reviews": {
"dismiss_stale_reviews": true,
"dismissal_restrictions": {
"teams": [
"justice-league"
],
"users": [
"octocat"
]
},
"require_code_owner_reviews": true,
"require_last_push_approval": true,
"bypass_pull_request_allowances": {
"teams": [
"justice-league"
],
"users": [
"octocat"
]
},
"required_approving_review_count": 2
},
"required_conversation_resolution": true
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/branches/{branch}/protection
/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"example": {
"contexts": [
"contexts"
]
},
"required": [
"contexts"
],
"properties": {
"contexts": {
"type": "array",
"items": {
"type": "string"
},
"description": "The name of the status checks"
}
}
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "The name of the status checks"
}
]
},
"examples": {
"default": {
"value": {
"contexts": [
"continuous-integration/travis-ci"
]
},
"summary": "Example updating status checks for a branch protection rule"
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"example": {
"apps": [
"my-app"
]
},
"required": [
"apps"
],
"properties": {
"apps": {
"type": "array",
"items": {
"type": "string"
},
"description": "The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items."
}
}
},
"examples": {
"default": {
"value": {
"apps": [
"octoapp"
]
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"example": {
"teams": [
"justice-league"
]
},
"required": [
"teams"
],
"properties": {
"teams": {
"type": "array",
"items": {
"type": "string"
},
"description": "The slug values for teams"
}
}
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "The slug values for teams"
}
]
},
"examples": {
"default": {
"value": {
"teams": [
"justice-league"
]
},
"summary": "Example replacing a team in a branch protection rule"
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. | Type | Description | | ------- | ----------------------------------------------------------------------------------------------------------------------------- | | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. |
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"example": {
"users": [
"mona"
]
},
"required": [
"users"
],
"properties": {
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The username for users"
}
}
},
"examples": {
"default": {
"value": {
"users": [
"octocat"
]
},
"summary": "Example replacing a user in a branch protection rule"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
/repos/{owner}/{repo}/collaborators/{username}
Add a user to a repository with a specified level of access. If the repository is owned by an organization, this API does not add the user to the organization - a user that has repository access without being an organization member is called an "outside collaborator" (if they are not an Enterprise Managed User) or a "repository collaborator" if they are an Enterprise Managed User. These users are exempt from some organization policies - see "[Adding outside collaborators to repositories](https://docs.github.com/organizations/managing-user-access-to-your-organizations-repositories/managing-outside-collaborators/adding-outside-collaborators-to-repositories-in-your-organization)" to learn more about these collaborator types. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Adding an outside collaborator may be restricted by enterprise and organization administrators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)" and "[Setting permissions for adding outside collaborators](https://docs.github.com/organizations/managing-organization-settings/setting-permissions-for-adding-outside-collaborators)" for organization settings. For more information on permission levels, see "[Repository permission levels for an organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the role being given must be equal to or higher than the org base permission. Otherwise, the request will fail with: ``` Cannot assign {member} permission of {role name} ``` Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [API](https://docs.github.com/rest/collaborators/invitations). For Enterprise Managed Users, this endpoint does not send invitations - these users are automatically added to organizations and repositories. Enterprise Managed Users can only be added to organizations and repositories within their enterprise. **Updating an existing collaborator's permission level** The endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different `permission` parameter. The response will be a `204`, with no other indication that the permission level changed. **Rate limits** You are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"permission": {
"type": "string",
"default": "push",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any."
}
}
},
"examples": {
"new-invitation-is-created": {
"value": {
"permission": "triage"
},
"summary": "Add a collaborator with triage permissions"
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/collaborators/{username}
/repos/{owner}/{repo}/contents/{path}
Creates a new file or replaces an existing file in a repository. > [!NOTE] > If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| path | path | required | string | path parameter |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"message",
"content"
],
"properties": {
"sha": {
"type": "string",
"description": "**Required if you are updating a file**. The blob SHA of the file being replaced."
},
"author": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"date": {
"type": "string",
"example": "\"2013-01-15T17:13:22+05:00\""
},
"name": {
"type": "string",
"description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted."
},
"email": {
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted."
}
},
"description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`."
},
"branch": {
"type": "string",
"description": "The branch name. Default: the repository’s default branch."
},
"content": {
"type": "string",
"description": "The new file content, using Base64 encoding."
},
"message": {
"type": "string",
"description": "The commit message."
},
"committer": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"date": {
"type": "string",
"example": "\"2013-01-05T13:13:22+05:00\""
},
"name": {
"type": "string",
"description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted."
},
"email": {
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted."
}
},
"description": "The person that committed the file. Default: the authenticated user."
}
}
},
"examples": {
"example-for-creating-a-file": {
"value": {
"content": "bXkgbmV3IGZpbGUgY29udGVudHM=",
"message": "my commit message",
"committer": {
"name": "Monalisa Octocat",
"email": "octocat@github.com"
}
},
"summary": "Example for creating a file"
},
"example-for-updating-a-file": {
"value": {
"sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
"content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz",
"message": "a new commit message",
"committer": {
"name": "Monalisa Octocat",
"email": "octocat@github.com"
}
},
"summary": "Example for updating a file"
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/contents/{path}
/repos/{owner}/{repo}/environments/{environment_name}
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "[Environments](/actions/reference/environments#environment-protection-rules)." > [!NOTE] > To create or update name patterns that branches must match in order to deploy to this environment, see "[Deployment branch policies](/rest/deployments/branch-policies)." > [!NOTE] > To create or update secrets for an environment, see "[GitHub Actions secrets](/rest/actions/secrets)." OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"reviewers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 4532992,
"description": "The id of the user or team who can review the deployment"
},
"type": {
"$ref": "#/components/schemas/deployment-reviewer-type"
}
}
},
"nullable": true,
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed."
},
"wait_timer": {
"$ref": "#/components/schemas/wait-timer"
},
"prevent_self_review": {
"$ref": "#/components/schemas/prevent-self-review"
},
"deployment_branch_policy": {
"$ref": "#/components/schemas/deployment-branch-policy-settings"
}
},
"additionalProperties": false
},
"examples": {
"default": {
"value": {
"reviewers": [
{
"id": 1,
"type": "User"
},
{
"id": 1,
"type": "Team"
}
],
"wait_timer": 30,
"prevent_self_review": false,
"deployment_branch_policy": {
"protected_branches": false,
"custom_branch_policies": true
}
}
}
}
}
},
"required": false
}
PUT /repos/{owner}/{repo}/environments/{environment_name}
/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
Updates a deployment branch or tag policy for an environment. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
},
"examples": {
"default": {
"value": {
"name": "release/*"
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
/repos/{owner}/{repo}/immutable-releases
Enables immutable releases for a repository. The authenticated user must have admin access to the repository.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/immutable-releases
/repos/{owner}/{repo}/pages
Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages). The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"anyOf": [
{
"required": [
"build_type"
]
},
{
"required": [
"source"
]
},
{
"required": [
"cname"
]
},
{
"required": [
"public"
]
},
{
"required": [
"https_enforced"
]
}
],
"properties": {
"cname": {
"type": "string",
"nullable": true,
"description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site).\""
},
"source": {
"anyOf": [
{
"enum": [
"gh-pages",
"master",
"master /docs"
],
"type": "string",
"description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`."
},
{
"type": "object",
"required": [
"branch",
"path"
],
"properties": {
"path": {
"enum": [
"/",
"/docs"
],
"type": "string",
"description": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`."
},
"branch": {
"type": "string",
"description": "The repository branch used to publish your site's source files."
}
},
"description": "Update the source for the repository. Must include the branch name and path."
}
]
},
"build_type": {
"enum": [
"legacy",
"workflow"
],
"type": "string",
"description": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch."
},
"https_enforced": {
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository."
}
}
},
"examples": {
"default": {
"value": {
"cname": "octocatblog.com",
"source": {
"path": "/",
"branch": "main"
}
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/pages
/repos/{owner}/{repo}/private-vulnerability-reporting
Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)."
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/private-vulnerability-reporting
/repos/{owner}/{repo}/rulesets/{ruleset_id}
Update a ruleset for a repository.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| ruleset_id | path | required | integer | The ID of the ruleset. |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the ruleset."
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule"
},
"description": "An array of rules within the ruleset."
},
"target": {
"enum": [
"branch",
"tag",
"push"
],
"type": "string",
"description": "The target of the ruleset"
},
"conditions": {
"$ref": "#/components/schemas/repository-ruleset-conditions"
},
"enforcement": {
"$ref": "#/components/schemas/repository-rule-enforcement"
},
"bypass_actors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-bypass-actor"
},
"description": "The actors that can bypass the rules in this ruleset"
}
}
},
"examples": {
"default": {
"value": {
"name": "super cool ruleset",
"rules": [
{
"type": "commit_author_email_pattern",
"parameters": {
"pattern": "github",
"operator": "contains"
}
}
],
"target": "branch",
"conditions": {
"ref_name": {
"exclude": [
"refs/heads/dev*"
],
"include": [
"refs/heads/main",
"refs/heads/master"
]
}
},
"enforcement": "active",
"bypass_actors": [
{
"actor_id": 234,
"actor_type": "Team",
"bypass_mode": "always"
}
]
}
}
}
}
},
"required": false,
"description": "Request body"
}
PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}
/repos/{owner}/{repo}/topics
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"names"
],
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase."
}
}
},
"examples": {
"default": {
"value": {
"names": [
"octocat",
"atom",
"electron",
"api"
]
}
}
}
}
},
"required": true
}
PUT /repos/{owner}/{repo}/topics
/repos/{owner}/{repo}/vulnerability-alerts
Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)".
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional |
PUT /repos/{owner}/{repo}/vulnerability-alerts
/orgs/{org}/teams/{team_slug}/memberships/{username}
Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. > [!NOTE] > When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. > [!NOTE] > You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/memberships/{username}`.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"role": {
"enum": [
"member",
"maintainer"
],
"type": "string",
"default": "member",
"description": "The role that this user should have in the team."
}
}
},
"examples": {
"default": {
"value": {
"role": "maintainer"
},
"summary": "Add or update team membership for an organization member"
}
}
}
},
"required": false
}
PUT /orgs/{org}/teams/{team_slug}/memberships/{username}
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." > [!NOTE] > You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. For more information about the permission levels, see "[Repository permission levels for an organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)".
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional | ||||
| optional | ||||
| optional | ||||
| optional |
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository."
}
}
},
"examples": {
"default": {
"value": {
"permission": "push"
},
"summary": "Adding a team to an organization repository with the write role"
}
}
}
},
"required": false
}
PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
/user/blocks/{username}
Blocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
PUT /user/blocks/{username}
/user/following/{username}
Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| optional |
PUT /user/following/{username}
actions-artifact-and-log-retention
{
"type": "object",
"required": [
"days"
],
"properties": {
"days": {
"type": "integer",
"description": "The number of days to retain artifacts and logs"
}
}
}
actions-artifact-and-log-retention-response
{
"type": "object",
"required": [
"days",
"maximum_allowed_days"
],
"properties": {
"days": {
"type": "integer",
"description": "The number of days artifacts and logs are retained"
},
"maximum_allowed_days": {
"type": "integer",
"description": "The maximum number of days that can be configured"
}
}
}
actions-cache-list
{
"type": "object",
"title": "Repository actions caches",
"required": [
"total_count",
"actions_caches"
],
"properties": {
"total_count": {
"type": "integer",
"example": 2,
"description": "Total number of caches"
},
"actions_caches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 2
},
"key": {
"type": "string",
"example": "Linux-node-958aff96db2d75d67787d1e634ae70b659de937b"
},
"ref": {
"type": "string",
"example": "refs/heads/main"
},
"version": {
"type": "string",
"example": "73885106f58cc52a7df9ec4d4a5622a5614813162cb516c759a30af6bf56e6f0"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z"
},
"size_in_bytes": {
"type": "integer",
"example": 1024
},
"last_accessed_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z"
}
}
},
"description": "Array of caches"
}
},
"description": "Repository actions caches"
}
actions-cache-retention-limit-for-enterprise
{
"type": "object",
"title": "Actions cache retention limit for an enterprise",
"properties": {
"max_cache_retention_days": {
"type": "integer",
"example": 14,
"description": "For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained."
}
},
"description": "GitHub Actions cache retention policy for an enterprise."
}
actions-cache-retention-limit-for-organization
{
"type": "object",
"title": "Actions cache retention limit for an organization",
"properties": {
"max_cache_retention_days": {
"type": "integer",
"example": 14,
"description": "For repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained."
}
},
"description": "GitHub Actions cache retention policy for an organization."
}
actions-cache-retention-limit-for-repository
{
"type": "object",
"title": "Actions cache retention limit for a repository",
"properties": {
"max_cache_retention_days": {
"type": "integer",
"example": 14,
"description": "The maximum number of days to keep caches in this repository."
}
},
"description": "GitHub Actions cache retention policy for a repository."
}
actions-cache-storage-limit-for-enterprise
{
"type": "object",
"title": "Actions cache storage limit for an enterprise",
"properties": {
"max_cache_size_gb": {
"type": "integer",
"example": 10,
"description": "For repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes."
}
},
"description": "GitHub Actions cache storage policy for an enterprise."
}
actions-cache-storage-limit-for-organization
{
"type": "object",
"title": "Actions cache storage limit for an organization",
"properties": {
"max_cache_size_gb": {
"type": "integer",
"example": 10,
"description": "For repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes."
}
},
"description": "GitHub Actions cache storage policy for an organization."
}
actions-cache-storage-limit-for-repository
{
"type": "object",
"title": "Actions cache storage limit for a repository",
"properties": {
"max_cache_size_gb": {
"type": "integer",
"example": 10,
"description": "The maximum total cache size for this repository, in gigabytes."
}
},
"description": "GitHub Actions cache storage policy for a repository."
}
actions-cache-usage-by-repository
{
"type": "object",
"title": "Actions Cache Usage by repository",
"required": [
"full_name",
"active_caches_size_in_bytes",
"active_caches_count"
],
"properties": {
"full_name": {
"type": "string",
"example": "octo-org/Hello-World",
"description": "The repository owner and name for the cache usage being shown."
},
"active_caches_count": {
"type": "integer",
"example": 3,
"description": "The number of active caches in the repository."
},
"active_caches_size_in_bytes": {
"type": "integer",
"example": 2322142,
"description": "The sum of the size in bytes of all the active cache items in the repository."
}
},
"description": "GitHub Actions Cache Usage by repository."
}
actions-cache-usage-org-enterprise
{
"type": "object",
"required": [
"total_active_caches_count",
"total_active_caches_size_in_bytes"
],
"properties": {
"total_active_caches_count": {
"type": "integer",
"description": "The count of active caches across all repositories of an enterprise or an organization."
},
"total_active_caches_size_in_bytes": {
"type": "integer",
"description": "The total size in bytes of all active cache items across all repositories of an enterprise or an organization."
}
}
}
actions-can-approve-pull-request-reviews
{
"type": "boolean",
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk."
}
actions-default-workflow-permissions
{
"enum": [
"read",
"write"
],
"type": "string",
"description": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows."
}
actions-enabled
{
"type": "boolean",
"description": "Whether GitHub Actions is enabled on the repository."
}
actions-fork-pr-contributor-approval
{
"type": "object",
"required": [
"approval_policy"
],
"properties": {
"approval_policy": {
"enum": [
"first_time_contributors_new_to_github",
"first_time_contributors",
"all_external_contributors"
],
"type": "string",
"description": "The policy that controls when fork PR workflows require approval from a maintainer."
}
}
}
actions-fork-pr-workflows-private-repos
{
"type": "object",
"required": [
"run_workflows_from_fork_pull_requests",
"send_write_tokens_to_workflows",
"send_secrets_and_variables",
"require_approval_for_fork_pr_workflows"
],
"properties": {
"send_secrets_and_variables": {
"type": "boolean",
"description": "Whether to make secrets and variables available to workflows triggered by pull requests from forks."
},
"send_write_tokens_to_workflows": {
"type": "boolean",
"description": "Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request."
},
"run_workflows_from_fork_pull_requests": {
"type": "boolean",
"description": "Whether workflows triggered by pull requests from forks are allowed to run on private repositories."
},
"require_approval_for_fork_pr_workflows": {
"type": "boolean",
"description": "Whether workflows triggered by pull requests from forks require approval from a repository administrator to run."
}
}
}
actions-fork-pr-workflows-private-repos-request
{
"type": "object",
"required": [
"run_workflows_from_fork_pull_requests"
],
"properties": {
"send_secrets_and_variables": {
"type": "boolean",
"description": "Whether to make secrets and variables available to workflows triggered by pull requests from forks."
},
"send_write_tokens_to_workflows": {
"type": "boolean",
"description": "Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request."
},
"run_workflows_from_fork_pull_requests": {
"type": "boolean",
"description": "Whether workflows triggered by pull requests from forks are allowed to run on private repositories."
},
"require_approval_for_fork_pr_workflows": {
"type": "boolean",
"description": "Whether workflows triggered by pull requests from forks require approval from a repository administrator to run."
}
}
}
actions-get-default-workflow-permissions
{
"type": "object",
"required": [
"default_workflow_permissions",
"can_approve_pull_request_reviews"
],
"properties": {
"default_workflow_permissions": {
"$ref": "#/components/schemas/actions-default-workflow-permissions"
},
"can_approve_pull_request_reviews": {
"$ref": "#/components/schemas/actions-can-approve-pull-request-reviews"
}
}
}
actions-hosted-runner
{
"type": "object",
"title": "GitHub-hosted hosted runner",
"required": [
"id",
"name",
"image_details",
"machine_size_details",
"status",
"public_ip_enabled",
"platform"
],
"properties": {
"id": {
"type": "integer",
"example": 5,
"description": "The unique identifier of the hosted runner."
},
"name": {
"type": "string",
"example": "my-github-hosted-runner",
"description": "The name of the hosted runner."
},
"status": {
"enum": [
"Ready",
"Provisioning",
"Shutdown",
"Deleting",
"Stuck"
],
"type": "string",
"example": "Ready",
"description": "The status of the runner."
},
"platform": {
"type": "string",
"example": "linux-x64",
"description": "The operating system of the image."
},
"image_gen": {
"type": "boolean",
"description": "Whether custom image generation is enabled for the hosted runners."
},
"public_ips": {
"type": "array",
"items": {
"$ref": "#/components/schemas/public-ip"
},
"description": "The public IP ranges when public IP is enabled for the hosted runners."
},
"image_details": {
"$ref": "#/components/schemas/nullable-actions-hosted-runner-pool-image"
},
"last_active_on": {
"type": "string",
"format": "date-time",
"example": "2022-10-09T23:39:01Z",
"nullable": true,
"description": "The time at which the runner was last used, in ISO 8601 format."
},
"maximum_runners": {
"type": "integer",
"default": 10,
"example": 5,
"description": "The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost."
},
"runner_group_id": {
"type": "integer",
"example": 2,
"description": "The unique identifier of the group that the hosted runner belongs to."
},
"public_ip_enabled": {
"type": "boolean",
"example": true,
"description": "Whether public IP is enabled for the hosted runners."
},
"machine_size_details": {
"$ref": "#/components/schemas/actions-hosted-runner-machine-spec"
}
},
"description": "A Github-hosted hosted runner."
}
actions-hosted-runner-curated-image
{
"type": "object",
"title": "GitHub-hosted runner image details.",
"required": [
"id",
"platform",
"size_gb",
"display_name",
"source"
],
"properties": {
"id": {
"type": "string",
"example": "ubuntu-20.04",
"description": "The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
},
"source": {
"enum": [
"github",
"partner",
"custom"
],
"type": "string",
"description": "The image provider."
},
"size_gb": {
"type": "integer",
"example": 86,
"description": "Image size in GB."
},
"platform": {
"type": "string",
"example": "linux-x64",
"description": "The operating system of the image."
},
"display_name": {
"type": "string",
"example": 20.04,
"description": "Display name for this image."
}
},
"description": "Provides details of a hosted runner image"
}
actions-hosted-runner-custom-image
{
"type": "object",
"title": "GitHub-hosted runner custom image details",
"required": [
"id",
"platform",
"name",
"source",
"versions_count",
"total_versions_size",
"latest_version",
"state"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
},
"name": {
"type": "string",
"example": "CustomImage",
"description": "Display name for this image."
},
"state": {
"type": "string",
"example": "Ready",
"description": "The number of image versions associated with the image."
},
"source": {
"type": "string",
"example": "custom",
"description": "The image provider."
},
"platform": {
"type": "string",
"example": "linux-x64",
"description": "The operating system of the image."
},
"latest_version": {
"type": "string",
"example": "1.3.0",
"description": "The latest image version associated with the image."
},
"versions_count": {
"type": "integer",
"example": 4,
"description": "The number of image versions associated with the image."
},
"total_versions_size": {
"type": "integer",
"example": 200,
"description": "Total size of all the image versions in GB."
}
},
"description": "Provides details of a custom runner image"
}
actions-hosted-runner-custom-image-version
{
"type": "object",
"title": "GitHub-hosted runner custom image version details.",
"required": [
"version",
"state",
"size_gb",
"created_on",
"state_details"
],
"properties": {
"state": {
"type": "string",
"example": "Ready",
"description": "The state of image version."
},
"size_gb": {
"type": "integer",
"example": 30,
"description": "Image version size in GB."
},
"version": {
"type": "string",
"example": "1.0.0",
"description": "The version of image."
},
"created_on": {
"type": "string",
"example": "2024-11-09T23:39:01Z",
"description": "The creation date time of the image version."
},
"state_details": {
"type": "string",
"example": "None",
"description": "The image version status details."
}
},
"description": "Provides details of a hosted runner custom image version"
}
actions-hosted-runner-limits
{
"type": "object",
"required": [
"public_ips"
],
"properties": {
"public_ips": {
"type": "object",
"title": "Static public IP Limits for GitHub-hosted Hosted Runners.",
"required": [
"maximum",
"current_usage"
],
"properties": {
"maximum": {
"type": "integer",
"example": 50,
"description": "The maximum number of static public IP addresses that can be used for Hosted Runners."
},
"current_usage": {
"type": "integer",
"example": 17,
"description": "The current number of static public IP addresses in use by Hosted Runners."
}
},
"description": "Provides details of static public IP limits for GitHub-hosted Hosted Runners"
}
}
}
actions-hosted-runner-machine-spec
{
"type": "object",
"title": "Github-owned VM details.",
"required": [
"id",
"cpu_cores",
"memory_gb",
"storage_gb"
],
"properties": {
"id": {
"type": "string",
"example": "8-core",
"description": "The ID used for the `size` parameter when creating a new runner."
},
"cpu_cores": {
"type": "integer",
"example": 8,
"description": "The number of cores."
},
"memory_gb": {
"type": "integer",
"example": 32,
"description": "The available RAM for the machine spec."
},
"storage_gb": {
"type": "integer",
"example": 300,
"description": "The available SSD storage for the machine spec."
}
},
"description": "Provides details of a particular machine spec."
}
actions-organization-permissions
{
"type": "object",
"required": [
"enabled_repositories"
],
"properties": {
"allowed_actions": {
"$ref": "#/components/schemas/allowed-actions"
},
"enabled_repositories": {
"$ref": "#/components/schemas/enabled-repositories"
},
"selected_actions_url": {
"$ref": "#/components/schemas/selected-actions-url"
},
"sha_pinning_required": {
"$ref": "#/components/schemas/sha-pinning-required"
},
"selected_repositories_url": {
"type": "string",
"description": "The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`."
}
}
}
actions-public-key
{
"type": "object",
"title": "ActionsPublicKey",
"required": [
"key_id",
"key"
],
"properties": {
"id": {
"type": "integer",
"example": 2
},
"key": {
"type": "string",
"example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=",
"description": "The Base64 encoded public key."
},
"url": {
"type": "string",
"example": "https://api.github.com/user/keys/2"
},
"title": {
"type": "string",
"example": "ssh-rsa AAAAB3NzaC1yc2EAAA"
},
"key_id": {
"type": "string",
"example": "1234567",
"description": "The identifier for the key."
},
"created_at": {
"type": "string",
"example": "2011-01-26T19:01:12Z"
}
},
"description": "The public key used for setting Actions Secrets."
}
actions-repository-permissions
{
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"$ref": "#/components/schemas/actions-enabled"
},
"allowed_actions": {
"$ref": "#/components/schemas/allowed-actions"
},
"selected_actions_url": {
"$ref": "#/components/schemas/selected-actions-url"
},
"sha_pinning_required": {
"$ref": "#/components/schemas/sha-pinning-required"
}
}
}
actions-secret
{
"type": "object",
"title": "Actions Secret",
"required": [
"name",
"created_at",
"updated_at"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_TOKEN",
"description": "The name of the secret."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Set secrets for GitHub Actions."
}
actions-set-default-workflow-permissions
{
"type": "object",
"properties": {
"default_workflow_permissions": {
"$ref": "#/components/schemas/actions-default-workflow-permissions"
},
"can_approve_pull_request_reviews": {
"$ref": "#/components/schemas/actions-can-approve-pull-request-reviews"
}
}
}
actions-variable
{
"type": "object",
"title": "Actions Variable",
"required": [
"name",
"value",
"created_at",
"updated_at"
],
"properties": {
"name": {
"type": "string",
"example": "USERNAME",
"description": "The name of the variable."
},
"value": {
"type": "string",
"example": "octocat",
"description": "The value of the variable."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z",
"description": "The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z",
"description": "The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
}
}
}
actions-workflow-access-to-repository
{
"type": "object",
"required": [
"access_level"
],
"properties": {
"access_level": {
"enum": [
"none",
"user",
"organization"
],
"type": "string",
"description": "Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization."
}
}
}
activity
{
"type": "object",
"title": "Activity",
"required": [
"id",
"node_id",
"before",
"after",
"ref",
"timestamp",
"activity_type",
"actor"
],
"properties": {
"id": {
"type": "integer",
"example": 1296269
},
"ref": {
"type": "string",
"example": "refs/heads/main",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"actor": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"after": {
"type": "string",
"example": "827efc6d56897b048c772eb4087f854f46256132",
"description": "The SHA of the commit after the activity."
},
"before": {
"type": "string",
"example": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"description": "The SHA of the commit before the activity."
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"description": "The time when the activity occurred."
},
"activity_type": {
"enum": [
"push",
"force_push",
"branch_deletion",
"branch_creation",
"pr_merge",
"merge_queue_merge"
],
"type": "string",
"example": "force_push",
"description": "The type of the activity that was performed."
}
},
"description": "Activity"
}
actor
{
"type": "object",
"title": "Actor",
"required": [
"id",
"login",
"gravatar_id",
"url",
"avatar_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"login": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"gravatar_id": {
"type": "string",
"nullable": true
},
"display_login": {
"type": "string"
}
},
"description": "Actor"
}
added-to-project-issue-event
{
"type": "object",
"title": "Added to Project Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"project_card": {
"type": "object",
"required": [
"id",
"url",
"project_id",
"project_url",
"column_name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"project_id": {
"type": "integer"
},
"column_name": {
"type": "string"
},
"project_url": {
"type": "string",
"format": "uri"
},
"previous_column_name": {
"type": "string"
}
}
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Added to Project Issue Event"
}
alert-auto-dismissed-at
{
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
alert-created-at
{
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
alert-dismissed-at
{
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
alert-fixed-at
{
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
alert-html-url
{
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The GitHub URL of the alert resource."
}
alert-instances-url
{
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The REST API URL for fetching the list of instances for an alert."
}
alert-number
{
"type": "integer",
"readOnly": true,
"description": "The security alert number."
}
alert-updated-at
{
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
alert-url
{
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The REST API URL of the alert resource."
}
allowed-actions
{
"enum": [
"all",
"local_only",
"selected"
],
"type": "string",
"description": "The permissions policy that controls the actions and reusable workflows that are allowed to run."
}
api-insights-route-stats
{
"type": "array",
"items": {
"type": "object",
"properties": {
"api_route": {
"type": "string",
"description": "The API path's route template"
},
"http_method": {
"type": "string",
"description": "The HTTP method"
},
"total_request_count": {
"type": "integer",
"format": "int64",
"description": "The total number of requests within the queried time period"
},
"last_request_timestamp": {
"type": "string"
},
"rate_limited_request_count": {
"type": "integer",
"format": "int64",
"description": "The total number of requests that were rate limited within the queried time period"
},
"last_rate_limited_timestamp": {
"type": "string",
"nullable": true
}
}
},
"title": "Route Stats",
"description": "API Insights usage route stats for an actor"
}
api-insights-subject-stats
{
"type": "array",
"items": {
"type": "object",
"properties": {
"subject_id": {
"type": "integer",
"format": "int64"
},
"subject_name": {
"type": "string"
},
"subject_type": {
"type": "string"
},
"total_request_count": {
"type": "integer"
},
"last_request_timestamp": {
"type": "string"
},
"rate_limited_request_count": {
"type": "integer"
},
"last_rate_limited_timestamp": {
"type": "string",
"nullable": true
}
}
},
"title": "Subject Stats",
"description": "API Insights usage subject stats for an organization"
}
api-insights-summary-stats
{
"type": "object",
"title": "Summary Stats",
"properties": {
"total_request_count": {
"type": "integer",
"format": "int64",
"description": "The total number of requests within the queried time period"
},
"rate_limited_request_count": {
"type": "integer",
"format": "int64",
"description": "The total number of requests that were rate limited within the queried time period"
}
},
"description": "API Insights usage summary stats for an organization"
}
api-insights-time-stats
{
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"total_request_count": {
"type": "integer",
"format": "int64"
},
"rate_limited_request_count": {
"type": "integer",
"format": "int64"
}
}
},
"title": "Time Stats",
"description": "API Insights usage time stats for an organization"
}
api-insights-user-stats
{
"type": "array",
"items": {
"type": "object",
"properties": {
"actor_id": {
"type": "integer",
"format": "int64"
},
"actor_name": {
"type": "string"
},
"actor_type": {
"type": "string"
},
"integration_id": {
"type": "integer",
"format": "int64",
"nullable": true
},
"total_request_count": {
"type": "integer"
},
"oauth_application_id": {
"type": "integer",
"format": "int64",
"nullable": true
},
"last_request_timestamp": {
"type": "string"
},
"rate_limited_request_count": {
"type": "integer"
},
"last_rate_limited_timestamp": {
"type": "string",
"nullable": true
}
}
},
"title": "User Stats",
"description": "API Insights usage stats for a user"
}
api-overview
{
"type": "object",
"title": "Api Overview",
"required": [
"verifiable_password_authentication"
],
"properties": {
"api": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"git": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"web": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"hooks": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"pages": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"actions": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"copilot": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"domains": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"copilot": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"website": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"packages": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"codespaces": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"actions_inbound": {
"type": "object",
"properties": {
"full_domains": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"wildcard_domains": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
}
}
},
"artifact_attestations": {
"type": "object",
"properties": {
"services": {
"type": "array",
"items": {
"type": "string",
"example": [
"example.com"
]
}
},
"trust_domain": {
"type": "string",
"example": [
"example"
]
}
}
}
}
},
"importer": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"packages": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"ssh_keys": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ"
]
},
"codespaces": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"dependabot": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"actions_macos": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"ssh_key_fingerprints": {
"type": "object",
"properties": {
"SHA256_DSA": {
"type": "string"
},
"SHA256_RSA": {
"type": "string"
},
"SHA256_ECDSA": {
"type": "string"
},
"SHA256_ED25519": {
"type": "string"
}
}
},
"github_enterprise_importer": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"192.0.2.1"
]
},
"verifiable_password_authentication": {
"type": "boolean",
"example": true
}
},
"description": "Api Overview"
}
app-permissions
{
"type": "object",
"title": "App Permissions",
"example": {
"issues": "read",
"contents": "read",
"deployments": "write",
"single_file": "read"
},
"properties": {
"pages": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds."
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for checks on code."
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones."
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts."
},
"members": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for organization teams and members."
},
"profile": {
"enum": [
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the profile settings belonging to a user."
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage repository secrets."
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges."
},
"gpg_keys": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage GPG keys belonging to a user."
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata."
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for packages published to GitHub Packages."
},
"starring": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to list and manage repositories a user is starring."
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for commit statuses."
},
"followers": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the followers belonging to a user."
},
"workflows": {
"enum": [
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to update GitHub Actions workflow files."
},
"codespaces": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to create, edit, delete, and list Codespaces."
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for deployments and deployment statuses."
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for discussions and related comments and labels."
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage just a single file."
},
"attestations": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to create and retrieve the access token for repository attestations."
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for managing repository environments."
},
"git_ssh_keys": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage git SSH keys."
},
"merge_queues": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the merge queues for a repository."
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges."
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation."
},
"email_addresses": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the email addresses belonging to a user."
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage security events like code scanning alerts."
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the post-receive hooks for a repository."
},
"artifact_metadata": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to create and retrieve build artifact metadata records."
},
"organization_plan": {
"enum": [
"read"
],
"type": "string",
"description": "The level of permission to grant the access token for viewing an organization's plan."
},
"dependabot_secrets": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage Dependabot secrets."
},
"interaction_limits": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage interaction limits on a repository."
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage the post-receive hooks for an organization."
},
"organization_events": {
"enum": [
"read"
],
"type": "string",
"description": "The level of permission to grant the access token to view events triggered by an activity in an organization."
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string",
"description": "The level of permission to grant the access token to manage repository projects, columns, and cards."
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage organization secrets."
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage Dependabot alerts."
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for organization packages published to GitHub Packages."
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string",
"description": "The level of permission to grant the access token to manage organization projects and projects public preview (where available)."
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage secret scanning alerts."
},
"organization_custom_roles": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for custom repository roles management."
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage users blocked by the organization."
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to manage access to an organization."
},
"repository_custom_properties": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property."
},
"organization_custom_org_roles": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for custom organization roles management."
},
"organization_custom_properties": {
"enum": [
"read",
"write",
"admin"
],
"type": "string",
"description": "The level of permission to grant the access token for repository custom properties management at the organization level."
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization."
},
"organization_announcement_banners": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage announcement banners for an organization."
},
"custom_properties_for_organizations": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property."
},
"organization_copilot_agent_settings": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token to view and manage Copilot coding agent settings for an organization."
},
"organization_personal_access_tokens": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization."
},
"organization_copilot_seat_management": {
"enum": [
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change."
},
"organization_personal_access_token_requests": {
"enum": [
"read",
"write"
],
"type": "string",
"description": "The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization."
},
"enterprise_custom_properties_for_organizations": {
"enum": [
"read",
"write",
"admin"
],
"type": "string",
"description": "The level of permission to grant the access token for organization custom properties management at the enterprise level."
}
},
"description": "The permissions granted to the user access token."
}
artifact
{
"type": "object",
"title": "Artifact",
"required": [
"id",
"node_id",
"name",
"size_in_bytes",
"url",
"archive_download_url",
"expired",
"created_at",
"expires_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 5
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5"
},
"name": {
"type": "string",
"example": "AdventureWorks.Framework",
"description": "The name of the artifact."
},
"digest": {
"type": "string",
"example": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
"nullable": true,
"description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null."
},
"expired": {
"type": "boolean",
"description": "Whether or not the artifact has expired."
},
"node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU1"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"expires_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"workflow_run": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer",
"example": 10
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d"
},
"head_branch": {
"type": "string",
"example": "main"
},
"repository_id": {
"type": "integer",
"example": 42
},
"head_repository_id": {
"type": "integer",
"example": 42
}
}
},
"size_in_bytes": {
"type": "integer",
"example": 12345,
"description": "The size in bytes of the artifact."
},
"archive_download_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip"
}
},
"description": "An artifact"
}
artifact-deployment-record
{
"type": "object",
"title": "Artifact Deployment Record",
"properties": {
"id": {
"type": "integer"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"digest": {
"type": "string"
},
"cluster": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"runtime_risks": {
"type": "array",
"items": {
"enum": [
"critical-resource",
"internet-exposed",
"lateral-movement",
"sensitive-data"
],
"type": "string"
},
"maxItems": 4,
"description": "A list of runtime risks associated with the deployment.",
"uniqueItems": true
},
"attestation_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the provenance attestation associated with the deployment record."
},
"deployment_name": {
"type": "string"
},
"logical_environment": {
"type": "string"
},
"physical_environment": {
"type": "string"
}
},
"description": "Artifact Metadata Deployment Record"
}
assigned-issue-event
{
"type": "object",
"title": "Assigned Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app",
"assignee",
"assigner"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"assigner": {
"$ref": "#/components/schemas/simple-user"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/integration"
}
},
"description": "Assigned Issue Event"
}
authentication-token
{
"type": "object",
"title": "Authentication Token",
"required": [
"token",
"expires_at"
],
"properties": {
"token": {
"type": "string",
"example": "v1.1f699f1069f60xxx",
"description": "The token used for authentication"
},
"expires_at": {
"type": "string",
"format": "date-time",
"example": "2016-07-11T22:14:10Z",
"description": "The time this token expires"
},
"permissions": {
"type": "object",
"example": {
"issues": "read",
"deployments": "write"
}
},
"single_file": {
"type": "string",
"example": "config.yaml",
"nullable": true
},
"repositories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository"
},
"description": "The repositories this token has access to"
},
"repository_selection": {
"enum": [
"all",
"selected"
],
"type": "string",
"description": "Describe whether all repositories have been selected or there's a selection involved"
}
},
"description": "Authentication Token"
}
author-association
{
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "author_association",
"example": "OWNER",
"description": "How the author is associated with the repository."
}
authorization
{
"type": "object",
"title": "Authorization",
"required": [
"app",
"id",
"note",
"note_url",
"scopes",
"token",
"hashed_token",
"token_last_eight",
"fingerprint",
"url",
"created_at",
"updated_at",
"expires_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"app": {
"type": "object",
"required": [
"client_id",
"name",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"client_id": {
"type": "string"
}
}
},
"url": {
"type": "string",
"format": "uri"
},
"note": {
"type": "string",
"nullable": true
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"token": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of scopes that this authorization is in."
},
"note_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"expires_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"fingerprint": {
"type": "string",
"nullable": true
},
"hashed_token": {
"type": "string",
"nullable": true
},
"installation": {
"$ref": "#/components/schemas/nullable-scoped-installation"
},
"token_last_eight": {
"type": "string",
"nullable": true
}
},
"description": "The authorization for an OAuth app, GitHub App, or a Personal Access Token."
}
auto-merge
{
"type": "object",
"title": "Auto merge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"$ref": "#/components/schemas/simple-user"
},
"commit_title": {
"type": "string",
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
}
autolink
{
"type": "object",
"title": "Autolink reference",
"required": [
"id",
"key_prefix",
"url_template",
"is_alphanumeric"
],
"properties": {
"id": {
"type": "integer",
"example": 3
},
"key_prefix": {
"type": "string",
"example": "TICKET-",
"description": "The prefix of a key that is linkified."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"url_template": {
"type": "string",
"example": "https://example.com/TICKET?query=<num>",
"description": "A template for the target URL that is generated if a key was found."
},
"is_alphanumeric": {
"type": "boolean",
"example": true,
"description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters."
}
},
"description": "An autolink reference."
}
base-gist
{
"type": "object",
"title": "Base Gist",
"required": [
"id",
"node_id",
"url",
"forks_url",
"commits_url",
"git_pull_url",
"git_push_url",
"html_url",
"comments_url",
"public",
"description",
"comments",
"user",
"files",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"files": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"raw_url": {
"type": "string"
},
"encoding": {
"type": "string",
"default": "utf-8",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported."
},
"filename": {
"type": "string"
},
"language": {
"type": "string"
}
}
}
},
"forks": {
"type": "array",
"items": {}
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"public": {
"type": "boolean"
},
"history": {
"type": "array",
"items": {}
},
"node_id": {
"type": "string"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"truncated": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"description": {
"type": "string",
"nullable": true
},
"comments_url": {
"type": "string",
"format": "uri"
},
"git_pull_url": {
"type": "string",
"format": "uri"
},
"git_push_url": {
"type": "string",
"format": "uri"
},
"comments_enabled": {
"type": "boolean"
}
},
"description": "Base Gist",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"id",
"node_id",
"url",
"forks_url",
"commits_url",
"git_pull_url",
"git_push_url",
"html_url",
"comments_url",
"public",
"description",
"comments",
"files",
"created_at",
"updated_at"
],
"properties": {
"user": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/forks"
},
{
"op": "remove",
"path": "/properties/history"
}
],
"version": "2026-03-10",
"changeset": "remove_forks_history_from_base_gist"
}
]
}
basic-error
{
"type": "object",
"title": "Basic Error",
"properties": {
"url": {
"type": "string"
},
"status": {
"type": "string"
},
"message": {
"type": "string"
},
"documentation_url": {
"type": "string"
}
},
"description": "Basic Error"
}
billing-premium-request-usage-report-org
{
"type": "object",
"required": [
"timePeriod",
"organization",
"usageItems"
],
"properties": {
"user": {
"type": "string",
"description": "The name of the user for the usage report."
},
"model": {
"type": "string",
"description": "The model for the usage report."
},
"product": {
"type": "string",
"description": "The product for the usage report."
},
"timePeriod": {
"type": "object",
"required": [
"year"
],
"properties": {
"day": {
"type": "integer",
"description": "The day for the usage report."
},
"year": {
"type": "integer",
"description": "The year for the usage report."
},
"month": {
"type": "integer",
"description": "The month for the usage report."
}
}
},
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"product",
"sku",
"model",
"unitType",
"pricePerUnit",
"grossQuantity",
"grossAmount",
"discountQuantity",
"discountAmount",
"netQuantity",
"netAmount"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"model": {
"type": "string",
"description": "Model name."
},
"product": {
"type": "string",
"description": "Product name."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"netQuantity": {
"type": "number",
"description": "Net quantity of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"grossQuantity": {
"type": "number",
"description": "Gross quantity of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"discountQuantity": {
"type": "number",
"description": "Discount quantity of the usage line item."
}
}
}
},
"organization": {
"type": "string",
"description": "The unique identifier of the organization."
}
}
}
billing-premium-request-usage-report-user
{
"type": "object",
"required": [
"timePeriod",
"user",
"usageItems"
],
"properties": {
"user": {
"type": "string",
"description": "The unique identifier of the user."
},
"model": {
"type": "string",
"description": "The model for the usage report."
},
"product": {
"type": "string",
"description": "The product for the usage report."
},
"timePeriod": {
"type": "object",
"required": [
"year"
],
"properties": {
"day": {
"type": "integer",
"description": "The day for the usage report."
},
"year": {
"type": "integer",
"description": "The year for the usage report."
},
"month": {
"type": "integer",
"description": "The month for the usage report."
}
}
},
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"product",
"sku",
"model",
"unitType",
"pricePerUnit",
"grossQuantity",
"grossAmount",
"discountQuantity",
"discountAmount",
"netQuantity",
"netAmount"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"model": {
"type": "string",
"description": "Model name."
},
"product": {
"type": "string",
"description": "Product name."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"netQuantity": {
"type": "number",
"description": "Net quantity of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"grossQuantity": {
"type": "number",
"description": "Gross quantity of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"discountQuantity": {
"type": "number",
"description": "Discount quantity of the usage line item."
}
}
}
}
}
}
billing-usage-report
{
"type": "object",
"properties": {
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"product",
"sku",
"quantity",
"unitType",
"pricePerUnit",
"grossAmount",
"discountAmount",
"netAmount",
"organizationName"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"date": {
"type": "string",
"description": "Date of the usage line item."
},
"product": {
"type": "string",
"description": "Product name."
},
"quantity": {
"type": "integer",
"description": "Quantity of the usage line item."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"repositoryName": {
"type": "string",
"description": "Name of the repository."
},
"organizationName": {
"type": "string",
"description": "Name of the organization."
}
}
}
}
}
}
billing-usage-report-user
{
"type": "object",
"properties": {
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"product",
"sku",
"quantity",
"unitType",
"pricePerUnit",
"grossAmount",
"discountAmount",
"netAmount"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"date": {
"type": "string",
"description": "Date of the usage line item."
},
"product": {
"type": "string",
"description": "Product name."
},
"quantity": {
"type": "integer",
"description": "Quantity of the usage line item."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"repositoryName": {
"type": "string",
"description": "Name of the repository."
}
}
}
}
}
}
billing-usage-summary-report-org
{
"type": "object",
"required": [
"timePeriod",
"organization",
"usageItems"
],
"properties": {
"sku": {
"type": "string",
"description": "The SKU for the usage report."
},
"product": {
"type": "string",
"description": "The product for the usage report."
},
"repository": {
"type": "string",
"description": "The name of the repository for the usage report."
},
"timePeriod": {
"type": "object",
"required": [
"year"
],
"properties": {
"day": {
"type": "integer",
"description": "The day for the usage report."
},
"year": {
"type": "integer",
"description": "The year for the usage report."
},
"month": {
"type": "integer",
"description": "The month for the usage report."
}
}
},
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"product",
"sku",
"unitType",
"pricePerUnit",
"grossQuantity",
"grossAmount",
"discountQuantity",
"discountAmount",
"netQuantity",
"netAmount"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"product": {
"type": "string",
"description": "Product name."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"netQuantity": {
"type": "number",
"description": "Net quantity of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"grossQuantity": {
"type": "number",
"description": "Gross quantity of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"discountQuantity": {
"type": "number",
"description": "Discount quantity of the usage line item."
}
}
}
},
"organization": {
"type": "string",
"description": "The unique identifier of the organization."
}
}
}
billing-usage-summary-report-user
{
"type": "object",
"required": [
"timePeriod",
"user",
"usageItems"
],
"properties": {
"sku": {
"type": "string",
"description": "The SKU for the usage report."
},
"user": {
"type": "string",
"description": "The unique identifier of the user."
},
"product": {
"type": "string",
"description": "The product for the usage report."
},
"repository": {
"type": "string",
"description": "The name of the repository for the usage report."
},
"timePeriod": {
"type": "object",
"required": [
"year"
],
"properties": {
"day": {
"type": "integer",
"description": "The day for the usage report."
},
"year": {
"type": "integer",
"description": "The year for the usage report."
},
"month": {
"type": "integer",
"description": "The month for the usage report."
}
}
},
"usageItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"product",
"sku",
"unitType",
"pricePerUnit",
"grossQuantity",
"grossAmount",
"discountQuantity",
"discountAmount",
"netQuantity",
"netAmount"
],
"properties": {
"sku": {
"type": "string",
"description": "SKU name."
},
"product": {
"type": "string",
"description": "Product name."
},
"unitType": {
"type": "string",
"description": "Unit type of the usage line item."
},
"netAmount": {
"type": "number",
"description": "Net amount of the usage line item."
},
"grossAmount": {
"type": "number",
"description": "Gross amount of the usage line item."
},
"netQuantity": {
"type": "number",
"description": "Net quantity of the usage line item."
},
"pricePerUnit": {
"type": "number",
"description": "Price per unit of the usage line item."
},
"grossQuantity": {
"type": "number",
"description": "Gross quantity of the usage line item."
},
"discountAmount": {
"type": "number",
"description": "Discount amount of the usage line item."
},
"discountQuantity": {
"type": "number",
"description": "Discount quantity of the usage line item."
}
}
}
}
}
}
blob
{
"type": "object",
"title": "Blob",
"required": [
"sha",
"url",
"node_id",
"size",
"content",
"encoding"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"size": {
"type": "integer",
"nullable": true
},
"content": {
"type": "string"
},
"node_id": {
"type": "string"
},
"encoding": {
"type": "string"
},
"highlighted_content": {
"type": "string"
}
},
"description": "Blob"
}
branch-protection
{
"type": "object",
"title": "Branch Protection",
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string",
"example": "\"branch/with/protection\""
},
"enabled": {
"type": "boolean"
},
"lock_branch": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
}
},
"description": "Whether to set the branch as read-only. If this is true, users will not be able to push to the branch."
},
"restrictions": {
"$ref": "#/components/schemas/branch-restriction-policy"
},
"enforce_admins": {
"$ref": "#/components/schemas/protected-branch-admin-enforced"
},
"protection_url": {
"type": "string",
"example": "\"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection\""
},
"allow_deletions": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"block_creations": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"allow_force_pushes": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"allow_fork_syncing": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
}
},
"description": "Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing."
},
"required_signatures": {
"type": "object",
"required": [
"url",
"enabled"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures"
},
"enabled": {
"type": "boolean",
"example": true
}
}
},
"required_status_checks": {
"$ref": "#/components/schemas/protected-branch-required-status-check"
},
"required_linear_history": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"required_pull_request_reviews": {
"$ref": "#/components/schemas/protected-branch-pull-request-review"
},
"required_conversation_resolution": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
}
},
"description": "Branch Protection"
}
branch-restriction-policy
{
"type": "object",
"title": "Branch Restriction Policy",
"required": [
"url",
"users_url",
"teams_url",
"apps_url",
"users",
"teams",
"apps"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"apps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string",
"example": "\"Organization\""
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"example": "\"https://github.com/testorg-ea8ec76d71c3af4b\""
},
"gists_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/gists{/gist_id}\""
},
"hooks_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"site_admin": {
"type": "boolean",
"example": false
},
"description": {
"type": "string"
},
"gravatar_id": {
"type": "string",
"example": "\"\""
},
"members_url": {
"type": "string"
},
"starred_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/starred{/owner}{/repo}\""
},
"followers_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/followers\""
},
"following_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/following{/other_user}\""
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/orgs\""
},
"subscriptions_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/subscriptions\""
},
"public_members_url": {
"type": "string"
},
"received_events_url": {
"type": "string",
"example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/received_events\""
}
}
},
"events": {
"type": "array",
"items": {
"type": "string"
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"client_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"permissions": {
"type": "object",
"properties": {
"issues": {
"type": "string"
},
"contents": {
"type": "string"
},
"metadata": {
"type": "string"
},
"single_file": {
"type": "string"
}
}
},
"external_url": {
"type": "string"
}
}
}
},
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
}
},
"users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
}
},
"apps_url": {
"type": "string",
"format": "uri"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"users_url": {
"type": "string",
"format": "uri"
}
},
"description": "Branch Restriction Policy"
}
branch-short
{
"type": "object",
"title": "Branch Short",
"required": [
"name",
"commit",
"protected"
],
"properties": {
"name": {
"type": "string"
},
"commit": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"protected": {
"type": "boolean"
}
},
"description": "Branch Short"
}
branch-with-protection
{
"type": "object",
"title": "Branch With Protection",
"required": [
"name",
"commit",
"_links",
"protection",
"protected",
"protection_url"
],
"properties": {
"name": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"html",
"self"
],
"properties": {
"html": {
"type": "string"
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"commit": {
"$ref": "#/components/schemas/commit"
},
"pattern": {
"type": "string",
"example": "\"mas*\""
},
"protected": {
"type": "boolean"
},
"protection": {
"$ref": "#/components/schemas/branch-protection"
},
"protection_url": {
"type": "string",
"format": "uri"
},
"required_approving_review_count": {
"type": "integer",
"example": 1
}
},
"description": "Branch With Protection"
}
budget
{
"type": "object",
"required": [
"id",
"budget_type",
"budget_product_sku",
"budget_scope",
"budget_amount",
"prevent_further_usage",
"budget_alerting"
],
"properties": {
"id": {
"type": "string",
"example": "2066deda-923f-43f9-88d2-62395a28c0cdd",
"description": "The unique identifier for the budget"
},
"budget_type": {
"oneOf": [
{
"enum": [
"SkuPricing"
],
"type": "string"
},
{
"enum": [
"ProductPricing"
],
"type": "string"
}
],
"example": "SkuPricing",
"description": "The type of pricing for the budget"
},
"budget_scope": {
"type": "string",
"example": "enterprise",
"description": "The scope of the budget (enterprise, organization, repository, cost center)"
},
"budget_amount": {
"type": "integer",
"description": "The budget amount limit in whole dollars. For license-based products, this represents the number of licenses."
},
"budget_alerting": {
"type": "object",
"required": [
"will_alert",
"alert_recipients"
],
"properties": {
"will_alert": {
"type": "boolean",
"example": true,
"description": "Whether alerts are enabled for this budget"
},
"alert_recipients": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"mona",
"lisa"
],
"description": "Array of user login names who will receive alerts"
}
}
},
"budget_entity_name": {
"type": "string",
"example": "octocat/hello-world",
"description": "The name of the entity for the budget (enterprise does not require a name)."
},
"budget_product_sku": {
"type": "string",
"description": "A single product or sku to apply the budget to."
},
"prevent_further_usage": {
"type": "boolean",
"example": true,
"description": "The type of limit enforcement for the budget"
}
}
}
campaign-alert-type
{
"enum": [
"code_scanning",
"secret_scanning"
],
"type": "string",
"title": "Campaign alert type",
"description": "Indicates the alert type of a campaign"
}
campaign-state
{
"enum": [
"open",
"closed"
],
"type": "string",
"title": "Campaign state",
"description": "Indicates whether a campaign is open or closed"
}
campaign-summary
{
"type": "object",
"title": "Campaign summary",
"required": [
"number",
"created_at",
"updated_at",
"description",
"managers",
"ends_at",
"state",
"contact_link"
],
"properties": {
"name": {
"type": "string",
"description": "The campaign name"
},
"state": {
"$ref": "#/components/schemas/campaign-state"
},
"number": {
"type": "integer",
"description": "The number of the newly created campaign"
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"managers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"description": "The campaign managers"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"alert_stats": {
"type": "object",
"required": [
"open_count",
"closed_count",
"in_progress_count"
],
"properties": {
"open_count": {
"type": "integer",
"description": "The number of open alerts"
},
"closed_count": {
"type": "integer",
"description": "The number of closed alerts"
},
"in_progress_count": {
"type": "integer",
"description": "The number of in-progress alerts"
}
},
"additionalProperties": false
},
"description": {
"type": "string",
"description": "The campaign description"
},
"contact_link": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The contact link of the campaign."
},
"published_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"team_managers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
},
"description": "The campaign team managers"
}
},
"description": "The campaign metadata and alert stats."
}
check-annotation
{
"type": "object",
"title": "Check Annotation",
"required": [
"path",
"blob_href",
"start_line",
"end_line",
"start_column",
"end_column",
"annotation_level",
"title",
"message",
"raw_details"
],
"properties": {
"path": {
"type": "string",
"example": "README.md"
},
"title": {
"type": "string",
"example": "Spell Checker",
"nullable": true
},
"message": {
"type": "string",
"example": "Check your spelling for 'banaas'.",
"nullable": true
},
"end_line": {
"type": "integer",
"example": 2
},
"blob_href": {
"type": "string"
},
"end_column": {
"type": "integer",
"example": 10,
"nullable": true
},
"start_line": {
"type": "integer",
"example": 2
},
"raw_details": {
"type": "string",
"example": "Do you mean 'bananas' or 'banana'?",
"nullable": true
},
"start_column": {
"type": "integer",
"example": 5,
"nullable": true
},
"annotation_level": {
"type": "string",
"example": "warning",
"nullable": true
}
},
"description": "Check Annotation"
}
check-automated-security-fixes
{
"type": "object",
"title": "Check Dependabot security updates",
"required": [
"enabled",
"paused"
],
"properties": {
"paused": {
"type": "boolean",
"example": false,
"description": "Whether Dependabot security updates are paused for the repository."
},
"enabled": {
"type": "boolean",
"example": true,
"description": "Whether Dependabot security updates are enabled for the repository."
}
},
"description": "Check Dependabot security updates"
}
check-immutable-releases
{
"type": "object",
"title": "Check immutable releases",
"required": [
"enabled",
"enforced_by_owner"
],
"properties": {
"enabled": {
"type": "boolean",
"example": true,
"description": "Whether immutable releases are enabled for the repository."
},
"enforced_by_owner": {
"type": "boolean",
"example": false,
"description": "Whether immutable releases are enforced by the repository owner."
}
},
"description": "Check immutable releases"
}
check-run
{
"type": "object",
"title": "CheckRun",
"required": [
"id",
"node_id",
"head_sha",
"name",
"url",
"html_url",
"details_url",
"status",
"conclusion",
"started_at",
"completed_at",
"external_id",
"check_suite",
"output",
"app",
"pull_requests"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 21,
"description": "The id of the check."
},
"app": {
"$ref": "#/components/schemas/nullable-integration"
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-runs/4"
},
"name": {
"type": "string",
"example": "test-coverage",
"description": "The name of the check."
},
"output": {
"type": "object",
"required": [
"title",
"summary",
"text",
"annotations_count",
"annotations_url"
],
"properties": {
"text": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"nullable": true
},
"summary": {
"type": "string",
"nullable": true
},
"annotations_url": {
"type": "string",
"format": "uri"
},
"annotations_count": {
"type": "integer"
}
}
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending"
],
"type": "string",
"example": "queued",
"description": "The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs."
},
"node_id": {
"type": "string",
"example": "MDg6Q2hlY2tSdW40"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the commit that is being checked."
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/runs/4",
"nullable": true
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"skipped",
"timed_out",
"action_required"
],
"type": "string",
"example": "neutral",
"nullable": true
},
"deployment": {
"$ref": "#/components/schemas/deployment-simple"
},
"started_at": {
"type": "string",
"format": "date-time",
"example": "2018-05-04T01:14:52Z",
"nullable": true
},
"check_suite": {
"type": "object",
"nullable": true,
"required": [
"id"
],
"properties": {
"id": {
"type": "integer"
}
}
},
"details_url": {
"type": "string",
"example": "https://example.com",
"nullable": true
},
"external_id": {
"type": "string",
"example": "42",
"nullable": true
},
"completed_at": {
"type": "string",
"format": "date-time",
"example": "2018-05-04T01:14:52Z",
"nullable": true
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-minimal"
},
"description": "Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check."
}
},
"description": "A check performed on the code of a given code change"
}
check-run-with-simple-check-suite
{
"type": "object",
"title": "CheckRun",
"required": [
"id",
"node_id",
"head_sha",
"name",
"url",
"html_url",
"details_url",
"status",
"conclusion",
"started_at",
"completed_at",
"external_id",
"check_suite",
"output",
"app",
"pull_requests"
],
"properties": {
"id": {
"type": "integer",
"example": 21,
"description": "The id of the check."
},
"app": {
"$ref": "#/components/schemas/integration"
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-runs/4"
},
"name": {
"type": "string",
"example": "test-coverage",
"description": "The name of the check."
},
"output": {
"type": "object",
"required": [
"title",
"summary",
"text",
"annotations_count",
"annotations_url"
],
"properties": {
"text": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"nullable": true
},
"summary": {
"type": "string",
"nullable": true
},
"annotations_url": {
"type": "string",
"format": "uri"
},
"annotations_count": {
"type": "integer"
}
}
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"pending"
],
"type": "string",
"example": "queued",
"description": "The phase of the lifecycle that the check is currently in."
},
"node_id": {
"type": "string",
"example": "MDg6Q2hlY2tSdW40"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the commit that is being checked."
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/runs/4"
},
"conclusion": {
"enum": [
"waiting",
"pending",
"startup_failure",
"stale",
"success",
"failure",
"neutral",
"cancelled",
"skipped",
"timed_out",
"action_required"
],
"type": "string",
"example": "neutral",
"nullable": true
},
"deployment": {
"$ref": "#/components/schemas/deployment-simple"
},
"started_at": {
"type": "string",
"format": "date-time",
"example": "2018-05-04T01:14:52Z"
},
"check_suite": {
"$ref": "#/components/schemas/simple-check-suite"
},
"details_url": {
"type": "string",
"example": "https://example.com"
},
"external_id": {
"type": "string",
"example": "42"
},
"completed_at": {
"type": "string",
"format": "date-time",
"example": "2018-05-04T01:14:52Z",
"nullable": true
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-minimal"
}
}
},
"description": "A check performed on the code of a given code change"
}
check-suite
{
"type": "object",
"title": "CheckSuite",
"required": [
"id",
"node_id",
"head_branch",
"status",
"conclusion",
"head_sha",
"url",
"before",
"after",
"created_at",
"updated_at",
"app",
"head_commit",
"repository",
"latest_check_runs_count",
"check_runs_url",
"pull_requests"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 5
},
"app": {
"$ref": "#/components/schemas/nullable-integration"
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-suites/5",
"nullable": true
},
"after": {
"type": "string",
"example": "d6fde92930d4715a2b49857d24b940956b26d2d3",
"nullable": true
},
"before": {
"type": "string",
"example": "146e867f55c26428e5f9fade55a9bbf5e95a7912",
"nullable": true
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending"
],
"type": "string",
"example": "completed",
"nullable": true,
"description": "The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites."
},
"node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU1"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the head commit that is being checked."
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"skipped",
"timed_out",
"action_required",
"startup_failure",
"stale",
null
],
"type": "string",
"example": "neutral",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"head_branch": {
"type": "string",
"example": "master",
"nullable": true
},
"head_commit": {
"$ref": "#/components/schemas/simple-commit"
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-minimal"
},
"nullable": true
},
"rerequestable": {
"type": "boolean"
},
"check_runs_url": {
"type": "string"
},
"runs_rerequestable": {
"type": "boolean"
},
"latest_check_runs_count": {
"type": "integer"
}
},
"description": "A suite of checks performed on the code of a given code change"
}
check-suite-preference
{
"type": "object",
"title": "Check Suite Preference",
"required": [
"preferences",
"repository"
],
"properties": {
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"preferences": {
"type": "object",
"properties": {
"auto_trigger_checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"app_id",
"setting"
],
"properties": {
"app_id": {
"type": "integer"
},
"setting": {
"type": "boolean"
}
}
}
}
}
}
},
"description": "Check suite configuration preferences for a repository."
}
classroom
{
"type": "object",
"title": "Classroom",
"required": [
"id",
"name",
"archived",
"organization",
"url"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the classroom."
},
"url": {
"type": "string",
"example": "https://classroom.github.com/classrooms/1-programming-elixir",
"description": "The URL of the classroom on GitHub Classroom."
},
"name": {
"type": "string",
"example": "Programming Elixir",
"description": "The name of the classroom."
},
"archived": {
"type": "boolean",
"example": false,
"description": "Whether classroom is archived."
},
"organization": {
"$ref": "#/components/schemas/simple-classroom-organization"
}
},
"description": "A GitHub Classroom classroom"
}
classroom-accepted-assignment
{
"type": "object",
"title": "Classroom Accepted Assignment",
"required": [
"id",
"submitted",
"passing",
"commit_count",
"grade",
"students",
"repository",
"assignment"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the repository."
},
"grade": {
"type": "string",
"example": "10/10",
"description": "Most recent grade."
},
"passing": {
"type": "boolean",
"example": true,
"description": "Whether a submission passed."
},
"students": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-classroom-user"
}
},
"submitted": {
"type": "boolean",
"example": true,
"description": "Whether an accepted assignment has been submitted."
},
"assignment": {
"$ref": "#/components/schemas/simple-classroom-assignment"
},
"repository": {
"$ref": "#/components/schemas/simple-classroom-repository"
},
"commit_count": {
"type": "integer",
"example": 5,
"description": "Count of student commits."
}
},
"description": "A GitHub Classroom accepted assignment"
}
classroom-assignment
{
"type": "object",
"title": "Classroom Assignment",
"required": [
"id",
"public_repo",
"title",
"type",
"invite_link",
"invitations_enabled",
"slug",
"students_are_repo_admins",
"feedback_pull_requests_enabled",
"max_teams",
"max_members",
"editor",
"accepted",
"submitted",
"passing",
"language",
"deadline",
"starter_code_repository",
"classroom"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the repository."
},
"slug": {
"type": "string",
"example": "intro-to-binaries",
"description": "Sluggified name of the assignment."
},
"type": {
"enum": [
"individual",
"group"
],
"type": "string",
"example": "individual",
"description": "Whether it's a group assignment or individual assignment."
},
"title": {
"type": "string",
"example": "Intro to Binaries",
"description": "Assignment title."
},
"editor": {
"type": "string",
"example": "codespaces",
"description": "The selected editor for the assignment."
},
"passing": {
"type": "integer",
"example": 10,
"description": "The number of students that have passed the assignment."
},
"accepted": {
"type": "integer",
"example": 25,
"description": "The number of students that have accepted the assignment."
},
"deadline": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true,
"description": "The time at which the assignment is due."
},
"language": {
"type": "string",
"example": "elixir",
"description": "The programming language used in the assignment."
},
"classroom": {
"$ref": "#/components/schemas/classroom"
},
"max_teams": {
"type": "integer",
"example": 0,
"nullable": true,
"description": "The maximum allowable teams for the assignment."
},
"submitted": {
"type": "integer",
"example": 10,
"description": "The number of students that have submitted the assignment."
},
"invite_link": {
"type": "string",
"example": "https://classroom.github.com/a/Lx7jiUgx",
"description": "The link that a student can use to accept the assignment."
},
"max_members": {
"type": "integer",
"example": 0,
"nullable": true,
"description": "The maximum allowable members per team."
},
"public_repo": {
"type": "boolean",
"example": true,
"description": "Whether an accepted assignment creates a public repository."
},
"invitations_enabled": {
"type": "boolean",
"example": true,
"description": "Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment."
},
"starter_code_repository": {
"$ref": "#/components/schemas/simple-classroom-repository"
},
"students_are_repo_admins": {
"type": "boolean",
"example": true,
"description": "Whether students are admins on created repository when a student accepts the assignment."
},
"feedback_pull_requests_enabled": {
"type": "boolean",
"example": true,
"description": "Whether feedback pull request will be created when a student accepts the assignment."
}
},
"description": "A GitHub Classroom assignment"
}
classroom-assignment-grade
{
"type": "object",
"title": "Classroom Assignment Grade",
"required": [
"assignment_name",
"assignment_url",
"starter_code_url",
"github_username",
"roster_identifier",
"student_repository_name",
"student_repository_url",
"submission_timestamp",
"points_awarded",
"points_available"
],
"properties": {
"group_name": {
"type": "string",
"description": "If a group assignment, name of the group the student is in"
},
"assignment_url": {
"type": "string",
"description": "URL of the assignment"
},
"points_awarded": {
"type": "integer",
"description": "Number of points awarded to the student"
},
"assignment_name": {
"type": "string",
"description": "Name of the assignment"
},
"github_username": {
"type": "string",
"description": "GitHub username of the student"
},
"points_available": {
"type": "integer",
"description": "Number of points available for the assignment"
},
"starter_code_url": {
"type": "string",
"description": "URL of the starter code for the assignment"
},
"roster_identifier": {
"type": "string",
"description": "Roster identifier of the student"
},
"submission_timestamp": {
"type": "string",
"description": "Timestamp of the student's assignment submission"
},
"student_repository_url": {
"type": "string",
"description": "URL of the student's assignment repository"
},
"student_repository_name": {
"type": "string",
"description": "Name of the student's assignment repository"
}
},
"description": "Grade for a student or groups GitHub Classroom assignment"
}
clone-traffic
{
"type": "object",
"title": "Clone Traffic",
"required": [
"uniques",
"count",
"clones"
],
"properties": {
"count": {
"type": "integer",
"example": 173
},
"clones": {
"type": "array",
"items": {
"$ref": "#/components/schemas/traffic"
}
},
"uniques": {
"type": "integer",
"example": 128
}
},
"description": "Clone Traffic"
}
code-frequency-stat
{
"type": "array",
"items": {
"type": "integer"
},
"title": "Code Frequency Stat",
"description": "Code Frequency Stat"
}
code-of-conduct
{
"type": "object",
"title": "Code Of Conduct",
"required": [
"url",
"html_url",
"key",
"name"
],
"properties": {
"key": {
"type": "string",
"example": "contributor_covenant"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/codes_of_conduct/contributor_covenant"
},
"body": {
"type": "string",
"example": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
},
"name": {
"type": "string",
"example": "Contributor Covenant"
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"description": "Code Of Conduct"
}
code-of-conduct-simple
{
"type": "object",
"title": "Code Of Conduct Simple",
"required": [
"url",
"key",
"name",
"html_url"
],
"properties": {
"key": {
"type": "string",
"example": "citizen_code_of_conduct"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/github/docs/community/code_of_conduct"
},
"name": {
"type": "string",
"example": "Citizen Code of Conduct"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md",
"nullable": true
}
},
"description": "Code of Conduct Simple"
}
code-scanning-alert
{
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"instances_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool",
"most_recent_instance"
],
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"rule": {
"$ref": "#/components/schemas/code-scanning-alert-rule"
},
"tool": {
"$ref": "#/components/schemas/code-scanning-analysis-tool"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"fixed_at": {
"$ref": "#/components/schemas/alert-fixed-at"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"updated_at": {
"$ref": "#/components/schemas/alert-updated-at"
},
"dismissed_at": {
"$ref": "#/components/schemas/alert-dismissed-at"
},
"dismissed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"instances_url": {
"$ref": "#/components/schemas/alert-instances-url"
},
"dismissed_reason": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"dismissal_approved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
}
}
}
code-scanning-alert-assignees
{
"type": "array",
"items": {
"type": "string"
},
"description": "The list of users to assign to the code scanning alert. An empty array unassigns all previous assignees from the alert."
}
code-scanning-alert-classification
{
"enum": [
"source",
"generated",
"test",
"library"
],
"type": "string",
"nullable": true,
"description": "A classification of the file. For example to identify it as generated."
}
code-scanning-alert-create-request
{
"type": "boolean",
"description": "If `true`, attempt to create an alert dismissal request."
}
code-scanning-alert-dismissed-comment
{
"type": "string",
"nullable": true,
"maxLength": 280,
"description": "The dismissal comment associated with the dismissal of the alert."
}
code-scanning-alert-dismissed-reason
{
"enum": [
"false positive",
"won't fix",
"used in tests"
],
"type": "string",
"nullable": true,
"description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert."
}
code-scanning-alert-environment
{
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
}
code-scanning-alert-instance
{
"type": "object",
"properties": {
"ref": {
"$ref": "#/components/schemas/code-scanning-ref"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"markdown": {
"type": "string",
"description": "The message text as GitHub-flavored Markdown, with placeholder links for related locations replaced by links to the relevant code. Only populated when related locations are available for the alert instance."
}
}
},
"category": {
"$ref": "#/components/schemas/code-scanning-analysis-category"
},
"html_url": {
"type": "string"
},
"location": {
"$ref": "#/components/schemas/code-scanning-alert-location"
},
"commit_sha": {
"type": "string"
},
"environment": {
"$ref": "#/components/schemas/code-scanning-alert-environment"
},
"analysis_key": {
"$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
},
"classifications": {
"type": "array",
"items": {
"$ref": "#/components/schemas/code-scanning-alert-classification"
},
"description": "Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file."
}
}
}
code-scanning-alert-instance-list
{
"type": "object",
"properties": {
"ref": {
"$ref": "#/components/schemas/code-scanning-ref"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-instance-state"
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"$ref": "#/components/schemas/code-scanning-analysis-category"
},
"html_url": {
"type": "string"
},
"location": {
"$ref": "#/components/schemas/code-scanning-alert-location"
},
"commit_sha": {
"type": "string"
},
"environment": {
"$ref": "#/components/schemas/code-scanning-alert-environment"
},
"analysis_key": {
"$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
},
"classifications": {
"type": "array",
"items": {
"$ref": "#/components/schemas/code-scanning-alert-classification"
},
"description": "Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file."
}
}
}
code-scanning-alert-instance-state
{
"enum": [
"open",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert instance."
}
code-scanning-alert-items
{
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"instances_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool",
"most_recent_instance"
],
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"rule": {
"$ref": "#/components/schemas/code-scanning-alert-rule-summary"
},
"tool": {
"$ref": "#/components/schemas/code-scanning-analysis-tool"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"fixed_at": {
"$ref": "#/components/schemas/alert-fixed-at"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"updated_at": {
"$ref": "#/components/schemas/alert-updated-at"
},
"dismissed_at": {
"$ref": "#/components/schemas/alert-dismissed-at"
},
"dismissed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"instances_url": {
"$ref": "#/components/schemas/alert-instances-url"
},
"dismissed_reason": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"dismissal_approved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
}
}
}
code-scanning-alert-location
{
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
},
"description": "Describe a region within a file for the alert."
}
code-scanning-alert-rule
{
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true,
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true,
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
},
"name": {
"type": "string",
"description": "The name of the rule used to detect the alert."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A set of tags applicable for the rule."
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error"
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string",
"description": "A description of the rule used to detect the alert."
},
"security_severity_level": {
"enum": [
"low",
"medium",
"high",
"critical"
],
"type": "string",
"nullable": true,
"description": "The security severity of the alert."
}
}
}
code-scanning-alert-rule-summary
{
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true,
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true,
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
},
"name": {
"type": "string",
"description": "The name of the rule used to detect the alert."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A set of tags applicable for the rule."
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error"
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string",
"description": "A description of the rule used to detect the alert."
},
"security_severity_level": {
"enum": [
"low",
"medium",
"high",
"critical"
],
"type": "string",
"nullable": true,
"description": "The security severity of the alert."
}
}
}
code-scanning-alert-set-state
{
"enum": [
"open",
"dismissed"
],
"type": "string",
"description": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`."
}
code-scanning-alert-severity
{
"enum": [
"critical",
"high",
"medium",
"low",
"warning",
"note",
"error"
],
"type": "string",
"description": "Severity of a code scanning alert."
}
code-scanning-alert-state
{
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert."
}
code-scanning-alert-state-query
{
"enum": [
"open",
"closed",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
}
code-scanning-analysis
{
"type": "object",
"required": [
"ref",
"commit_sha",
"analysis_key",
"environment",
"error",
"created_at",
"results_count",
"rules_count",
"id",
"url",
"sarif_id",
"tool",
"deletable",
"warning"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier for this analysis."
},
"ref": {
"$ref": "#/components/schemas/code-scanning-ref"
},
"url": {
"$ref": "#/components/schemas/code-scanning-analysis-url"
},
"tool": {
"$ref": "#/components/schemas/code-scanning-analysis-tool"
},
"error": {
"type": "string",
"example": "error reading field xyz"
},
"warning": {
"type": "string",
"example": "123 results were ignored",
"description": "Warning generated when processing the analysis"
},
"category": {
"$ref": "#/components/schemas/code-scanning-analysis-category"
},
"sarif_id": {
"$ref": "#/components/schemas/code-scanning-analysis-sarif-id"
},
"deletable": {
"type": "boolean"
},
"commit_sha": {
"$ref": "#/components/schemas/code-scanning-analysis-commit-sha"
},
"created_at": {
"$ref": "#/components/schemas/code-scanning-analysis-created-at"
},
"environment": {
"$ref": "#/components/schemas/code-scanning-analysis-environment"
},
"rules_count": {
"type": "integer",
"description": "The total number of rules used in the analysis."
},
"analysis_key": {
"$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
},
"results_count": {
"type": "integer",
"description": "The total number of results in the analysis."
}
}
}
code-scanning-analysis-analysis-key
{
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
}
code-scanning-analysis-category
{
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code."
}
code-scanning-analysis-commit-sha
{
"type": "string",
"pattern": "^[0-9a-fA-F]+$",
"maxLength": 40,
"minLength": 40,
"description": "The SHA of the commit to which the analysis you are uploading relates."
}
code-scanning-analysis-created-at
{
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
code-scanning-analysis-deletion
{
"type": "object",
"title": "Analysis deletion",
"required": [
"next_analysis_url",
"confirm_delete_url"
],
"properties": {
"next_analysis_url": {
"type": "string",
"format": "uri",
"nullable": true,
"readOnly": true,
"description": "Next deletable analysis in chain, without last analysis deletion confirmation"
},
"confirm_delete_url": {
"type": "string",
"format": "uri",
"nullable": true,
"readOnly": true,
"description": "Next deletable analysis in chain, with last analysis deletion confirmation"
}
},
"description": "Successful deletion of a code scanning analysis"
}
code-scanning-analysis-environment
{
"type": "string",
"description": "Identifies the variable values associated with the environment in which this analysis was performed."
}
code-scanning-analysis-sarif-file
{
"type": "string",
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning).\""
}
code-scanning-analysis-sarif-id
{
"type": "string",
"example": "6c81cd8e-b078-4ac3-a3be-1dad7dbd0b53",
"description": "An identifier for the upload."
}
code-scanning-analysis-tool
{
"type": "object",
"properties": {
"guid": {
"$ref": "#/components/schemas/code-scanning-analysis-tool-guid"
},
"name": {
"$ref": "#/components/schemas/code-scanning-analysis-tool-name"
},
"version": {
"$ref": "#/components/schemas/code-scanning-analysis-tool-version"
}
}
}
code-scanning-analysis-tool-guid
{
"type": "string",
"nullable": true,
"description": "The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data."
}
code-scanning-analysis-tool-name
{
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis."
}
code-scanning-analysis-tool-version
{
"type": "string",
"nullable": true,
"description": "The version of the tool used to generate the code scanning analysis."
}
code-scanning-analysis-url
{
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The REST API URL of the analysis resource."
}
code-scanning-autofix
{
"type": "object",
"required": [
"status",
"description",
"started_at"
],
"properties": {
"status": {
"$ref": "#/components/schemas/code-scanning-autofix-status"
},
"started_at": {
"$ref": "#/components/schemas/code-scanning-autofix-started-at"
},
"description": {
"$ref": "#/components/schemas/code-scanning-autofix-description"
}
}
}
code-scanning-autofix-commits
{
"type": "object",
"nullable": true,
"properties": {
"message": {
"type": "string",
"description": "Commit message to be used."
},
"target_ref": {
"type": "string",
"description": "The Git reference of target branch for the commit. Branch needs to already exist. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation."
}
},
"description": "Commit an autofix for a code scanning alert"
}
code-scanning-autofix-commits-response
{
"type": "object",
"properties": {
"sha": {
"type": "string",
"description": "SHA of commit with autofix."
},
"target_ref": {
"type": "string",
"description": "The Git reference of target branch for the commit. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation."
}
}
}
code-scanning-autofix-description
{
"type": "string",
"nullable": true,
"description": "The description of an autofix."
}
code-scanning-autofix-started-at
{
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
code-scanning-autofix-status
{
"enum": [
"pending",
"error",
"success",
"outdated"
],
"type": "string",
"description": "The status of an autofix."
}
code-scanning-codeql-database
{
"type": "object",
"title": "CodeQL Database",
"required": [
"id",
"name",
"language",
"uploader",
"content_type",
"size",
"created_at",
"updated_at",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the CodeQL database."
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property."
},
"name": {
"type": "string",
"description": "The name of the CodeQL database."
},
"size": {
"type": "integer",
"description": "The size of the CodeQL database file in bytes."
},
"language": {
"type": "string",
"description": "The language of the CodeQL database."
},
"uploader": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"type": "string",
"nullable": true,
"description": "The commit SHA of the repository at the time the CodeQL database was created."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"content_type": {
"type": "string",
"description": "The MIME type of the CodeQL database file."
}
},
"description": "A CodeQL database."
}
code-scanning-default-setup
{
"type": "object",
"properties": {
"state": {
"enum": [
"configured",
"not-configured"
],
"type": "string",
"description": "Code scanning default setup has been configured or not."
},
"schedule": {
"enum": [
"weekly"
],
"type": "string",
"nullable": true,
"description": "The frequency of the periodic analysis."
},
"languages": {
"type": "array",
"items": {
"enum": [
"actions",
"c-cpp",
"csharp",
"go",
"java-kotlin",
"javascript-typescript",
"javascript",
"python",
"ruby",
"typescript",
"swift"
],
"type": "string"
},
"description": "Languages to be analyzed."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2023-12-06T14:20:20.000Z",
"nullable": true,
"description": "Timestamp of latest configuration update."
},
"query_suite": {
"enum": [
"default",
"extended"
],
"type": "string",
"description": "CodeQL query suite to be used."
},
"runner_type": {
"enum": [
"standard",
"labeled"
],
"type": "string",
"nullable": true,
"description": "Runner type to be used."
},
"runner_label": {
"type": "string",
"example": "code-scanning",
"nullable": true,
"description": "Runner label to be used if the runner type is labeled."
},
"threat_model": {
"enum": [
"remote",
"remote_and_local"
],
"type": "string",
"description": "Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input."
}
},
"description": "Configuration for code scanning default setup.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"languages": {
"items": {
"enum": [
"actions",
"c-cpp",
"csharp",
"go",
"java-kotlin",
"javascript-typescript",
"python",
"ruby",
"swift"
]
}
}
}
},
"version": "2026-03-10",
"changeset": "remove_single_js_ts"
}
]
}
code-scanning-default-setup-options
{
"type": "object",
"nullable": true,
"properties": {
"runner_type": {
"enum": [
"standard",
"labeled",
"not_set"
],
"type": "string",
"description": "Whether to use labeled runners or standard GitHub runners."
},
"runner_label": {
"type": "string",
"nullable": true,
"description": "The label of the runner to use for code scanning default setup when runner_type is 'labeled'."
}
},
"description": "Feature options for code scanning default setup"
}
code-scanning-default-setup-update
{
"type": "object",
"properties": {
"state": {
"enum": [
"configured",
"not-configured"
],
"type": "string",
"description": "The desired state of code scanning default setup."
},
"languages": {
"type": "array",
"items": {
"enum": [
"actions",
"c-cpp",
"csharp",
"go",
"java-kotlin",
"javascript-typescript",
"python",
"ruby",
"swift"
],
"type": "string"
},
"description": "CodeQL languages to be analyzed."
},
"query_suite": {
"enum": [
"default",
"extended"
],
"type": "string",
"description": "CodeQL query suite to be used."
},
"runner_type": {
"enum": [
"standard",
"labeled"
],
"type": "string",
"description": "Runner type to be used."
},
"runner_label": {
"type": "string",
"example": "code-scanning",
"nullable": true,
"description": "Runner label to be used if the runner type is labeled."
},
"threat_model": {
"enum": [
"remote",
"remote_and_local"
],
"type": "string",
"description": "Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input."
}
},
"description": "Configuration for code scanning default setup.",
"additionalProperties": false
}
code-scanning-default-setup-update-response
{
"type": "object",
"properties": {
"run_id": {
"type": "integer",
"description": "ID of the corresponding run."
},
"run_url": {
"type": "string",
"description": "URL of the corresponding run."
}
},
"description": "You can use `run_url` to track the status of the run. This includes a property status and conclusion.\nYou should not rely on this always being an actions workflow run object."
}
code-scanning-options
{
"type": "object",
"nullable": true,
"properties": {
"allow_advanced": {
"type": "boolean",
"nullable": true,
"description": "Whether to allow repos which use advanced setup"
}
},
"description": "Security Configuration feature options for code scanning"
}
code-scanning-organization-alert-items
{
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"instances_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool",
"most_recent_instance",
"repository"
],
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"rule": {
"$ref": "#/components/schemas/code-scanning-alert-rule-summary"
},
"tool": {
"$ref": "#/components/schemas/code-scanning-analysis-tool"
},
"state": {
"$ref": "#/components/schemas/code-scanning-alert-state"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"fixed_at": {
"$ref": "#/components/schemas/alert-fixed-at"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"repository": {
"$ref": "#/components/schemas/simple-repository"
},
"updated_at": {
"$ref": "#/components/schemas/alert-updated-at"
},
"dismissed_at": {
"$ref": "#/components/schemas/alert-dismissed-at"
},
"dismissed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"instances_url": {
"$ref": "#/components/schemas/alert-instances-url"
},
"dismissed_reason": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"dismissal_approved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
}
}
}
code-scanning-ref
{
"type": "string",
"description": "The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,\n`refs/heads/<branch name>` or simply `<branch name>`."
}
code-scanning-ref-full
{
"type": "string",
"example": "refs/heads/main",
"pattern": "^refs/(heads|tags|pull)/.*$",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`,\n`refs/tags/<tag>`, `refs/pull/<number>/merge`, or `refs/pull/<number>/head`."
}
code-scanning-sarifs-receipt
{
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/code-scanning-analysis-sarif-id"
},
"url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The REST API URL for checking the status of the upload."
}
}
}
code-scanning-sarifs-status
{
"type": "object",
"properties": {
"errors": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"readOnly": true,
"description": "Any errors that ocurred during processing of the delivery."
},
"analyses_url": {
"type": "string",
"format": "uri",
"nullable": true,
"readOnly": true,
"description": "The REST API URL for getting the analyses associated with the upload."
},
"processing_status": {
"enum": [
"pending",
"complete",
"failed"
],
"type": "string",
"description": "`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed."
}
}
}
code-scanning-variant-analysis
{
"type": "object",
"title": "Variant Analysis",
"required": [
"id",
"controller_repo",
"actor",
"query_language",
"query_pack_url",
"status"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the variant analysis."
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"status": {
"enum": [
"in_progress",
"succeeded",
"failed",
"cancelled"
],
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"completed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available."
},
"failure_reason": {
"enum": [
"no_repos_queried",
"actions_workflow_run_failed",
"internal_error"
],
"type": "string",
"description": "The reason for a failure of the variant analysis. This is only available if the variant analysis has failed."
},
"query_language": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-language"
},
"query_pack_url": {
"type": "string",
"description": "The download url for the query pack."
},
"controller_repo": {
"$ref": "#/components/schemas/simple-repository"
},
"scanned_repositories": {
"type": "array",
"items": {
"type": "object",
"required": [
"repository",
"analysis_status"
],
"properties": {
"repository": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-repository"
},
"result_count": {
"type": "integer",
"description": "The number of results in the case of a successful analysis. This is only available for successful analyses."
},
"analysis_status": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-status"
},
"failure_message": {
"type": "string",
"description": "The reason of the failure of this repo task. This is only available if the repository task has failed."
},
"artifact_size_in_bytes": {
"type": "integer",
"description": "The size of the artifact. This is only available for successful analyses."
}
}
}
},
"skipped_repositories": {
"type": "object",
"required": [
"access_mismatch_repos",
"not_found_repos",
"no_codeql_db_repos",
"over_limit_repos"
],
"properties": {
"not_found_repos": {
"type": "object",
"required": [
"repository_count",
"repository_full_names"
],
"properties": {
"repository_count": {
"type": "integer",
"example": 2,
"description": "The total number of repositories that were skipped for this reason."
},
"repository_full_names": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of full repository names that were skipped. This list may not include all repositories that were skipped."
}
}
},
"over_limit_repos": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-skipped-repo-group"
},
"no_codeql_db_repos": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-skipped-repo-group"
},
"access_mismatch_repos": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-skipped-repo-group"
}
},
"description": "Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis."
},
"actions_workflow_run_id": {
"type": "integer",
"description": "The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started."
}
},
"description": "A run of a CodeQL query against one or more repositories."
}
code-scanning-variant-analysis-language
{
"enum": [
"actions",
"cpp",
"csharp",
"go",
"java",
"javascript",
"python",
"ruby",
"rust",
"swift"
],
"type": "string",
"description": "The language targeted by the CodeQL query"
}
code-scanning-variant-analysis-repo-task
{
"type": "object",
"required": [
"repository",
"analysis_status"
],
"properties": {
"repository": {
"$ref": "#/components/schemas/simple-repository"
},
"artifact_url": {
"type": "string",
"description": "The URL of the artifact. This is only available for successful analyses."
},
"result_count": {
"type": "integer",
"description": "The number of results in the case of a successful analysis. This is only available for successful analyses."
},
"analysis_status": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-status"
},
"failure_message": {
"type": "string",
"description": "The reason of the failure of this repo task. This is only available if the repository task has failed."
},
"database_commit_sha": {
"type": "string",
"description": "The SHA of the commit the CodeQL database was built against. This is only available for successful analyses."
},
"artifact_size_in_bytes": {
"type": "integer",
"description": "The size of the artifact. This is only available for successful analyses."
},
"source_location_prefix": {
"type": "string",
"description": "The source location prefix to use. This is only available for successful analyses."
}
}
}
code-scanning-variant-analysis-repository
{
"type": "object",
"title": "Repository Identifier",
"required": [
"full_name",
"id",
"name",
"private",
"stargazers_count",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1296269,
"description": "A unique identifier of the repository."
},
"name": {
"type": "string",
"example": "Hello-World",
"description": "The name of the repository."
},
"private": {
"type": "boolean",
"description": "Whether the repository is private."
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World",
"description": "The full, globally unique, name of the repository."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"stargazers_count": {
"type": "integer",
"example": 80
}
},
"description": "Repository Identifier"
}
code-scanning-variant-analysis-skipped-repo-group
{
"type": "object",
"required": [
"repository_count",
"repositories"
],
"properties": {
"repositories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/code-scanning-variant-analysis-repository"
},
"description": "A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it."
},
"repository_count": {
"type": "integer",
"example": 2,
"description": "The total number of repositories that were skipped for this reason."
}
}
}
code-scanning-variant-analysis-status
{
"enum": [
"pending",
"in_progress",
"succeeded",
"failed",
"canceled",
"timed_out"
],
"type": "string",
"description": "The new status of the CodeQL variant analysis repository task."
}
code-search-result-item
{
"type": "object",
"title": "Code Search Result Item",
"required": [
"score",
"name",
"path",
"sha",
"git_url",
"html_url",
"url",
"repository"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"score": {
"type": "number"
},
"git_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"language": {
"type": "string",
"nullable": true
},
"file_size": {
"type": "integer"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"line_numbers": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"73..77",
"77..78"
]
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
},
"last_modified_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Code Search Result Item"
}
code-security-configuration
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The ID of the code security configuration"
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the configuration"
},
"name": {
"type": "string",
"description": "The name of the code security configuration. Must be unique within the organization."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The URL of the configuration"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"description": "A description of the code security configuration"
},
"enforcement": {
"enum": [
"enforced",
"unenforced"
],
"type": "string",
"description": "The enforcement status for a security configuration"
},
"target_type": {
"enum": [
"global",
"organization",
"enterprise"
],
"type": "string",
"description": "The type of the code security configuration."
},
"secret_scanning": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning"
},
"dependency_graph": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of Dependency Graph"
},
"advanced_security": {
"enum": [
"enabled",
"disabled",
"code_security",
"secret_protection"
],
"type": "string",
"description": "The enablement status of GitHub Advanced Security"
},
"dependabot_alerts": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of Dependabot alerts"
},
"code_scanning_options": {
"type": "object",
"nullable": true,
"properties": {
"allow_advanced": {
"type": "boolean",
"nullable": true,
"description": "Whether to allow repos which use advanced setup"
}
},
"description": "Feature options for code scanning"
},
"code_scanning_default_setup": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of code scanning default setup"
},
"dependabot_security_updates": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of Dependabot security updates"
},
"private_vulnerability_reporting": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of private vulnerability reporting"
},
"secret_scanning_generic_secrets": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of Copilot secret scanning"
},
"secret_scanning_push_protection": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning push protection"
},
"secret_scanning_validity_checks": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning validity checks"
},
"secret_scanning_delegated_bypass": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning delegated bypass"
},
"secret_scanning_extended_metadata": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning extended metadata"
},
"dependency_graph_autosubmit_action": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of Automatic dependency submission"
},
"code_scanning_default_setup_options": {
"type": "object",
"nullable": true,
"properties": {
"runner_type": {
"enum": [
"standard",
"labeled",
"not_set"
],
"type": "string",
"nullable": true,
"description": "Whether to use labeled runners or standard GitHub runners."
},
"runner_label": {
"type": "string",
"nullable": true,
"description": "The label of the runner to use for code scanning when runner_type is 'labeled'."
}
},
"description": "Feature options for code scanning default setup"
},
"dependabot_delegated_alert_dismissal": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"nullable": true,
"description": "The enablement status of Dependabot delegated alert dismissal"
},
"secret_scanning_non_provider_patterns": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning non-provider patterns"
},
"code_scanning_delegated_alert_dismissal": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of code scanning delegated alert dismissal"
},
"secret_scanning_delegated_bypass_options": {
"type": "object",
"properties": {
"reviewers": {
"type": "array",
"items": {
"type": "object",
"required": [
"reviewer_id",
"reviewer_type"
],
"properties": {
"mode": {
"enum": [
"ALWAYS",
"EXEMPT"
],
"type": "string",
"default": "ALWAYS",
"description": "The bypass mode for the reviewer"
},
"reviewer_id": {
"type": "integer",
"description": "The ID of the team or role selected as a bypass reviewer"
},
"reviewer_type": {
"enum": [
"TEAM",
"ROLE"
],
"type": "string",
"description": "The type of the bypass reviewer"
},
"security_configuration_id": {
"type": "integer",
"description": "The ID of the security configuration associated with this bypass reviewer"
}
}
},
"description": "The bypass reviewers for secret scanning delegated bypass"
}
},
"description": "Feature options for secret scanning delegated bypass"
},
"secret_scanning_delegated_alert_dismissal": {
"enum": [
"enabled",
"disabled",
"not_set"
],
"type": "string",
"description": "The enablement status of secret scanning delegated alert dismissal"
},
"dependency_graph_autosubmit_action_options": {
"type": "object",
"properties": {
"labeled_runners": {
"type": "boolean",
"description": "Whether to use runners labeled with 'dependency-submission' or standard GitHub runners."
}
},
"description": "Feature options for Automatic dependency submission"
}
},
"description": "A code security configuration"
}
code-security-configuration-for-repository
{
"type": "object",
"properties": {
"status": {
"enum": [
"attached",
"attaching",
"detached",
"removed",
"enforced",
"failed",
"updating",
"removed_by_enterprise"
],
"type": "string",
"description": "The attachment status of the code security configuration on the repository."
},
"configuration": {
"$ref": "#/components/schemas/code-security-configuration"
}
},
"description": "Code security configuration associated with a repository and attachment status"
}
code-security-configuration-repositories
{
"type": "object",
"properties": {
"status": {
"enum": [
"attached",
"attaching",
"detached",
"removed",
"enforced",
"failed",
"updating",
"removed_by_enterprise"
],
"type": "string",
"description": "The attachment status of the code security configuration on the repository."
},
"repository": {
"$ref": "#/components/schemas/simple-repository"
}
},
"description": "Repositories associated with a code security configuration and attachment status"
}
code-security-default-configurations
{
"type": "array",
"items": {
"type": "object",
"properties": {
"configuration": {
"$ref": "#/components/schemas/code-security-configuration"
},
"default_for_new_repos": {
"enum": [
"public",
"private_and_internal",
"all"
],
"description": "The visibility of newly created repositories for which the code security configuration will be applied to by default"
}
}
},
"description": "A list of default code security configurations"
}
codeowners-errors
{
"type": "object",
"title": "CODEOWNERS errors",
"required": [
"errors"
],
"properties": {
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"column",
"kind",
"message",
"path"
],
"properties": {
"kind": {
"type": "string",
"example": "Invalid owner",
"description": "The type of error."
},
"line": {
"type": "integer",
"example": 7,
"description": "The line number where this errors occurs."
},
"path": {
"type": "string",
"example": ".github/CODEOWNERS",
"description": "The path of the file where the error occured."
},
"column": {
"type": "integer",
"example": 3,
"description": "The column number where this errors occurs."
},
"source": {
"type": "string",
"example": "* user",
"description": "The contents of the line where the error occurs."
},
"message": {
"type": "string",
"example": "Invalid owner on line 7:\n\n * user\n ^",
"description": "A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)."
},
"suggestion": {
"type": "string",
"example": "The pattern `/` will never match anything, did you mean `*` instead?",
"nullable": true,
"description": "Suggested action to fix the error. This will usually be `null`, but is provided for some common errors."
}
}
}
}
},
"description": "A list of errors found in a repo's CODEOWNERS file"
}
codespace
{
"type": "object",
"title": "Codespace",
"required": [
"id",
"name",
"environment_id",
"owner",
"billable_owner",
"repository",
"machine",
"prebuild",
"created_at",
"updated_at",
"last_used_at",
"state",
"url",
"git_status",
"location",
"idle_timeout_minutes",
"web_url",
"machines_url",
"start_url",
"stop_url",
"pulls_url",
"recent_folders"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"description": "API URL for this codespace."
},
"name": {
"type": "string",
"example": "monalisa-octocat-hello-world-g4wpq6h95q",
"description": "Automatically generated name of this codespace."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"state": {
"enum": [
"Unknown",
"Created",
"Queued",
"Provisioning",
"Available",
"Awaiting",
"Unavailable",
"Deleted",
"Moved",
"Shutdown",
"Archived",
"Starting",
"ShuttingDown",
"Failed",
"Exporting",
"Updating",
"Rebuilding"
],
"type": "string",
"example": "Available",
"description": "State of this codespace."
},
"machine": {
"$ref": "#/components/schemas/nullable-codespace-machine"
},
"web_url": {
"type": "string",
"format": "uri",
"description": "URL to access this codespace on the web."
},
"location": {
"enum": [
"EastUs",
"SouthEastAsia",
"WestEurope",
"WestUs2"
],
"type": "string",
"example": "WestUs2",
"description": "The initally assigned location of a new codespace."
},
"prebuild": {
"type": "boolean",
"example": false,
"nullable": true,
"description": "Whether the codespace was created from a prebuild."
},
"stop_url": {
"type": "string",
"format": "uri",
"description": "API URL to stop this codespace."
},
"pulls_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "API URL for the Pull Request associated with this codespace, if any."
},
"start_url": {
"type": "string",
"format": "uri",
"description": "API URL to start this codespace."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"git_status": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"example": "main",
"description": "The current branch (or SHA if in detached HEAD state) of the local repository."
},
"ahead": {
"type": "integer",
"example": 0,
"description": "The number of commits the local repository is ahead of the remote."
},
"behind": {
"type": "integer",
"example": 0,
"description": "The number of commits the local repository is behind the remote."
},
"has_unpushed_changes": {
"type": "boolean",
"description": "Whether the local repository has unpushed changes."
},
"has_uncommitted_changes": {
"type": "boolean",
"description": "Whether the local repository has uncommitted changes."
}
},
"description": "Details about the codespace's git repository."
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"publish_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "API URL to publish this codespace to a new repository."
},
"display_name": {
"type": "string",
"example": "bookish space pancake",
"nullable": true,
"description": "Display name for this codespace."
},
"last_used_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"description": "Last known time this codespace was started."
},
"machines_url": {
"type": "string",
"format": "uri",
"description": "API URL to access available alternate machine types for this codespace."
},
"billable_owner": {
"$ref": "#/components/schemas/simple-user"
},
"environment_id": {
"type": "string",
"example": "26a7c758-7299-4a73-b978-5a92a7ae98a0",
"nullable": true,
"description": "UUID identifying this codespace's environment."
},
"recent_folders": {
"type": "array",
"items": {
"type": "string"
}
},
"devcontainer_path": {
"type": "string",
"example": ".devcontainer/example/devcontainer.json",
"nullable": true,
"description": "Path to devcontainer.json from repo root used to create Codespace."
},
"pending_operation": {
"type": "boolean",
"nullable": true,
"description": "Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it."
},
"idle_timeout_notice": {
"type": "string",
"nullable": true,
"description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy"
},
"runtime_constraints": {
"type": "object",
"properties": {
"allowed_port_privacy_settings": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The privacy settings a user can select from when forwarding a port."
}
}
},
"idle_timeout_minutes": {
"type": "integer",
"example": 60,
"nullable": true,
"description": "The number of minutes of inactivity after which this codespace will be automatically stopped."
},
"retention_expires_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T20:01:12Z",
"nullable": true,
"description": "When a codespace will be auto-deleted based on the \"retention_period_minutes\" and \"last_used_at\""
},
"last_known_stop_notice": {
"type": "string",
"example": "you've used 100% of your spending limit for Codespaces",
"nullable": true,
"description": "The text to display to a user when a codespace has been stopped for a potentially actionable reason."
},
"retention_period_minutes": {
"type": "integer",
"example": 60,
"nullable": true,
"description": "Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days)."
},
"pending_operation_disabled_reason": {
"type": "string",
"nullable": true,
"description": "Text to show user when codespace is disabled by a pending operation"
}
},
"description": "A codespace."
}
codespace-export-details
{
"type": "object",
"title": "Fetches information about an export of a codespace.",
"properties": {
"id": {
"type": "string",
"example": "latest",
"description": "Id for the export details"
},
"sha": {
"type": "string",
"example": "fd95a81ca01e48ede9f39c799ecbcef817b8a3b2",
"nullable": true,
"description": "Git commit SHA of the exported branch"
},
"state": {
"type": "string",
"example": "succeeded | failed | in_progress",
"nullable": true,
"description": "State of the latest export"
},
"branch": {
"type": "string",
"example": "codespace-monalisa-octocat-hello-world-g4wpq6h95q",
"nullable": true,
"description": "Name of the exported branch"
},
"html_url": {
"type": "string",
"example": "https://github.com/octocat/hello-world/tree/:branch",
"nullable": true,
"description": "Web url for the exported branch"
},
"export_url": {
"type": "string",
"example": "https://api.github.com/user/codespaces/:name/exports/latest",
"description": "Url for fetching export details"
},
"completed_at": {
"type": "string",
"format": "date-time",
"example": "2021-01-01T19:01:12Z",
"nullable": true,
"description": "Completion time of the last export operation"
}
},
"description": "An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest"
}
codespace-machine
{
"type": "object",
"title": "Codespace machine",
"required": [
"name",
"display_name",
"operating_system",
"storage_in_bytes",
"memory_in_bytes",
"cpus",
"prebuild_availability"
],
"properties": {
"cpus": {
"type": "integer",
"example": 4,
"description": "How many cores are available to the codespace."
},
"name": {
"type": "string",
"example": "standardLinux",
"description": "The name of the machine."
},
"display_name": {
"type": "string",
"example": "4 cores, 16 GB RAM, 64 GB storage",
"description": "The display name of the machine includes cores, memory, and storage."
},
"memory_in_bytes": {
"type": "integer",
"example": 17179869184,
"description": "How much memory is available to the codespace."
},
"operating_system": {
"type": "string",
"example": "linux",
"description": "The operating system of the machine."
},
"storage_in_bytes": {
"type": "integer",
"example": 68719476736,
"description": "How much storage is available to the codespace."
},
"prebuild_availability": {
"enum": [
"none",
"ready",
"in_progress"
],
"type": "string",
"example": "ready",
"nullable": true,
"description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status."
}
},
"description": "A description of the machine powering a codespace."
}
codespace-with-full-repository
{
"type": "object",
"title": "Codespace",
"required": [
"id",
"name",
"environment_id",
"owner",
"billable_owner",
"repository",
"machine",
"prebuild",
"created_at",
"updated_at",
"last_used_at",
"state",
"url",
"git_status",
"location",
"idle_timeout_minutes",
"web_url",
"machines_url",
"start_url",
"stop_url",
"pulls_url",
"recent_folders"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"description": "API URL for this codespace."
},
"name": {
"type": "string",
"example": "monalisa-octocat-hello-world-g4wpq6h95q",
"description": "Automatically generated name of this codespace."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"state": {
"enum": [
"Unknown",
"Created",
"Queued",
"Provisioning",
"Available",
"Awaiting",
"Unavailable",
"Deleted",
"Moved",
"Shutdown",
"Archived",
"Starting",
"ShuttingDown",
"Failed",
"Exporting",
"Updating",
"Rebuilding"
],
"type": "string",
"example": "Available",
"description": "State of this codespace."
},
"machine": {
"$ref": "#/components/schemas/nullable-codespace-machine"
},
"web_url": {
"type": "string",
"format": "uri",
"description": "URL to access this codespace on the web."
},
"location": {
"enum": [
"EastUs",
"SouthEastAsia",
"WestEurope",
"WestUs2"
],
"type": "string",
"example": "WestUs2",
"description": "The initally assigned location of a new codespace."
},
"prebuild": {
"type": "boolean",
"example": false,
"nullable": true,
"description": "Whether the codespace was created from a prebuild."
},
"stop_url": {
"type": "string",
"format": "uri",
"description": "API URL to stop this codespace."
},
"pulls_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "API URL for the Pull Request associated with this codespace, if any."
},
"start_url": {
"type": "string",
"format": "uri",
"description": "API URL to start this codespace."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"git_status": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"example": "main",
"description": "The current branch (or SHA if in detached HEAD state) of the local repository."
},
"ahead": {
"type": "integer",
"example": 0,
"description": "The number of commits the local repository is ahead of the remote."
},
"behind": {
"type": "integer",
"example": 0,
"description": "The number of commits the local repository is behind the remote."
},
"has_unpushed_changes": {
"type": "boolean",
"description": "Whether the local repository has unpushed changes."
},
"has_uncommitted_changes": {
"type": "boolean",
"description": "Whether the local repository has uncommitted changes."
}
},
"description": "Details about the codespace's git repository."
},
"repository": {
"$ref": "#/components/schemas/full-repository"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"publish_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "API URL to publish this codespace to a new repository."
},
"display_name": {
"type": "string",
"example": "bookish space pancake",
"nullable": true,
"description": "Display name for this codespace."
},
"last_used_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"description": "Last known time this codespace was started."
},
"machines_url": {
"type": "string",
"format": "uri",
"description": "API URL to access available alternate machine types for this codespace."
},
"billable_owner": {
"$ref": "#/components/schemas/simple-user"
},
"environment_id": {
"type": "string",
"example": "26a7c758-7299-4a73-b978-5a92a7ae98a0",
"nullable": true,
"description": "UUID identifying this codespace's environment."
},
"recent_folders": {
"type": "array",
"items": {
"type": "string"
}
},
"devcontainer_path": {
"type": "string",
"example": ".devcontainer/example/devcontainer.json",
"nullable": true,
"description": "Path to devcontainer.json from repo root used to create Codespace."
},
"pending_operation": {
"type": "boolean",
"nullable": true,
"description": "Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it."
},
"idle_timeout_notice": {
"type": "string",
"nullable": true,
"description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy"
},
"runtime_constraints": {
"type": "object",
"properties": {
"allowed_port_privacy_settings": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The privacy settings a user can select from when forwarding a port."
}
}
},
"idle_timeout_minutes": {
"type": "integer",
"example": 60,
"nullable": true,
"description": "The number of minutes of inactivity after which this codespace will be automatically stopped."
},
"retention_expires_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T20:01:12Z",
"nullable": true,
"description": "When a codespace will be auto-deleted based on the \"retention_period_minutes\" and \"last_used_at\""
},
"retention_period_minutes": {
"type": "integer",
"example": 60,
"nullable": true,
"description": "Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days)."
},
"pending_operation_disabled_reason": {
"type": "string",
"nullable": true,
"description": "Text to show user when codespace is disabled by a pending operation"
}
},
"description": "A codespace."
}
codespaces-org-secret
{
"type": "object",
"title": "Codespaces Secret",
"required": [
"name",
"created_at",
"updated_at",
"visibility"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_NAME",
"description": "The name of the secret"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "The type of repositories in the organization that the secret is visible to"
},
"selected_repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/ORGANIZATION/codespaces/secrets/SECRET_NAME/repositories",
"description": "The API URL at which the list of repositories this secret is visible to can be retrieved"
}
},
"description": "Secrets for a GitHub Codespace."
}
codespaces-permissions-check-for-devcontainer
{
"type": "object",
"title": "Codespaces Permissions Check",
"required": [
"accepted"
],
"properties": {
"accepted": {
"type": "boolean",
"example": true,
"description": "Whether the user has accepted the permissions defined by the devcontainer config"
}
},
"description": "Permission check result for a given devcontainer config."
}
codespaces-public-key
{
"type": "object",
"title": "CodespacesPublicKey",
"required": [
"key_id",
"key"
],
"properties": {
"id": {
"type": "integer",
"example": 2
},
"key": {
"type": "string",
"example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=",
"description": "The Base64 encoded public key."
},
"url": {
"type": "string",
"example": "https://api.github.com/user/keys/2"
},
"title": {
"type": "string",
"example": "ssh-rsa AAAAB3NzaC1yc2EAAA"
},
"key_id": {
"type": "string",
"example": "1234567",
"description": "The identifier for the key."
},
"created_at": {
"type": "string",
"example": "2011-01-26T19:01:12Z"
}
},
"description": "The public key used for setting Codespaces secrets."
}
codespaces-secret
{
"type": "object",
"title": "Codespaces Secret",
"required": [
"name",
"created_at",
"updated_at",
"visibility",
"selected_repositories_url"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_NAME",
"description": "The name of the secret"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "The type of repositories in the organization that the secret is visible to"
},
"selected_repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/user/secrets/SECRET_NAME/repositories",
"description": "The API URL at which the list of repositories this secret is visible to can be retrieved"
}
},
"description": "Secrets for a GitHub Codespace."
}
codespaces-user-public-key
{
"type": "object",
"title": "CodespacesUserPublicKey",
"required": [
"key_id",
"key"
],
"properties": {
"key": {
"type": "string",
"example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=",
"description": "The Base64 encoded public key."
},
"key_id": {
"type": "string",
"example": "1234567",
"description": "The identifier for the key."
}
},
"description": "The public key used for setting user Codespaces' Secrets."
}
collaborator
{
"type": "object",
"title": "Collaborator",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url",
"role_name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"role_name": {
"type": "string",
"example": "admin"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
}
},
"description": "Collaborator"
}
combined-commit-status
{
"type": "object",
"title": "Combined Commit Status",
"required": [
"state",
"sha",
"total_count",
"statuses",
"repository",
"commit_url",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"type": "string"
},
"statuses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-commit-status"
}
},
"commit_url": {
"type": "string",
"format": "uri"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"total_count": {
"type": "integer"
}
},
"description": "Combined Commit Status"
}
commit
{
"type": "object",
"title": "Commit",
"required": [
"url",
"sha",
"node_id",
"html_url",
"comments_url",
"commit",
"author",
"committer",
"parents"
],
"properties": {
"sha": {
"type": "string",
"example": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/diff-entry"
}
},
"stats": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"additions": {
"type": "integer"
},
"deletions": {
"type": "integer"
}
}
},
"author": {
"oneOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/empty-object"
}
],
"nullable": true
},
"commit": {
"type": "object",
"required": [
"author",
"committer",
"comment_count",
"message",
"tree",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"example": "827efc6d56897b048c772eb4087f854f46256132"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/tree/827efc6d56897b048c772eb4087f854f46256132"
}
}
},
"author": {
"$ref": "#/components/schemas/nullable-git-user"
},
"message": {
"type": "string",
"example": "Fix all the bugs"
},
"committer": {
"$ref": "#/components/schemas/nullable-git-user"
},
"verification": {
"$ref": "#/components/schemas/verification"
},
"comment_count": {
"type": "integer",
"example": 0
}
}
},
"node_id": {
"type": "string",
"example": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ=="
},
"parents": {
"type": "array",
"items": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/commits/7638417db6d59f3c431d3e1f261cc637155684cd"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd"
}
}
}
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"committer": {
"oneOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/empty-object"
}
],
"nullable": true
},
"comments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments"
}
},
"description": "Commit"
}
commit-activity
{
"type": "object",
"title": "Commit Activity",
"required": [
"days",
"total",
"week"
],
"properties": {
"days": {
"type": "array",
"items": {
"type": "integer"
},
"example": [
0,
3,
26,
20,
39,
1,
0
]
},
"week": {
"type": "integer",
"example": 1336280400
},
"total": {
"type": "integer",
"example": 89
}
},
"description": "Commit Activity"
}
commit-comment
{
"type": "object",
"title": "Commit Comment",
"required": [
"url",
"html_url",
"id",
"node_id",
"user",
"position",
"line",
"path",
"commit_id",
"body",
"author_association",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string"
},
"line": {
"type": "integer",
"nullable": true
},
"path": {
"type": "string",
"nullable": true
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"position": {
"type": "integer",
"nullable": true
},
"commit_id": {
"type": "string"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
}
},
"description": "Commit Comment"
}
commit-comment-event
{
"type": "object",
"title": "CommitCommentEvent",
"required": [
"action",
"comment"
],
"properties": {
"action": {
"type": "string"
},
"comment": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string"
},
"line": {
"type": "integer",
"nullable": true
},
"path": {
"type": "string",
"nullable": true
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"position": {
"type": "integer",
"nullable": true
},
"commit_id": {
"type": "string"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
commit-comparison
{
"type": "object",
"title": "Commit Comparison",
"required": [
"url",
"html_url",
"permalink_url",
"diff_url",
"patch_url",
"base_commit",
"merge_base_commit",
"status",
"ahead_by",
"behind_by",
"total_commits",
"commits"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/compare/master...topic"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/diff-entry"
}
},
"status": {
"enum": [
"diverged",
"ahead",
"behind",
"identical"
],
"type": "string",
"example": "ahead"
},
"commits": {
"type": "array",
"items": {
"$ref": "#/components/schemas/commit"
}
},
"ahead_by": {
"type": "integer",
"example": 4
},
"diff_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/compare/master...topic.diff"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/compare/master...topic"
},
"behind_by": {
"type": "integer",
"example": 5
},
"patch_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/compare/master...topic.patch"
},
"base_commit": {
"$ref": "#/components/schemas/commit"
},
"permalink_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/compare/octocat:bbcd538c8e72b8c175046e27cc8f907076331401...octocat:0328041d1152db8ae77652d1618a02e57f745f17"
},
"total_commits": {
"type": "integer",
"example": 6
},
"merge_base_commit": {
"$ref": "#/components/schemas/commit"
}
},
"description": "Commit Comparison"
}
commit-search-result-item
{
"type": "object",
"title": "Commit Search Result Item",
"required": [
"sha",
"node_id",
"url",
"html_url",
"author",
"committer",
"parents",
"comments_url",
"commit",
"repository",
"score"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"score": {
"type": "number"
},
"author": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"commit": {
"type": "object",
"required": [
"author",
"committer",
"comment_count",
"message",
"tree",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"author": {
"type": "object",
"required": [
"name",
"email",
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"message": {
"type": "string"
},
"committer": {
"$ref": "#/components/schemas/nullable-git-user"
},
"verification": {
"$ref": "#/components/schemas/verification"
},
"comment_count": {
"type": "integer"
}
}
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
},
"html_url": {
"type": "string"
}
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"committer": {
"$ref": "#/components/schemas/nullable-git-user"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
}
},
"description": "Commit Search Result Item"
}
community-profile
{
"type": "object",
"title": "Community Profile",
"required": [
"health_percentage",
"description",
"documentation",
"files",
"updated_at"
],
"properties": {
"files": {
"type": "object",
"required": [
"code_of_conduct",
"code_of_conduct_file",
"license",
"contributing",
"readme",
"issue_template",
"pull_request_template"
],
"properties": {
"readme": {
"$ref": "#/components/schemas/nullable-community-health-file"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"contributing": {
"$ref": "#/components/schemas/nullable-community-health-file"
},
"issue_template": {
"$ref": "#/components/schemas/nullable-community-health-file"
},
"code_of_conduct": {
"$ref": "#/components/schemas/nullable-code-of-conduct-simple"
},
"code_of_conduct_file": {
"$ref": "#/components/schemas/nullable-community-health-file"
},
"pull_request_template": {
"$ref": "#/components/schemas/nullable-community-health-file"
}
}
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2017-02-28T19:09:29Z",
"nullable": true
},
"description": {
"type": "string",
"example": "My first repository on GitHub!",
"nullable": true
},
"documentation": {
"type": "string",
"example": "example.com",
"nullable": true
},
"health_percentage": {
"type": "integer",
"example": 100
},
"content_reports_enabled": {
"type": "boolean",
"example": true
}
},
"description": "Community Profile"
}
content-directory
{
"type": "array",
"items": {
"type": "object",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"enum": [
"dir",
"file",
"submodule",
"symlink"
],
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"type": "string"
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
},
"title": "Content Directory",
"description": "A list of directory items"
}
content-file
{
"type": "object",
"title": "Content File",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url",
"content",
"encoding"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"enum": [
"file"
],
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"target": {
"type": "string",
"example": "\"actual/actual.md\""
},
"content": {
"type": "string"
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"encoding": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"submodule_git_url": {
"type": "string",
"example": "\"git://example.com/defunkt/dotjs.git\""
}
},
"description": "Content File"
}
content-submodule
{
"type": "object",
"title": "Submodule Content",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url",
"submodule_git_url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"enum": [
"submodule"
],
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"submodule_git_url": {
"type": "string",
"format": "uri"
}
},
"description": "An object describing a submodule"
}
content-symlink
{
"type": "object",
"title": "Symlink Content",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url",
"target"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"enum": [
"symlink"
],
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"target": {
"type": "string"
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"description": "An object describing a symlink"
}
content-traffic
{
"type": "object",
"title": "Content Traffic",
"required": [
"path",
"title",
"uniques",
"count"
],
"properties": {
"path": {
"type": "string",
"example": "/github/hubot"
},
"count": {
"type": "integer",
"example": 3542
},
"title": {
"type": "string",
"example": "github/hubot: A customizable life embetterment robot."
},
"uniques": {
"type": "integer",
"example": 2225
}
},
"description": "Content Traffic"
}
content-tree
{
"type": "object",
"title": "Content Tree",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"type": "string"
},
"entries": {
"type": "array",
"items": {
"type": "object",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
}
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"encoding": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"description": "Content Tree"
}
contributor
{
"type": "object",
"title": "Contributor",
"required": [
"contributions",
"type"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"email": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string",
"nullable": true
},
"starred_url": {
"type": "string"
},
"contributions": {
"type": "integer"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
},
"description": "Contributor"
}
contributor-activity
{
"type": "object",
"title": "Contributor Activity",
"required": [
"author",
"total",
"weeks"
],
"properties": {
"total": {
"type": "integer",
"example": 135
},
"weeks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"a": {
"type": "integer"
},
"c": {
"type": "integer"
},
"d": {
"type": "integer"
},
"w": {
"type": "integer"
}
}
},
"example": [
{
"a": 6898,
"c": 10,
"d": 77,
"w": "1367712000"
}
]
},
"author": {
"$ref": "#/components/schemas/nullable-simple-user"
}
},
"description": "Contributor Activity"
}
converted-note-to-issue-issue-event
{
"type": "object",
"title": "Converted Note to Issue Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"project_card": {
"type": "object",
"required": [
"id",
"url",
"project_id",
"project_url",
"column_name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"project_id": {
"type": "integer"
},
"column_name": {
"type": "string"
},
"project_url": {
"type": "string",
"format": "uri"
},
"previous_column_name": {
"type": "string"
}
}
},
"performed_via_github_app": {
"$ref": "#/components/schemas/integration"
}
},
"description": "Converted Note to Issue Issue Event"
}
copilot-dotcom-chat
{
"type": "object",
"nullable": true,
"properties": {
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the model used for Copilot Chat. If the default model is used will appear as 'default'."
},
"total_chats": {
"type": "integer",
"description": "Total number of chats initiated by users on github.com."
},
"is_custom_model": {
"type": "boolean",
"description": "Indicates whether a model is custom or default."
},
"total_engaged_users": {
"type": "integer",
"description": "Total number of users who prompted Copilot Chat on github.com at least once for each model."
},
"custom_model_training_date": {
"type": "string",
"nullable": true,
"description": "The training date for the custom model (if applicable)."
}
}
},
"description": "List of model metrics for a custom models and the default model."
},
"total_engaged_users": {
"type": "integer",
"description": "Total number of users who prompted Copilot Chat on github.com at least once."
}
},
"description": "Usage metrics for Copilot Chat in GitHub.com",
"additionalProperties": true
}
copilot-dotcom-pull-requests
{
"type": "object",
"nullable": true,
"properties": {
"repositories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Repository name"
},
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'."
},
"is_custom_model": {
"type": "boolean",
"description": "Indicates whether a model is custom or default."
},
"total_engaged_users": {
"type": "integer",
"description": "The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model."
},
"custom_model_training_date": {
"type": "string",
"nullable": true,
"description": "The training date for the custom model."
},
"total_pr_summaries_created": {
"type": "integer",
"description": "The number of pull request summaries generated using Copilot for Pull Requests in the given repository."
}
}
},
"description": "List of model metrics for custom models and the default model."
},
"total_engaged_users": {
"type": "integer",
"description": "The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository."
}
}
},
"description": "Repositories in which users used Copilot for Pull Requests to generate pull request summaries"
},
"total_engaged_users": {
"type": "integer",
"description": "The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once."
}
},
"description": "Usage metrics for Copilot for pull requests.",
"additionalProperties": true
}
copilot-ide-chat
{
"type": "object",
"nullable": true,
"properties": {
"editors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the given editor."
},
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the model used for Copilot Chat. If the default model is used will appear as 'default'."
},
"total_chats": {
"type": "integer",
"description": "The total number of chats initiated by users in the given editor and model."
},
"is_custom_model": {
"type": "boolean",
"description": "Indicates whether a model is custom or default."
},
"total_engaged_users": {
"type": "integer",
"description": "The number of users who prompted Copilot Chat in the given editor and model."
},
"total_chat_copy_events": {
"type": "integer",
"description": "The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor."
},
"custom_model_training_date": {
"type": "string",
"nullable": true,
"description": "The training date for the custom model."
},
"total_chat_insertion_events": {
"type": "integer",
"description": "The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor."
}
}
},
"description": "List of model metrics for custom models and the default model."
},
"total_engaged_users": {
"type": "integer",
"description": "The number of users who prompted Copilot Chat in the specified editor."
}
},
"description": "Copilot Chat metrics, for active editors."
}
},
"total_engaged_users": {
"type": "integer",
"description": "Total number of users who prompted Copilot Chat in the IDE."
}
},
"description": "Usage metrics for Copilot Chat in the IDE.",
"additionalProperties": true
}
copilot-ide-code-completions
{
"type": "object",
"nullable": true,
"properties": {
"editors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the given editor."
},
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'."
},
"languages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the language used for Copilot code completion suggestions, for the given editor."
},
"total_engaged_users": {
"type": "integer",
"description": "Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances."
},
"total_code_acceptances": {
"type": "integer",
"description": "The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances."
},
"total_code_suggestions": {
"type": "integer",
"description": "The number of Copilot code suggestions generated for the given editor, for the given language."
},
"total_code_lines_accepted": {
"type": "integer",
"description": "The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language."
},
"total_code_lines_suggested": {
"type": "integer",
"description": "The number of lines of code suggested by Copilot code completions for the given editor, for the given language."
}
},
"description": "Usage metrics for a given language for the given editor for Copilot code completions."
},
"description": "Code completion metrics for active languages, for the given editor."
},
"is_custom_model": {
"type": "boolean",
"description": "Indicates whether a model is custom or default."
},
"total_engaged_users": {
"type": "integer",
"description": "Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances."
},
"custom_model_training_date": {
"type": "string",
"nullable": true,
"description": "The training date for the custom model."
}
}
},
"description": "List of model metrics for custom models and the default model."
},
"total_engaged_users": {
"type": "integer",
"description": "Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances."
}
},
"description": "Copilot code completion metrics for active editors.",
"additionalProperties": true
}
},
"languages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the language used for Copilot code completion suggestions."
},
"total_engaged_users": {
"type": "integer",
"description": "Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances."
}
},
"description": "Usage metrics for a given language for the given editor for Copilot code completions."
},
"description": "Code completion metrics for active languages."
},
"total_engaged_users": {
"type": "integer",
"description": "Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances."
}
},
"description": "Usage metrics for Copilot editor code completions in the IDE.",
"additionalProperties": true
}
copilot-organization-content-exclusion-details
{
"type": "object",
"title": "Copilot Organization Content Exclusion Details",
"description": "List all Copilot Content Exclusion rules for an organization.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"description": "The path to the file that will be excluded."
}
}
}
copilot-organization-details
{
"type": "object",
"title": "Copilot Organization Details",
"required": [
"seat_breakdown",
"public_code_suggestions",
"seat_management_setting"
],
"properties": {
"cli": {
"enum": [
"enabled",
"disabled",
"unconfigured"
],
"type": "string",
"description": "The organization policy for allowing or disallowing Copilot CLI."
},
"ide_chat": {
"enum": [
"enabled",
"disabled",
"unconfigured"
],
"type": "string",
"description": "The organization policy for allowing or disallowing Copilot Chat in the IDE."
},
"plan_type": {
"enum": [
"business",
"enterprise"
],
"type": "string",
"description": "The Copilot plan of the organization, or the parent enterprise, when applicable."
},
"platform_chat": {
"enum": [
"enabled",
"disabled",
"unconfigured"
],
"type": "string",
"description": "The organization policy for allowing or disallowing Copilot features on GitHub.com."
},
"seat_breakdown": {
"$ref": "#/components/schemas/copilot-organization-seat-breakdown"
},
"public_code_suggestions": {
"enum": [
"allow",
"block",
"unconfigured"
],
"type": "string",
"description": "The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)."
},
"seat_management_setting": {
"enum": [
"assign_all",
"assign_selected",
"disabled",
"unconfigured"
],
"type": "string",
"description": "The mode of assigning new seats."
}
},
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.",
"additionalProperties": true
}
copilot-organization-seat-breakdown
{
"type": "object",
"title": "Copilot Seat Breakdown",
"properties": {
"total": {
"type": "integer",
"description": "The total number of seats being billed for the organization as of the current billing cycle."
},
"added_this_cycle": {
"type": "integer",
"description": "Seats added during the current billing cycle."
},
"active_this_cycle": {
"type": "integer",
"description": "The number of seats that have used Copilot during the current billing cycle."
},
"pending_invitation": {
"type": "integer",
"description": "The number of users who have been invited to receive a Copilot seat through this organization."
},
"inactive_this_cycle": {
"type": "integer",
"description": "The number of seats that have not used Copilot during the current billing cycle."
},
"pending_cancellation": {
"type": "integer",
"description": "The number of seats that are pending cancellation at the end of the current billing cycle."
}
},
"description": "The breakdown of Copilot Business seats for the organization."
}
copilot-seat-details
{
"type": "object",
"title": "Copilot Business Seat Detail",
"required": [
"created_at"
],
"properties": {
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"plan_type": {
"enum": [
"business",
"enterprise",
"unknown"
],
"type": "string",
"description": "The Copilot plan of the organization, or the parent enterprise, when applicable."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format."
},
"updated_at": {
"type": "string",
"format": "date-time",
"deprecated": true,
"description": "**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format."
},
"organization": {
"$ref": "#/components/schemas/nullable-organization-simple"
},
"assigning_team": {
"oneOf": [
{
"$ref": "#/components/schemas/team"
},
{
"$ref": "#/components/schemas/enterprise-team"
}
],
"nullable": true,
"description": "The team through which the assignee is granted access to GitHub Copilot, if applicable."
},
"last_activity_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of user's last GitHub Copilot activity, in ISO 8601 format."
},
"last_activity_editor": {
"type": "string",
"nullable": true,
"description": "Last editor that was used by the user for a GitHub Copilot completion."
},
"last_authenticated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format."
},
"pending_cancellation_date": {
"type": "string",
"format": "date",
"nullable": true,
"description": "The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle."
}
},
"description": "Information about a Copilot Business seat assignment for a user, team, or organization.",
"additionalProperties": false
}
copilot-usage-metrics-1-day-report
{
"type": "object",
"title": "Copilot Metrics 1 Day Report",
"required": [
"download_links",
"report_day"
],
"properties": {
"report_day": {
"type": "string",
"format": "date",
"description": "The day of the report in `YYYY-MM-DD` format."
},
"download_links": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "The URLs to download the Copilot usage metrics report for the enterprise/organization for the specified day."
}
},
"description": "Links to download the Copilot usage metrics report for an enterprise/organization for a specific day."
}
copilot-usage-metrics-28-day-report
{
"type": "object",
"title": "Copilot Metrics 28 Day Report",
"required": [
"download_links",
"report_start_day",
"report_end_day"
],
"properties": {
"download_links": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "The URLs to download the latest Copilot usage metrics report for the enterprise/organization."
},
"report_end_day": {
"type": "string",
"format": "date",
"description": "The end date of the report period in `YYYY-MM-DD` format."
},
"report_start_day": {
"type": "string",
"format": "date",
"description": "The start date of the report period in `YYYY-MM-DD` format."
}
},
"description": "Links to download the latest Copilot usage metrics report for an enterprise/organization."
}
copilot-usage-metrics-day
{
"type": "object",
"title": "Copilot Usage Metrics",
"required": [
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date",
"description": "The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format."
},
"copilot_ide_chat": {
"$ref": "#/components/schemas/copilot-ide-chat"
},
"total_active_users": {
"type": "integer",
"description": "The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint."
},
"copilot_dotcom_chat": {
"$ref": "#/components/schemas/copilot-dotcom-chat"
},
"total_engaged_users": {
"type": "integer",
"description": "The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint."
},
"copilot_dotcom_pull_requests": {
"$ref": "#/components/schemas/copilot-dotcom-pull-requests"
},
"copilot_ide_code_completions": {
"$ref": "#/components/schemas/copilot-ide-code-completions"
}
},
"description": "Copilot usage metrics for a given day.",
"additionalProperties": true
}
create-event
{
"type": "object",
"title": "CreateEvent",
"required": [
"ref",
"ref_type",
"full_ref",
"master_branch",
"pusher_type"
],
"properties": {
"ref": {
"type": "string"
},
"full_ref": {
"type": "string"
},
"ref_type": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"pusher_type": {
"type": "string"
},
"master_branch": {
"type": "string"
}
}
}
custom-deployment-rule-app
{
"type": "object",
"title": "Custom deployment protection rule app",
"required": [
"id",
"slug",
"integration_url",
"node_id"
],
"properties": {
"id": {
"type": "integer",
"example": 3515,
"description": "The unique identifier of the deployment protection rule integration."
},
"slug": {
"type": "string",
"example": "my-custom-app",
"description": "The slugified name of the deployment protection rule integration."
},
"node_id": {
"type": "string",
"example": "MDQ6R2F0ZTM1MTU=",
"description": "The node ID for the deployment protection rule integration."
},
"integration_url": {
"type": "string",
"example": "https://api.github.com/apps/custom-app-slug",
"description": "The URL for the endpoint to get details about the app."
}
},
"description": "A GitHub App that is providing a custom deployment protection rule."
}
custom-property
{
"type": "object",
"title": "Organization Custom Property",
"required": [
"property_name",
"value_type"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL that can be used to fetch, update, or delete info about this property via the API."
},
"required": {
"type": "boolean",
"description": "Whether the property is required."
},
"value_type": {
"enum": [
"string",
"single_select",
"multi_select",
"true_false",
"url"
],
"type": "string",
"example": "single_select",
"description": "The type of the value for the property"
},
"description": {
"type": "string",
"nullable": true,
"description": "Short description of the property"
},
"source_type": {
"enum": [
"organization",
"enterprise"
],
"type": "string",
"example": "organization",
"description": "The source type of the property"
},
"default_value": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"nullable": true,
"description": "Default value of the property"
},
"property_name": {
"type": "string",
"description": "The name of the property"
},
"allowed_values": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values."
},
"values_editable_by": {
"enum": [
"org_actors",
"org_and_repo_actors"
],
"type": "string",
"example": "org_actors",
"nullable": true,
"description": "Who can edit the values of the property"
},
"require_explicit_values": {
"type": "boolean",
"description": "Whether setting properties values is mandatory"
}
},
"description": "Custom property defined on an organization"
}
custom-property-set-payload
{
"type": "object",
"title": "Custom Property Set Payload",
"required": [
"value_type"
],
"properties": {
"required": {
"type": "boolean",
"description": "Whether the property is required."
},
"value_type": {
"enum": [
"string",
"single_select",
"multi_select",
"true_false",
"url"
],
"type": "string",
"example": "single_select",
"description": "The type of the value for the property"
},
"description": {
"type": "string",
"nullable": true,
"description": "Short description of the property"
},
"default_value": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"nullable": true,
"description": "Default value of the property"
},
"allowed_values": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values."
},
"values_editable_by": {
"enum": [
"org_actors",
"org_and_repo_actors"
],
"type": "string",
"example": "org_actors",
"nullable": true,
"description": "Who can edit the values of the property"
},
"require_explicit_values": {
"type": "boolean",
"description": "Whether setting properties values is mandatory"
}
},
"description": "Custom property set payload"
}
custom-property-value
{
"type": "object",
"title": "Custom Property Value",
"required": [
"property_name",
"value"
],
"properties": {
"value": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"nullable": true,
"description": "The value assigned to the property"
},
"property_name": {
"type": "string",
"description": "The name of the property"
}
},
"description": "Custom property name and associated value"
}
cvss-severities
{
"type": "object",
"nullable": true,
"properties": {
"cvss_v3": {
"type": "object",
"nullable": true,
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number",
"maximum": 10,
"minimum": 0,
"nullable": true,
"readOnly": true,
"description": "The CVSS 3 score."
},
"vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS 3 vector string."
}
}
},
"cvss_v4": {
"type": "object",
"nullable": true,
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number",
"maximum": 10,
"minimum": 0,
"nullable": true,
"readOnly": true,
"description": "The CVSS 4 score."
},
"vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS 4 vector string."
}
}
}
}
}
delete-budget
{
"type": "object",
"required": [
"message",
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The ID of the deleted budget"
},
"message": {
"type": "string",
"description": "A message indicating the result of the deletion operation"
}
}
}
delete-event
{
"type": "object",
"title": "DeleteEvent",
"required": [
"ref",
"ref_type",
"full_ref",
"pusher_type"
],
"properties": {
"ref": {
"type": "string"
},
"full_ref": {
"type": "string"
},
"ref_type": {
"type": "string"
},
"pusher_type": {
"type": "string"
}
}
}
demilestoned-issue-event
{
"type": "object",
"title": "Demilestoned Issue Event",
"required": [
"milestone",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
}
}
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Demilestoned Issue Event"
}
dependabot-alert
{
"type": "object",
"required": [
"number",
"state",
"dependency",
"security_advisory",
"security_vulnerability",
"url",
"html_url",
"created_at",
"updated_at",
"dismissed_at",
"dismissed_by",
"dismissed_reason",
"dismissed_comment",
"fixed_at"
],
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"state": {
"enum": [
"auto_dismissed",
"dismissed",
"fixed",
"open"
],
"type": "string",
"readOnly": true,
"description": "The state of the Dependabot alert."
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"fixed_at": {
"$ref": "#/components/schemas/alert-fixed-at"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"readOnly": true,
"description": "The users assigned to this alert."
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"dependency": {
"type": "object",
"readOnly": true,
"properties": {
"scope": {
"enum": [
"development",
"runtime"
],
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The execution scope of the vulnerable dependency."
},
"package": {
"$ref": "#/components/schemas/dependabot-alert-package"
},
"relationship": {
"enum": [
"unknown",
"direct",
"transitive",
"inconclusive"
],
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The vulnerable dependency's relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be \"unknown\" for all dependencies in unsupported ecosystems.\n"
},
"manifest_path": {
"type": "string",
"readOnly": true,
"description": "The full path to the dependency manifest file, relative to the root of the repository."
}
},
"description": "Details for the vulnerable dependency."
},
"updated_at": {
"$ref": "#/components/schemas/alert-updated-at"
},
"dismissed_at": {
"$ref": "#/components/schemas/alert-dismissed-at"
},
"dismissed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"dismissed_reason": {
"enum": [
"fix_started",
"inaccurate",
"no_bandwidth",
"not_used",
"tolerable_risk"
],
"type": "string",
"nullable": true,
"description": "The reason that the alert was dismissed."
},
"auto_dismissed_at": {
"$ref": "#/components/schemas/alert-auto-dismissed-at"
},
"dismissal_request": {
"$ref": "#/components/schemas/dependabot-alert-dismissal-request-simple"
},
"dismissed_comment": {
"type": "string",
"nullable": true,
"maxLength": 280,
"description": "An optional comment associated with the alert's dismissal."
},
"security_advisory": {
"$ref": "#/components/schemas/dependabot-alert-security-advisory"
},
"security_vulnerability": {
"$ref": "#/components/schemas/dependabot-alert-security-vulnerability"
}
},
"description": "A Dependabot alert.",
"additionalProperties": false
}
dependabot-alert-dismissal-request-simple
{
"type": "object",
"title": "Dependabot alert dismissal request",
"nullable": true,
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the dismissal request."
},
"url": {
"type": "string",
"format": "uri",
"description": "The API URL to get more information about this dismissal request."
},
"status": {
"enum": [
"pending",
"approved",
"rejected",
"cancelled"
],
"type": "string",
"description": "The current status of the dismissal request."
},
"requester": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the user."
},
"login": {
"type": "string",
"description": "The login name of the user."
}
},
"description": "The user who requested the dismissal."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time when the dismissal request was created."
}
},
"description": "Information about an active dismissal request for this Dependabot alert."
}
dependabot-alert-package
{
"type": "object",
"readOnly": true,
"required": [
"ecosystem",
"name"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"type": "string",
"readOnly": true,
"description": "The package's language or package management ecosystem."
}
},
"description": "Details for the vulnerable package.",
"additionalProperties": false
}
dependabot-alert-security-advisory
{
"type": "object",
"readOnly": true,
"required": [
"ghsa_id",
"cve_id",
"summary",
"description",
"vulnerabilities",
"severity",
"cvss",
"cwes",
"identifiers",
"references",
"published_at",
"updated_at",
"withdrawn_at"
],
"properties": {
"cvss": {
"type": "object",
"readOnly": true,
"required": [
"score",
"vector_string"
],
"properties": {
"score": {
"type": "number",
"maximum": 10,
"minimum": 0,
"readOnly": true,
"description": "The overall CVSS score of the advisory."
},
"vector_string": {
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The full CVSS vector string for the advisory."
}
},
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
"additionalProperties": false
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"readOnly": true,
"required": [
"cwe_id",
"name"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "The short, plain text name of the CWE."
},
"cwe_id": {
"type": "string",
"readOnly": true,
"description": "The unique CWE ID."
}
},
"description": "A CWE weakness assigned to the advisory.",
"additionalProperties": false
},
"readOnly": true,
"description": "Details for the advisory pertaining to Common Weakness Enumeration."
},
"epss": {
"$ref": "#/components/schemas/security-advisory-epss"
},
"cve_id": {
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The unique CVE ID assigned to the advisory."
},
"ghsa_id": {
"type": "string",
"readOnly": true,
"description": "The unique GitHub Security Advisory ID assigned to the advisory."
},
"summary": {
"type": "string",
"readOnly": true,
"maxLength": 1024,
"description": "A short, plain text summary of the advisory."
},
"severity": {
"enum": [
"low",
"medium",
"high",
"critical"
],
"type": "string",
"readOnly": true,
"description": "The severity of the advisory."
},
"references": {
"type": "array",
"items": {
"type": "object",
"readOnly": true,
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The URL of the reference."
}
},
"description": "A link to additional advisory information.",
"additionalProperties": false
},
"readOnly": true,
"description": "Links to additional advisory information."
},
"updated_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"description": {
"type": "string",
"readOnly": true,
"description": "A long-form Markdown-supported description of the advisory."
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"readOnly": true,
"required": [
"value",
"type"
],
"properties": {
"type": {
"enum": [
"CVE",
"GHSA"
],
"type": "string",
"readOnly": true,
"description": "The type of advisory identifier."
},
"value": {
"type": "string",
"readOnly": true,
"description": "The value of the advisory identifer."
}
},
"description": "An advisory identifier.",
"additionalProperties": false
},
"readOnly": true,
"description": "Values that identify this advisory among security information sources."
},
"published_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"withdrawn_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"classification": {
"enum": [
"general",
"malware"
],
"type": "string",
"readOnly": true,
"description": "The classification of the advisory."
},
"cvss_severities": {
"$ref": "#/components/schemas/cvss-severities"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/dependabot-alert-security-vulnerability"
},
"readOnly": true,
"description": "Vulnerable version range information for the advisory."
}
},
"description": "Details for the GitHub Security Advisory.",
"additionalProperties": false,
"x-github-breaking-changes": [
{
"patch": {
"required": [
"ghsa_id",
"cve_id",
"summary",
"description",
"vulnerabilities",
"severity",
"cwes",
"identifiers",
"references",
"published_at",
"updated_at",
"withdrawn_at"
],
"properties": {
"cvss": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_cvss"
}
]
}
dependabot-alert-security-vulnerability
{
"type": "object",
"readOnly": true,
"required": [
"package",
"severity",
"vulnerable_version_range",
"first_patched_version"
],
"properties": {
"package": {
"$ref": "#/components/schemas/dependabot-alert-package"
},
"severity": {
"enum": [
"low",
"medium",
"high",
"critical"
],
"type": "string",
"readOnly": true,
"description": "The severity of the vulnerability."
},
"first_patched_version": {
"type": "object",
"nullable": true,
"readOnly": true,
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string",
"readOnly": true,
"description": "The package version that patches this vulnerability."
}
},
"description": "Details pertaining to the package version that patches this vulnerability.",
"additionalProperties": false
},
"vulnerable_version_range": {
"type": "string",
"readOnly": true,
"description": "Conditions that identify vulnerable versions of this vulnerability's package."
}
},
"description": "Details pertaining to one vulnerable version range for the advisory.",
"additionalProperties": false
}
dependabot-alert-with-repository
{
"type": "object",
"required": [
"number",
"state",
"dependency",
"security_advisory",
"security_vulnerability",
"url",
"html_url",
"created_at",
"updated_at",
"dismissed_at",
"dismissed_by",
"dismissed_reason",
"dismissed_comment",
"fixed_at",
"repository"
],
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"state": {
"enum": [
"auto_dismissed",
"dismissed",
"fixed",
"open"
],
"type": "string",
"readOnly": true,
"description": "The state of the Dependabot alert."
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"fixed_at": {
"$ref": "#/components/schemas/alert-fixed-at"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"readOnly": true,
"description": "The users assigned to this alert."
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"dependency": {
"type": "object",
"readOnly": true,
"properties": {
"scope": {
"enum": [
"development",
"runtime"
],
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The execution scope of the vulnerable dependency."
},
"package": {
"$ref": "#/components/schemas/dependabot-alert-package"
},
"relationship": {
"enum": [
"unknown",
"direct",
"transitive",
"inconclusive"
],
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The vulnerable dependency's relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be \"unknown\" for all dependencies in unsupported ecosystems.\n"
},
"manifest_path": {
"type": "string",
"readOnly": true,
"description": "The full path to the dependency manifest file, relative to the root of the repository."
}
},
"description": "Details for the vulnerable dependency."
},
"repository": {
"$ref": "#/components/schemas/simple-repository"
},
"updated_at": {
"$ref": "#/components/schemas/alert-updated-at"
},
"dismissed_at": {
"$ref": "#/components/schemas/alert-dismissed-at"
},
"dismissed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"dismissed_reason": {
"enum": [
"fix_started",
"inaccurate",
"no_bandwidth",
"not_used",
"tolerable_risk"
],
"type": "string",
"nullable": true,
"description": "The reason that the alert was dismissed."
},
"auto_dismissed_at": {
"$ref": "#/components/schemas/alert-auto-dismissed-at"
},
"dismissal_request": {
"$ref": "#/components/schemas/dependabot-alert-dismissal-request-simple"
},
"dismissed_comment": {
"type": "string",
"nullable": true,
"maxLength": 280,
"description": "An optional comment associated with the alert's dismissal."
},
"security_advisory": {
"$ref": "#/components/schemas/dependabot-alert-security-advisory"
},
"security_vulnerability": {
"$ref": "#/components/schemas/dependabot-alert-security-vulnerability"
}
},
"description": "A Dependabot alert.",
"additionalProperties": false
}
dependabot-public-key
{
"type": "object",
"title": "DependabotPublicKey",
"required": [
"key_id",
"key"
],
"properties": {
"key": {
"type": "string",
"example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=",
"description": "The Base64 encoded public key."
},
"key_id": {
"type": "string",
"example": "1234567",
"description": "The identifier for the key."
}
},
"description": "The public key used for setting Dependabot Secrets."
}
dependabot-repository-access-details
{
"type": "object",
"title": "Dependabot Repository Access Details",
"properties": {
"default_level": {
"enum": [
"public",
"internal"
],
"type": "string",
"example": "internal",
"nullable": true,
"description": "The default repository access level for Dependabot updates."
},
"accessible_repositories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/nullable-simple-repository"
}
}
},
"description": "Information about repositories that Dependabot is able to access in an organization",
"additionalProperties": false
}
dependabot-secret
{
"type": "object",
"title": "Dependabot Secret",
"required": [
"name",
"created_at",
"updated_at"
],
"properties": {
"name": {
"type": "string",
"example": "MY_ARTIFACTORY_PASSWORD",
"description": "The name of the secret."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Set secrets for Dependabot."
}
dependency
{
"type": "object",
"properties": {
"scope": {
"enum": [
"runtime",
"development"
],
"type": "string",
"example": "runtime",
"description": "A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes."
},
"metadata": {
"$ref": "#/components/schemas/metadata"
},
"package_url": {
"type": "string",
"example": "pkg:/npm/%40actions/http-client@1.0.11",
"pattern": "^pkg",
"description": "Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details."
},
"dependencies": {
"type": "array",
"items": {
"type": "string"
},
"example": "@actions/http-client",
"description": "Array of package-url (PURLs) of direct child dependencies."
},
"relationship": {
"enum": [
"direct",
"indirect"
],
"type": "string",
"example": "direct",
"description": "A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency."
}
},
"additionalProperties": false
}
dependency-graph-diff
{
"type": "array",
"items": {
"type": "object",
"required": [
"change_type",
"manifest",
"ecosystem",
"name",
"version",
"package_url",
"license",
"source_repository_url",
"vulnerabilities",
"scope"
],
"properties": {
"name": {
"type": "string",
"example": "@actions/core"
},
"scope": {
"enum": [
"unknown",
"runtime",
"development"
],
"type": "string",
"description": "Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment."
},
"license": {
"type": "string",
"example": "MIT",
"nullable": true
},
"version": {
"type": "string",
"example": "1.0.0"
},
"manifest": {
"type": "string",
"example": "path/to/package-lock.json"
},
"ecosystem": {
"type": "string",
"example": "npm"
},
"change_type": {
"enum": [
"added",
"removed"
],
"type": "string"
},
"package_url": {
"type": "string",
"example": "pkg:/npm/%40actions/core@1.1.0",
"nullable": true
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"severity",
"advisory_ghsa_id",
"advisory_summary",
"advisory_url"
],
"properties": {
"severity": {
"type": "string",
"example": "critical"
},
"advisory_url": {
"type": "string",
"example": "https://github.com/advisories/GHSA-rf4j-j272-fj86"
},
"advisory_ghsa_id": {
"type": "string",
"example": "GHSA-rf4j-j272-fj86"
},
"advisory_summary": {
"type": "string",
"example": "A summary of the advisory."
}
}
}
},
"source_repository_url": {
"type": "string",
"example": "https://github.com/github/actions",
"nullable": true
}
}
},
"title": "Dependency Graph Diff",
"description": "A diff of the dependencies between two commits."
}
dependency-graph-spdx-sbom
{
"type": "object",
"title": "Dependency Graph SPDX SBOM",
"required": [
"sbom"
],
"properties": {
"sbom": {
"type": "object",
"required": [
"SPDXID",
"spdxVersion",
"creationInfo",
"name",
"dataLicense",
"documentNamespace",
"packages"
],
"properties": {
"name": {
"type": "string",
"example": "github/github",
"description": "The name of the SPDX document."
},
"SPDXID": {
"type": "string",
"example": "SPDXRef-DOCUMENT",
"description": "The SPDX identifier for the SPDX document."
},
"comment": {
"type": "string",
"example": "Exact versions could not be resolved for some packages. For more information: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/",
"description": "An optional comment about the SPDX document."
},
"packages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"example": "github/github",
"description": "The name of the package."
},
"SPDXID": {
"type": "string",
"example": "SPDXRef-Package",
"description": "A unique SPDX identifier for the package."
},
"supplier": {
"type": "string",
"example": "NOASSERTION",
"description": "The distribution source of this package, or NOASSERTION if this was not determined."
},
"versionInfo": {
"type": "string",
"example": "1.0.0",
"description": "The version of the package. If the package does not have an exact version specified,\na version range is given."
},
"externalRefs": {
"type": "array",
"items": {
"type": "object",
"required": [
"referenceCategory",
"referenceLocator",
"referenceType"
],
"properties": {
"referenceType": {
"type": "string",
"example": "purl",
"description": "The category of reference to an external resource this reference refers to."
},
"referenceLocator": {
"type": "string",
"example": "pkg:gem/rails@6.0.1",
"description": "A locator for the particular external resource this reference refers to."
},
"referenceCategory": {
"type": "string",
"example": "PACKAGE-MANAGER",
"description": "The category of reference to an external resource this reference refers to."
}
}
}
},
"copyrightText": {
"type": "string",
"example": "Copyright (c) 1985 GitHub.com",
"description": "The copyright holders of the package, and any dates present with those notices, if available."
},
"filesAnalyzed": {
"type": "boolean",
"example": false,
"description": "Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document."
},
"licenseDeclared": {
"type": "string",
"example": "NOASSERTION",
"description": "The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created."
},
"downloadLocation": {
"type": "string",
"example": "NOASSERTION",
"description": "The location where the package can be downloaded,\nor NOASSERTION if this has not been determined."
},
"licenseConcluded": {
"type": "string",
"example": "MIT",
"description": "The license of the package as determined while creating the SPDX document."
}
}
},
"required": [
"SPDXID",
"name",
"versionInfo",
"downloadLocation",
"filesAnalyzed"
]
},
"dataLicense": {
"type": "string",
"example": "CC0-1.0",
"description": "The license under which the SPDX document is licensed."
},
"spdxVersion": {
"type": "string",
"example": "SPDX-2.3",
"description": "The version of the SPDX specification that this document conforms to."
},
"creationInfo": {
"type": "object",
"required": [
"created",
"creators"
],
"properties": {
"created": {
"type": "string",
"example": "2021-11-03T00:00:00Z",
"description": "The date and time the SPDX document was created."
},
"creators": {
"type": "array",
"items": {
"type": "string",
"example": "GitHub"
},
"description": "The tools that were used to generate the SPDX document."
}
}
},
"relationships": {
"type": "array",
"items": {
"type": "object",
"properties": {
"spdxElementId": {
"type": "string",
"description": "The SPDX identifier of the package that is the source of the relationship."
},
"relationshipType": {
"type": "string",
"example": "DEPENDS_ON",
"description": "The type of relationship between the two SPDX elements."
},
"relatedSpdxElement": {
"type": "string",
"description": "The SPDX identifier of the package that is the target of the relationship."
}
}
},
"required": [
"relationshipType",
"spdxElementId",
"relatedSpdxElement"
]
},
"documentNamespace": {
"type": "string",
"example": "https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57",
"description": "The namespace for the SPDX document."
}
}
}
},
"description": "A schema for the SPDX JSON format returned by the Dependency Graph."
}
deploy-key
{
"type": "object",
"title": "Deploy Key",
"required": [
"id",
"key",
"url",
"title",
"verified",
"created_at",
"read_only"
],
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"added_by": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"last_used": {
"type": "string",
"format": "date-time",
"nullable": true
},
"read_only": {
"type": "boolean"
},
"created_at": {
"type": "string"
}
},
"description": "An SSH key granting access to a single repository."
}
deployment
{
"type": "object",
"title": "Deployment",
"required": [
"id",
"node_id",
"sha",
"ref",
"task",
"environment",
"creator",
"payload",
"description",
"statuses_url",
"repository_url",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the deployment"
},
"ref": {
"type": "string",
"example": "topic-branch",
"description": "The ref to deploy. This can be a branch, tag, or sha."
},
"sha": {
"type": "string",
"example": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1"
},
"task": {
"type": "string",
"example": "deploy",
"description": "Parameter to specify a task to execute"
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string",
"example": "MDEwOkRlcGxveW1lbnQx"
},
"payload": {
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "string"
}
]
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"description": {
"type": "string",
"example": "Deploy request from hubot",
"nullable": true
},
"environment": {
"type": "string",
"example": "production",
"description": "Name for the target deployment environment."
},
"statuses_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1/statuses"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
},
"original_environment": {
"type": "string",
"example": "staging"
},
"transient_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is will no longer exist at some point in the future. Default: false."
},
"production_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is one that end-users directly interact with. Default: false."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "A request for a specific ref(branch,sha,tag) to be deployed"
}
deployment-branch-policy
{
"type": "object",
"title": "Deployment branch policy",
"properties": {
"id": {
"type": "integer",
"example": 361471,
"description": "The unique identifier of the branch or tag policy."
},
"name": {
"type": "string",
"example": "release/*",
"description": "The name pattern that branches or tags must match in order to deploy to the environment."
},
"type": {
"enum": [
"branch",
"tag"
],
"type": "string",
"example": "branch",
"description": "Whether this rule targets a branch or tag."
},
"node_id": {
"type": "string",
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
}
},
"description": "Details of a deployment branch or tag policy."
}
deployment-branch-policy-name-pattern
{
"type": "object",
"title": "Deployment branch policy name pattern",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"example": "release/*",
"description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)."
}
}
}
deployment-branch-policy-name-pattern-with-type
{
"type": "object",
"title": "Deployment branch and tag policy name pattern",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"example": "release/*",
"description": "The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)."
},
"type": {
"enum": [
"branch",
"tag"
],
"type": "string",
"example": "branch",
"description": "Whether this rule targets a branch or tag"
}
}
}
deployment-branch-policy-settings
{
"type": "object",
"nullable": true,
"required": [
"protected_branches",
"custom_branch_policies"
],
"properties": {
"protected_branches": {
"type": "boolean",
"description": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`."
},
"custom_branch_policies": {
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`."
}
},
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`."
}
deployment-protection-rule
{
"type": "object",
"title": "Deployment protection rule",
"required": [
"id",
"node_id",
"enabled",
"app"
],
"properties": {
"id": {
"type": "integer",
"example": 3515,
"description": "The unique identifier for the deployment protection rule."
},
"app": {
"$ref": "#/components/schemas/custom-deployment-rule-app"
},
"enabled": {
"type": "boolean",
"example": true,
"description": "Whether the deployment protection rule is enabled for the environment."
},
"node_id": {
"type": "string",
"example": "MDQ6R2F0ZTM1MTU=",
"description": "The node ID for the deployment protection rule."
}
},
"description": "Deployment protection rule"
}
deployment-reviewer-type
{
"enum": [
"User",
"Team"
],
"type": "string",
"example": "User",
"description": "The type of reviewer."
}
deployment-simple
{
"type": "object",
"title": "Deployment",
"required": [
"id",
"node_id",
"task",
"environment",
"description",
"statuses_url",
"repository_url",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the deployment"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1"
},
"task": {
"type": "string",
"example": "deploy",
"description": "Parameter to specify a task to execute"
},
"node_id": {
"type": "string",
"example": "MDEwOkRlcGxveW1lbnQx"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"description": {
"type": "string",
"example": "Deploy request from hubot",
"nullable": true
},
"environment": {
"type": "string",
"example": "production",
"description": "Name for the target deployment environment."
},
"statuses_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1/statuses"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
},
"original_environment": {
"type": "string",
"example": "staging"
},
"transient_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is will no longer exist at some point in the future. Default: false."
},
"production_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is one that end-users directly interact with. Default: false."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "A deployment created as the result of an Actions check run from a workflow that references an environment"
}
deployment-status
{
"type": "object",
"title": "Deployment Status",
"required": [
"id",
"node_id",
"state",
"creator",
"description",
"deployment_url",
"target_url",
"repository_url",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/42/statuses/1"
},
"state": {
"enum": [
"error",
"failure",
"inactive",
"pending",
"success",
"queued",
"in_progress"
],
"type": "string",
"example": "success",
"description": "The state of the status."
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"log_url": {
"type": "string",
"format": "uri",
"default": "",
"example": "https://example.com/deployment/42/output",
"description": "The URL to associate with this status."
},
"node_id": {
"type": "string",
"example": "MDE2OkRlcGxveW1lbnRTdGF0dXMx"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"target_url": {
"type": "string",
"format": "uri",
"default": "",
"example": "https://example.com/deployment/42/output",
"description": "Closing down notice: the URL to associate with this status."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"description": {
"type": "string",
"default": "",
"example": "Deployment finished successfully.",
"maxLength": 140,
"description": "A short description of the status."
},
"environment": {
"type": "string",
"default": "",
"example": "production",
"description": "The environment of the deployment that the status is for."
},
"deployment_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/42"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
},
"environment_url": {
"type": "string",
"format": "uri",
"default": "",
"example": "https://staging.example.com/",
"description": "The URL for accessing your environment."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "The status of a deployment."
}
diff-entry
{
"type": "object",
"title": "Diff Entry",
"required": [
"additions",
"blob_url",
"changes",
"contents_url",
"deletions",
"filename",
"raw_url",
"sha",
"status"
],
"properties": {
"sha": {
"type": "string",
"example": "bbcd538c8e72b8c175046e27cc8f907076331401",
"nullable": true
},
"patch": {
"type": "string",
"example": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
},
"status": {
"enum": [
"added",
"removed",
"modified",
"renamed",
"copied",
"changed",
"unchanged"
],
"type": "string",
"example": "added"
},
"changes": {
"type": "integer",
"example": 124
},
"raw_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
},
"blob_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
},
"filename": {
"type": "string",
"example": "file1.txt"
},
"additions": {
"type": "integer",
"example": 103
},
"deletions": {
"type": "integer",
"example": 21
},
"contents_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"previous_filename": {
"type": "string",
"example": "file.txt"
}
},
"description": "Diff Entry"
}
discussion
{
"type": "object",
"title": "Discussion",
"required": [
"repository_url",
"category",
"answer_html_url",
"answer_chosen_at",
"answer_chosen_by",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"state",
"state_reason",
"locked",
"comments",
"created_at",
"updated_at",
"active_lock_reason",
"body"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"state": {
"enum": [
"open",
"closed",
"locked",
"converting",
"transferring"
],
"type": "string",
"description": "The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository."
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/label"
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"category": {
"type": "object",
"required": [
"id",
"repository_id",
"emoji",
"name",
"description",
"created_at",
"updated_at",
"slug",
"is_answerable"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"emoji": {
"type": "string"
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"is_answerable": {
"type": "boolean"
},
"repository_id": {
"type": "integer"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"state_reason": {
"enum": [
"resolved",
"outdated",
"duplicate",
"reopened"
],
"type": "string",
"example": "resolved",
"nullable": true,
"description": "The reason for the current state"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"answer_html_url": {
"type": "string",
"nullable": true
},
"answer_chosen_at": {
"type": "string",
"nullable": true
},
"answer_chosen_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
}
},
"description": "A Discussion in a repository."
}
discussion-event
{
"type": "object",
"title": "DiscussionEvent",
"required": [
"action",
"discussion"
],
"properties": {
"action": {
"type": "string"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
}
}
}
email
{
"type": "object",
"title": "Email",
"required": [
"email",
"primary",
"verified",
"visibility"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"example": "octocat@github.com"
},
"primary": {
"type": "boolean",
"example": true
},
"verified": {
"type": "boolean",
"example": true
},
"visibility": {
"type": "string",
"example": "public",
"nullable": true
}
},
"description": "Email"
}
empty-object
{
"type": "object",
"title": "Empty Object",
"properties": {},
"description": "An object without any properties.",
"additionalProperties": false
}
enabled-repositories
{
"enum": [
"all",
"none",
"selected"
],
"type": "string",
"description": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions."
}
enterprise
{
"type": "object",
"title": "Enterprise",
"required": [
"id",
"node_id",
"name",
"slug",
"html_url",
"created_at",
"updated_at",
"avatar_url"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise"
},
"name": {
"type": "string",
"example": "Octo Business",
"description": "The name of the enterprise."
},
"slug": {
"type": "string",
"example": "octo-business",
"description": "The slug url identifier for the enterprise."
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/enterprises/octo-business"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-26T19:01:12Z",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-26T19:14:43Z",
"nullable": true
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description of the enterprise."
},
"website_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The enterprise's website URL."
}
},
"description": "An enterprise on GitHub."
}
enterprise-team
{
"type": "object",
"title": "Enterprise Team",
"required": [
"id",
"url",
"members_url",
"name",
"html_url",
"slug",
"created_at",
"updated_at",
"group_id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"group_id": {
"type": "string",
"example": "62ab9291-fae2-468e-974b-7e45096d5021",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/enterprises/dc/teams/justice-league"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"group_name": {
"type": "string",
"example": "Justice League",
"nullable": true,
"description": "Retired: this field will not be returned with GHEC enterprise teams."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"members_url": {
"type": "string"
},
"sync_to_organizations": {
"type": "string",
"example": "disabled | all",
"description": "Retired: this field will not be returned with GHEC enterprise teams."
},
"organization_selection_type": {
"type": "string",
"example": "disabled | selected | all"
}
},
"description": "Group of enterprise owners and/or members"
}
enterprise-webhooks
{
"type": "object",
"title": "Enterprise",
"required": [
"id",
"node_id",
"name",
"slug",
"html_url",
"created_at",
"updated_at",
"avatar_url"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise"
},
"name": {
"type": "string",
"example": "Octo Business",
"description": "The name of the enterprise."
},
"slug": {
"type": "string",
"example": "octo-business",
"description": "The slug url identifier for the enterprise."
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/enterprises/octo-business"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-26T19:01:12Z",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-26T19:14:43Z",
"nullable": true
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description of the enterprise."
},
"website_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The enterprise's website URL."
}
},
"description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that's part of an enterprise account. For more information,\nsee \"[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts).\""
}
environment
{
"type": "object",
"title": "Environment",
"required": [
"id",
"node_id",
"name",
"url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 56780428,
"description": "The id of the environment."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/environments/staging"
},
"name": {
"type": "string",
"example": "staging",
"description": "The name of the environment."
},
"node_id": {
"type": "string",
"example": "MDExOkVudmlyb25tZW50NTY3ODA0Mjg="
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/deployments/activity_log?environments_filter=staging"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2020-11-23T22:00:40Z",
"description": "The time that the environment was created, in ISO 8601 format."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2020-11-23T22:00:40Z",
"description": "The time that the environment was last updated, in ISO 8601 format."
},
"protection_rules": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"node_id",
"type"
],
"properties": {
"id": {
"type": "integer",
"example": 3515
},
"type": {
"type": "string",
"example": "wait_timer"
},
"node_id": {
"type": "string",
"example": "MDQ6R2F0ZTM1MTU="
},
"wait_timer": {
"$ref": "#/components/schemas/wait-timer"
}
}
},
{
"type": "object",
"required": [
"id",
"node_id",
"type"
],
"properties": {
"id": {
"type": "integer",
"example": 3755
},
"type": {
"type": "string",
"example": "required_reviewers"
},
"node_id": {
"type": "string",
"example": "MDQ6R2F0ZTM3NTU="
},
"reviewers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/deployment-reviewer-type"
},
"reviewer": {
"anyOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/team"
}
]
}
}
},
"description": "The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed."
},
"prevent_self_review": {
"type": "boolean",
"example": false,
"description": "Whether deployments to this environment can be approved by the user who created the deployment."
}
}
},
{
"type": "object",
"required": [
"id",
"node_id",
"type"
],
"properties": {
"id": {
"type": "integer",
"example": 3515
},
"type": {
"type": "string",
"example": "branch_policy"
},
"node_id": {
"type": "string",
"example": "MDQ6R2F0ZTM1MTU="
}
}
}
]
},
"description": "Built-in deployment protection rules for the environment."
},
"deployment_branch_policy": {
"$ref": "#/components/schemas/deployment-branch-policy-settings"
}
},
"description": "Details of a deployment environment"
}
environment-approvals
{
"type": "object",
"title": "Environment Approval",
"required": [
"environments",
"state",
"user",
"comment"
],
"properties": {
"user": {
"$ref": "#/components/schemas/simple-user"
},
"state": {
"enum": [
"approved",
"rejected",
"pending"
],
"type": "string",
"example": "approved",
"description": "Whether deployment to the environment(s) was approved or rejected or pending (with comments)"
},
"comment": {
"type": "string",
"example": "Ship it!",
"description": "The comment submitted with the deployment review"
},
"environments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 56780428,
"description": "The id of the environment."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/environments/staging"
},
"name": {
"type": "string",
"example": "staging",
"description": "The name of the environment."
},
"node_id": {
"type": "string",
"example": "MDExOkVudmlyb25tZW50NTY3ODA0Mjg="
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/deployments/activity_log?environments_filter=staging"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2020-11-23T22:00:40Z",
"description": "The time that the environment was created, in ISO 8601 format."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2020-11-23T22:00:40Z",
"description": "The time that the environment was last updated, in ISO 8601 format."
}
}
},
"description": "The list of environments that were approved or rejected"
}
},
"description": "An entry in the reviews log for environment deployments"
}
event
{
"type": "object",
"title": "Event",
"required": [
"id",
"type",
"actor",
"repo",
"payload",
"public",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"org": {
"$ref": "#/components/schemas/actor"
},
"repo": {
"type": "object",
"required": [
"id",
"name",
"url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
},
"type": {
"type": "string",
"nullable": true
},
"actor": {
"$ref": "#/components/schemas/actor"
},
"public": {
"type": "boolean"
},
"payload": {
"oneOf": [
{
"$ref": "#/components/schemas/create-event"
},
{
"$ref": "#/components/schemas/delete-event"
},
{
"$ref": "#/components/schemas/discussion-event"
},
{
"$ref": "#/components/schemas/issues-event"
},
{
"$ref": "#/components/schemas/issue-comment-event"
},
{
"$ref": "#/components/schemas/fork-event"
},
{
"$ref": "#/components/schemas/gollum-event"
},
{
"$ref": "#/components/schemas/member-event"
},
{
"$ref": "#/components/schemas/public-event"
},
{
"$ref": "#/components/schemas/push-event"
},
{
"$ref": "#/components/schemas/pull-request-event"
},
{
"$ref": "#/components/schemas/pull-request-review-comment-event"
},
{
"$ref": "#/components/schemas/pull-request-review-event"
},
{
"$ref": "#/components/schemas/commit-comment-event"
},
{
"$ref": "#/components/schemas/release-event"
},
{
"$ref": "#/components/schemas/watch-event"
}
]
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
}
},
"description": "Event"
}
feed
{
"type": "object",
"title": "Feed",
"required": [
"_links",
"timeline_url",
"user_url"
],
"properties": {
"_links": {
"type": "object",
"required": [
"timeline",
"user"
],
"properties": {
"user": {
"$ref": "#/components/schemas/link-with-type"
},
"timeline": {
"$ref": "#/components/schemas/link-with-type"
},
"current_user": {
"$ref": "#/components/schemas/link-with-type"
},
"current_user_actor": {
"$ref": "#/components/schemas/link-with-type"
},
"current_user_public": {
"$ref": "#/components/schemas/link-with-type"
},
"security_advisories": {
"$ref": "#/components/schemas/link-with-type"
},
"repository_discussions": {
"$ref": "#/components/schemas/link-with-type"
},
"current_user_organization": {
"$ref": "#/components/schemas/link-with-type"
},
"current_user_organizations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/link-with-type"
}
},
"repository_discussions_category": {
"$ref": "#/components/schemas/link-with-type"
}
}
},
"user_url": {
"type": "string",
"example": "https://github.com/{user}"
},
"timeline_url": {
"type": "string",
"example": "https://github.com/timeline"
},
"current_user_url": {
"type": "string",
"example": "https://github.com/octocat.private?token=abc123"
},
"current_user_actor_url": {
"type": "string",
"example": "https://github.com/octocat.private.actor?token=abc123"
},
"current_user_public_url": {
"type": "string",
"example": "https://github.com/octocat"
},
"security_advisories_url": {
"type": "string",
"example": "https://github.com/security-advisories"
},
"repository_discussions_url": {
"type": "string",
"example": "https://github.com/{user}/{repo}/discussions",
"description": "A feed of discussions for a given repository."
},
"current_user_organization_url": {
"type": "string",
"example": "https://github.com/octocat-org"
},
"current_user_organization_urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"example": [
"https://github.com/organizations/github/octocat.private.atom?token=abc123"
]
},
"repository_discussions_category_url": {
"type": "string",
"example": "https://github.com/{user}/{repo}/discussions/categories/{category}",
"description": "A feed of discussions for a given repository and category."
}
},
"description": "Feed"
}
file-commit
{
"type": "object",
"title": "File Commit",
"required": [
"content",
"commit"
],
"properties": {
"commit": {
"type": "object",
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
},
"tree": {
"type": "object",
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"author": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"message": {
"type": "string"
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
},
"html_url": {
"type": "string"
}
}
}
},
"html_url": {
"type": "string"
},
"committer": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"verification": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"payload": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"signature": {
"type": "string",
"nullable": true
},
"verified_at": {
"type": "string",
"nullable": true
}
}
}
}
},
"content": {
"type": "object",
"nullable": true,
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"properties": {
"git": {
"type": "string"
},
"html": {
"type": "string"
},
"self": {
"type": "string"
}
}
},
"git_url": {
"type": "string"
},
"html_url": {
"type": "string"
},
"download_url": {
"type": "string"
}
}
}
},
"description": "File Commit"
}
fork-event
{
"type": "object",
"title": "ForkEvent",
"required": [
"action",
"forkee"
],
"properties": {
"action": {
"type": "string"
},
"forkee": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"events_url": {
"type": "string"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"mirror_url": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"allow_forking": {
"type": "boolean"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"has_discussions": {
"type": "boolean"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"has_pull_requests": {
"type": "boolean"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
},
"open_issues_count": {
"type": "integer"
},
"web_commit_signoff_required": {
"type": "boolean"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
}
}
}
}
full-repository
{
"type": "object",
"title": "Full Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"has_discussions",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at",
"network_count",
"subscribers_count"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1296269
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Hello-World"
},
"size": {
"type": "integer",
"example": 108,
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"parent": {
"$ref": "#/components/schemas/repository"
},
"source": {
"$ref": "#/components/schemas/repository"
},
"topics": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"octocat",
"atom",
"electron",
"API"
]
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"example": true
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z"
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"example": true
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z"
},
"visibility": {
"type": "string",
"example": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"example": true
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"example": true
},
"organization": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"example": true
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"example": true
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"network_count": {
"type": "integer",
"example": 0
},
"default_branch": {
"type": "string",
"example": "master"
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"code_of_conduct": {
"$ref": "#/components/schemas/code-of-conduct-simple"
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean",
"example": true
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"example": false
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string",
"nullable": true
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"example": true
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"subscribers_count": {
"type": "integer",
"example": 42
},
"allow_merge_commit": {
"type": "boolean",
"example": true
},
"allow_rebase_merge": {
"type": "boolean",
"example": true
},
"allow_squash_merge": {
"type": "boolean",
"example": true
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"example": "PR_TITLE",
"description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean",
"example": true
},
"template_repository": {
"$ref": "#/components/schemas/nullable-repository"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"example": "PR_BODY",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"security_and_analysis": {
"$ref": "#/components/schemas/security-and-analysis"
},
"delete_branch_on_merge": {
"type": "boolean",
"example": false
},
"anonymous_access_enabled": {
"type": "boolean",
"default": true,
"description": "Whether anonymous git access is allowed."
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"example": "PR_TITLE",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"example": "PR_BODY",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"example": "all",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"example": false
}
},
"description": "Full Repository",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"use_squash_pr_title_as_default": null
}
},
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": {
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
get-budget
{
"type": "object",
"required": [
"id",
"budget_amount",
"prevent_further_usage",
"budget_product_sku",
"budget_type",
"budget_alerting",
"budget_scope",
"budget_entity_name"
],
"properties": {
"id": {
"type": "string",
"description": "ID of the budget."
},
"budget_type": {
"oneOf": [
{
"enum": [
"ProductPricing"
],
"type": "string"
},
{
"enum": [
"SkuPricing"
],
"type": "string"
}
],
"example": "ProductPricing",
"description": "The type of pricing for the budget"
},
"budget_scope": {
"enum": [
"enterprise",
"organization",
"repository",
"cost_center"
],
"type": "string",
"example": "enterprise",
"description": "The type of scope for the budget"
},
"budget_amount": {
"type": "integer",
"description": "The budget amount in whole dollars. For license-based products, this represents the number of licenses."
},
"budget_alerting": {
"type": "object",
"properties": {
"will_alert": {
"type": "boolean",
"example": true,
"description": "Whether alerts are enabled for this budget"
},
"alert_recipients": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"mona",
"lisa"
],
"description": "Array of user login names who will receive alerts"
}
}
},
"budget_entity_name": {
"type": "string",
"example": "octocat/hello-world",
"description": "The name of the entity to apply the budget to"
},
"budget_product_sku": {
"type": "string",
"example": "actions_linux",
"description": "A single product or sku to apply the budget to."
},
"prevent_further_usage": {
"type": "boolean",
"example": true,
"description": "Whether to prevent additional spending once the budget is exceeded"
}
}
}
get_all_budgets
{
"type": "object",
"required": [
"budgets"
],
"properties": {
"budgets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/budget"
},
"description": "Array of budget objects for the enterprise"
},
"total_count": {
"type": "integer",
"description": "Total number of budgets matching the query"
},
"has_next_page": {
"type": "boolean",
"description": "Indicates if there are more pages of results available (maps to hasNextPage from billing platform)"
}
}
}
gist-comment
{
"type": "object",
"title": "Gist Comment",
"required": [
"url",
"id",
"node_id",
"user",
"body",
"author_association",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1"
},
"body": {
"type": "string",
"example": "Body of the attachment",
"maxLength": 65535,
"description": "The comment text."
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string",
"example": "MDExOkdpc3RDb21tZW50MQ=="
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-18T23:23:56Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-18T23:23:56Z"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
}
},
"description": "A comment made to a gist."
}
gist-commit
{
"type": "object",
"title": "Gist Commit",
"required": [
"url",
"user",
"version",
"committed_at",
"change_status"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"version": {
"type": "string",
"example": "57a7f021a713b1c5a6a199b54cc514735d2d462f"
},
"committed_at": {
"type": "string",
"format": "date-time",
"example": "2010-04-14T02:15:15Z"
},
"change_status": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"additions": {
"type": "integer"
},
"deletions": {
"type": "integer"
}
}
}
},
"description": "Gist Commit"
}
gist-history
{
"type": "object",
"title": "Gist History",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"version": {
"type": "string"
},
"committed_at": {
"type": "string",
"format": "date-time"
},
"change_status": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"additions": {
"type": "integer"
},
"deletions": {
"type": "integer"
}
}
}
},
"description": "Gist History"
}
gist-simple
{
"type": "object",
"title": "Gist Simple",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"user": {
"type": "string",
"nullable": true
},
"files": {
"type": "object",
"additionalProperties": {
"type": "object",
"nullable": true,
"properties": {
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"content": {
"type": "string"
},
"raw_url": {
"type": "string"
},
"encoding": {
"type": "string",
"default": "utf-8",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported."
},
"filename": {
"type": "string"
},
"language": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
}
}
},
"forks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/components/schemas/public-user"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
}
},
"nullable": true,
"deprecated": true
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"public": {
"type": "boolean"
},
"fork_of": {
"type": "object",
"title": "Gist",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"forks_url",
"commits_url",
"git_pull_url",
"git_push_url",
"html_url",
"comments_url",
"public",
"description",
"comments",
"user",
"files",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"files": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"raw_url": {
"type": "string"
},
"filename": {
"type": "string"
},
"language": {
"type": "string"
}
}
}
},
"forks": {
"type": "array",
"items": {}
},
"owner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"public": {
"type": "boolean"
},
"history": {
"type": "array",
"items": {}
},
"node_id": {
"type": "string"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"truncated": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"description": {
"type": "string",
"nullable": true
},
"comments_url": {
"type": "string",
"format": "uri"
},
"git_pull_url": {
"type": "string",
"format": "uri"
},
"git_push_url": {
"type": "string",
"format": "uri"
},
"comments_enabled": {
"type": "boolean"
}
},
"description": "Gist"
},
"history": {
"type": "array",
"items": {
"$ref": "#/components/schemas/gist-history"
},
"nullable": true,
"deprecated": true
},
"node_id": {
"type": "string"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"comments_url": {
"type": "string"
},
"git_pull_url": {
"type": "string"
},
"git_push_url": {
"type": "string"
},
"comments_enabled": {
"type": "boolean"
}
},
"description": "Gist Simple",
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/forks"
},
{
"op": "remove",
"path": "/properties/history"
}
],
"version": "2026-03-10",
"changeset": "remove_forks_history_from_base_gist"
}
]
}
git-commit
{
"type": "object",
"title": "Git Commit",
"required": [
"sha",
"node_id",
"url",
"html_url",
"author",
"committer",
"tree",
"message",
"parents",
"verification"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"author": {
"type": "object",
"required": [
"email",
"name",
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
},
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the git user"
},
"email": {
"type": "string",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the user"
}
},
"description": "Identifying information for the git-user"
},
"message": {
"type": "string",
"example": "Fix #42",
"description": "Message describing the purpose of the commit"
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"required": [
"sha",
"url",
"html_url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
}
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"committer": {
"type": "object",
"required": [
"email",
"name",
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
},
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the git user"
},
"email": {
"type": "string",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the user"
}
},
"description": "Identifying information for the git-user"
},
"verification": {
"type": "object",
"required": [
"verified",
"reason",
"signature",
"payload",
"verified_at"
],
"properties": {
"reason": {
"type": "string"
},
"payload": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"signature": {
"type": "string",
"nullable": true
},
"verified_at": {
"type": "string",
"nullable": true
}
}
}
},
"description": "Low-level Git commit operations within a repository"
}
git-ref
{
"type": "object",
"title": "Git Reference",
"required": [
"ref",
"node_id",
"url",
"object"
],
"properties": {
"ref": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"object": {
"type": "object",
"required": [
"type",
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"maxLength": 40,
"minLength": 40,
"description": "SHA for the reference"
},
"url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
}
},
"description": "Git references within a repository"
}
git-tag
{
"type": "object",
"title": "Git Tag",
"required": [
"sha",
"url",
"node_id",
"tagger",
"object",
"tag",
"message"
],
"properties": {
"sha": {
"type": "string",
"example": "940bd336248efae0f9ee5bc7b2d5c985887b16ac"
},
"tag": {
"type": "string",
"example": "v0.0.1",
"description": "Name of the tag"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"description": "URL for the tag"
},
"object": {
"type": "object",
"required": [
"sha",
"type",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
},
"tagger": {
"type": "object",
"required": [
"date",
"email",
"name"
],
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"message": {
"type": "string",
"example": "Initial public release",
"description": "Message describing the purpose of the tag"
},
"node_id": {
"type": "string",
"example": "MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw=="
},
"verification": {
"$ref": "#/components/schemas/verification"
}
},
"description": "Metadata for a Git tag"
}
git-tree
{
"type": "object",
"title": "Git Tree",
"required": [
"sha",
"tree",
"truncated"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"tree": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"mode",
"type",
"sha"
],
"properties": {
"sha": {
"type": "string",
"example": "23f6827669e43831def8a7ad935069c8bd418261"
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/owner-482f3203ecf01f67e9deb18e/BBB_Private_Repo/git/blobs/23f6827669e43831def8a7ad935069c8bd418261"
},
"mode": {
"type": "string",
"example": "040000"
},
"path": {
"type": "string",
"example": "test/file.rb"
},
"size": {
"type": "integer",
"example": 12
},
"type": {
"type": "string",
"example": "tree"
}
}
},
"example": [
{
"sha": "44b4fc6d56897b048c772eb4087f854f46256132",
"url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132",
"mode": "100644",
"path": "file.rb",
"size": 30,
"type": "blob"
}
],
"description": "Objects specifying a tree structure"
},
"truncated": {
"type": "boolean"
}
},
"description": "The hierarchy between files in a Git repository."
}
gitignore-template
{
"type": "object",
"title": "Gitignore Template",
"required": [
"name",
"source"
],
"properties": {
"name": {
"type": "string",
"example": "C"
},
"source": {
"type": "string",
"example": "# Object files\n*.o\n\n# Libraries\n*.lib\n*.a\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n"
}
},
"description": "Gitignore Template"
}
global-advisory
{
"type": "object",
"required": [
"ghsa_id",
"cve_id",
"url",
"html_url",
"repository_advisory_url",
"summary",
"description",
"type",
"severity",
"source_code_location",
"identifiers",
"references",
"published_at",
"updated_at",
"github_reviewed_at",
"nvd_published_at",
"withdrawn_at",
"vulnerabilities",
"cvss",
"cwes",
"credits"
],
"properties": {
"url": {
"type": "string",
"readOnly": true,
"description": "The API URL for the advisory."
},
"cvss": {
"type": "object",
"nullable": true,
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number",
"maximum": 10,
"minimum": 0,
"nullable": true,
"readOnly": true,
"description": "The CVSS score."
},
"vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS vector."
}
}
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "The name of the CWE."
},
"cwe_id": {
"type": "string",
"description": "The Common Weakness Enumeration (CWE) identifier."
}
}
},
"nullable": true
},
"epss": {
"$ref": "#/components/schemas/security-advisory-epss"
},
"type": {
"enum": [
"reviewed",
"unreviewed",
"malware"
],
"type": "string",
"readOnly": true,
"description": "The type of advisory."
},
"cve_id": {
"type": "string",
"nullable": true,
"readOnly": true,
"description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"credits": {
"type": "array",
"items": {
"type": "object",
"required": [
"user",
"type"
],
"properties": {
"type": {
"$ref": "#/components/schemas/security-advisory-credit-types"
},
"user": {
"$ref": "#/components/schemas/simple-user"
}
}
},
"nullable": true,
"readOnly": true,
"description": "The users who contributed to the advisory."
},
"ghsa_id": {
"type": "string",
"readOnly": true,
"description": "The GitHub Security Advisory ID."
},
"summary": {
"type": "string",
"maxLength": 1024,
"description": "A short summary of the advisory."
},
"html_url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The URL for the advisory."
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low",
"unknown"
],
"type": "string",
"description": "The severity of the advisory."
},
"references": {
"type": "array",
"items": {
"type": "string",
"description": "URLs with more information regarding the advisory."
},
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The date and time of when the advisory was last updated, in ISO 8601 format."
},
"description": {
"type": "string",
"nullable": true,
"maxLength": 65535,
"description": "A detailed description of what the advisory entails."
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"CVE",
"GHSA"
],
"type": "string",
"description": "The type of identifier."
},
"value": {
"type": "string",
"description": "The identifier value."
}
}
},
"nullable": true,
"readOnly": true
},
"published_at": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The date and time of when the advisory was published, in ISO 8601 format."
},
"withdrawn_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was withdrawn, in ISO 8601 format."
},
"cvss_severities": {
"$ref": "#/components/schemas/cvss-severities"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/vulnerability"
},
"nullable": true,
"description": "The products and respective version ranges affected by the advisory."
},
"nvd_published_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database."
},
"github_reviewed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format."
},
"source_code_location": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The URL of the advisory's source code."
},
"repository_advisory_url": {
"type": "string",
"format": "uri",
"nullable": true,
"readOnly": true,
"description": "The API URL for the repository advisory."
}
},
"description": "A GitHub Security Advisory.",
"additionalProperties": false,
"x-github-breaking-changes": [
{
"patch": {
"required": [
"ghsa_id",
"cve_id",
"url",
"html_url",
"repository_advisory_url",
"summary",
"description",
"type",
"severity",
"source_code_location",
"identifiers",
"references",
"published_at",
"updated_at",
"github_reviewed_at",
"nvd_published_at",
"withdrawn_at",
"vulnerabilities",
"cwes",
"credits"
],
"properties": {
"cvss": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_cvss"
}
]
}
gollum-event
{
"type": "object",
"title": "GollumEvent",
"required": [
"pages"
],
"properties": {
"pages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sha": {
"type": "string"
},
"title": {
"type": "string",
"nullable": true
},
"action": {
"type": "string"
},
"summary": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string"
},
"page_name": {
"type": "string",
"nullable": true
}
}
}
}
}
}
gpg-key
{
"type": "object",
"title": "GPG Key",
"required": [
"id",
"primary_key_id",
"key_id",
"raw_key",
"public_key",
"created_at",
"expires_at",
"can_sign",
"can_encrypt_comms",
"can_encrypt_storage",
"can_certify",
"emails",
"subkeys",
"revoked"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 3
},
"name": {
"type": "string",
"example": "Octocat's GPG Key",
"nullable": true
},
"emails": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"verified": {
"type": "boolean"
}
}
},
"example": [
{
"email": "octocat@users.noreply.github.com",
"verified": true
}
]
},
"key_id": {
"type": "string",
"example": "3262EFF25BA0D270"
},
"raw_key": {
"type": "string",
"nullable": true
},
"revoked": {
"type": "boolean",
"example": true
},
"subkeys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"emails": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"verified": {
"type": "boolean"
}
}
}
},
"key_id": {
"type": "string"
},
"raw_key": {
"type": "string",
"nullable": true
},
"revoked": {
"type": "boolean"
},
"subkeys": {
"type": "array",
"items": {}
},
"can_sign": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"expires_at": {
"type": "string",
"nullable": true
},
"public_key": {
"type": "string"
},
"can_certify": {
"type": "boolean"
},
"primary_key_id": {
"type": "integer"
},
"can_encrypt_comms": {
"type": "boolean"
},
"can_encrypt_storage": {
"type": "boolean"
}
}
},
"example": [
{
"id": 4,
"emails": [],
"key_id": "4A595D4C72EE49C7",
"revoked": false,
"can_sign": false,
"created_at": "2016-03-24T11:31:04-06:00",
"expires_at": null,
"public_key": "zsBNBFayYZ...",
"can_certify": false,
"primary_key_id": 3,
"can_encrypt_comms": true,
"can_encrypt_storage": true
}
]
},
"can_sign": {
"type": "boolean",
"example": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2016-03-24T11:31:04-06:00"
},
"expires_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"public_key": {
"type": "string",
"example": "xsBNBFayYZ..."
},
"can_certify": {
"type": "boolean",
"example": true
},
"primary_key_id": {
"type": "integer",
"nullable": true
},
"can_encrypt_comms": {
"type": "boolean"
},
"can_encrypt_storage": {
"type": "boolean"
}
},
"description": "A unique encryption key"
}
hook
{
"type": "object",
"title": "Webhook",
"required": [
"id",
"url",
"type",
"name",
"active",
"events",
"config",
"ping_url",
"created_at",
"updated_at",
"last_response",
"test_url"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the webhook."
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks/1"
},
"name": {
"type": "string",
"example": "web",
"description": "The name of a valid service, use 'web' for a webhook."
},
"type": {
"type": "string"
},
"active": {
"type": "boolean",
"example": true,
"description": "Determines whether the hook is actually triggered on pushes."
},
"config": {
"$ref": "#/components/schemas/webhook-config"
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"push",
"pull_request"
],
"description": "Determines what events the hook is triggered for. Default: ['push']."
},
"ping_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
},
"test_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-09-06T17:26:27Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-09-06T20:39:23Z"
},
"last_response": {
"$ref": "#/components/schemas/hook-response"
},
"deliveries_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
}
},
"description": "Webhooks for repositories."
}
hook-delivery
{
"type": "object",
"title": "Webhook delivery",
"required": [
"id",
"guid",
"delivered_at",
"redelivery",
"duration",
"status",
"status_code",
"event",
"action",
"installation_id",
"repository_id",
"request",
"response"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the delivery."
},
"url": {
"type": "string",
"example": "https://www.example.com",
"description": "The URL target of the delivery."
},
"guid": {
"type": "string",
"example": "58474f00-b361-11eb-836d-0e4f3503ccbe",
"description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)."
},
"event": {
"type": "string",
"example": "issues",
"description": "The event that triggered the delivery."
},
"action": {
"type": "string",
"example": "opened",
"nullable": true,
"description": "The type of activity for the event that triggered the delivery."
},
"status": {
"type": "string",
"example": "failed to connect",
"description": "Description of the status of the attempted delivery"
},
"request": {
"type": "object",
"required": [
"headers",
"payload"
],
"properties": {
"headers": {
"type": "object",
"nullable": true,
"description": "The request headers sent with the webhook delivery.",
"additionalProperties": true
},
"payload": {
"type": "object",
"nullable": true,
"description": "The webhook payload.",
"additionalProperties": true
}
}
},
"duration": {
"type": "number",
"example": 0.03,
"description": "Time spent delivering."
},
"response": {
"type": "object",
"required": [
"headers",
"payload"
],
"properties": {
"headers": {
"type": "object",
"nullable": true,
"description": "The response headers received when the delivery was made.",
"additionalProperties": true
},
"payload": {
"type": "string",
"nullable": true,
"description": "The response payload received.",
"additionalProperties": true
}
}
},
"redelivery": {
"type": "boolean",
"example": false,
"description": "Whether the delivery is a redelivery."
},
"status_code": {
"type": "integer",
"example": 502,
"description": "Status code received when delivery was made."
},
"delivered_at": {
"type": "string",
"format": "date-time",
"example": "2021-05-12T20:33:44Z",
"description": "Time when the delivery was delivered."
},
"throttled_at": {
"type": "string",
"format": "date-time",
"example": "2021-05-12T20:33:44Z",
"nullable": true,
"description": "Time when the webhook delivery was throttled."
},
"repository_id": {
"type": "integer",
"example": 123,
"nullable": true,
"description": "The id of the repository associated with this event."
},
"installation_id": {
"type": "integer",
"example": 123,
"nullable": true,
"description": "The id of the GitHub App installation associated with this event."
}
},
"description": "Delivery made by a webhook."
}
hook-delivery-item
{
"type": "object",
"title": "Simple webhook delivery",
"required": [
"id",
"guid",
"delivered_at",
"redelivery",
"duration",
"status",
"status_code",
"event",
"action",
"installation_id",
"repository_id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the webhook delivery."
},
"guid": {
"type": "string",
"example": "58474f00-b361-11eb-836d-0e4f3503ccbe",
"description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)."
},
"event": {
"type": "string",
"example": "issues",
"description": "The event that triggered the delivery."
},
"action": {
"type": "string",
"example": "opened",
"nullable": true,
"description": "The type of activity for the event that triggered the delivery."
},
"status": {
"type": "string",
"example": "failed to connect",
"description": "Describes the response returned after attempting the delivery."
},
"duration": {
"type": "number",
"example": 0.03,
"description": "Time spent delivering."
},
"redelivery": {
"type": "boolean",
"example": false,
"description": "Whether the webhook delivery is a redelivery."
},
"status_code": {
"type": "integer",
"example": 502,
"description": "Status code received when delivery was made."
},
"delivered_at": {
"type": "string",
"format": "date-time",
"example": "2021-05-12T20:33:44Z",
"description": "Time when the webhook delivery occurred."
},
"throttled_at": {
"type": "string",
"format": "date-time",
"example": "2021-05-12T20:33:44Z",
"nullable": true,
"description": "Time when the webhook delivery was throttled."
},
"repository_id": {
"type": "integer",
"format": "int64",
"example": 123,
"nullable": true,
"description": "The id of the repository associated with this event."
},
"installation_id": {
"type": "integer",
"format": "int64",
"example": 123,
"nullable": true,
"description": "The id of the GitHub App installation associated with this event."
}
},
"description": "Delivery made by a webhook, without request and response information."
}
hook-response
{
"type": "object",
"title": "Hook Response",
"required": [
"code",
"status",
"message"
],
"properties": {
"code": {
"type": "integer",
"nullable": true
},
"status": {
"type": "string",
"nullable": true
},
"message": {
"type": "string",
"nullable": true
}
}
}
hovercard
{
"type": "object",
"title": "Hovercard",
"required": [
"contexts"
],
"properties": {
"contexts": {
"type": "array",
"items": {
"type": "object",
"required": [
"message",
"octicon"
],
"properties": {
"message": {
"type": "string"
},
"octicon": {
"type": "string"
}
}
}
}
},
"description": "Hovercard"
}
immutable-releases-organization-settings
{
"type": "object",
"title": "Check immutable releases organization settings",
"required": [
"enforced_repositories"
],
"properties": {
"enforced_repositories": {
"enum": [
"all",
"none",
"selected"
],
"type": "string",
"example": "all",
"description": "The policy that controls how immutable releases are enforced in the organization."
},
"selected_repositories_url": {
"type": "string",
"description": "The API URL to use to get or set the selected repositories for immutable releases enforcement, when `enforced_repositories` is set to `selected`."
}
},
"description": "Check immutable releases settings for an organization."
}
import
{
"type": "object",
"title": "Import",
"required": [
"vcs",
"vcs_url",
"status",
"url",
"repository_url",
"html_url",
"authors_url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"vcs": {
"type": "string",
"nullable": true
},
"status": {
"enum": [
"auth",
"error",
"none",
"detecting",
"choose",
"auth_failed",
"importing",
"mapping",
"waiting_to_push",
"pushing",
"complete",
"setup",
"unknown",
"detection_found_multiple",
"detection_found_nothing",
"detection_needs_auth"
],
"type": "string"
},
"message": {
"type": "string"
},
"use_lfs": {
"type": "boolean"
},
"vcs_url": {
"type": "string",
"description": "The URL of the originating repository."
},
"html_url": {
"type": "string",
"format": "uri"
},
"svc_root": {
"type": "string"
},
"svn_root": {
"type": "string"
},
"authors_url": {
"type": "string",
"format": "uri"
},
"failed_step": {
"type": "string",
"nullable": true
},
"status_text": {
"type": "string",
"nullable": true
},
"commit_count": {
"type": "integer",
"nullable": true
},
"push_percent": {
"type": "integer",
"nullable": true
},
"tfvc_project": {
"type": "string"
},
"authors_count": {
"type": "integer",
"nullable": true
},
"error_message": {
"type": "string",
"nullable": true
},
"import_percent": {
"type": "integer",
"nullable": true
},
"repository_url": {
"type": "string",
"format": "uri"
},
"has_large_files": {
"type": "boolean"
},
"project_choices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"vcs": {
"type": "string"
},
"human_name": {
"type": "string"
},
"tfvc_project": {
"type": "string"
}
}
}
},
"large_files_size": {
"type": "integer"
},
"large_files_count": {
"type": "integer"
}
},
"description": "A repository import from an external source."
}
installation
{
"type": "object",
"title": "Installation",
"required": [
"id",
"app_id",
"app_slug",
"target_id",
"target_type",
"single_file_name",
"repository_selection",
"access_tokens_url",
"html_url",
"repositories_url",
"events",
"account",
"permissions",
"created_at",
"updated_at",
"suspended_by",
"suspended_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "The ID of the installation."
},
"app_id": {
"type": "integer",
"example": 1
},
"events": {
"type": "array",
"items": {
"type": "string"
}
},
"account": {
"anyOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
],
"nullable": true
},
"app_slug": {
"type": "string",
"example": "github-actions"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/organizations/github/settings/installations/1"
},
"client_id": {
"type": "string",
"example": "Iv1.ab1112223334445c"
},
"target_id": {
"type": "integer",
"description": "The ID of the user or organization this token is being scoped to."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"permissions": {
"$ref": "#/components/schemas/app-permissions"
},
"target_type": {
"type": "string",
"example": "Organization"
},
"suspended_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"suspended_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"contact_email": {
"type": "string",
"example": "\"test_13f1e99741e3e004@d7e1eb0bc0a1ba12.com\"",
"nullable": true
},
"repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/installation/repositories"
},
"single_file_name": {
"type": "string",
"example": "config.yaml",
"nullable": true
},
"access_tokens_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/app/installations/1/access_tokens"
},
"single_file_paths": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"config.yml",
".github/issue_TEMPLATE.md"
]
},
"repository_selection": {
"enum": [
"all",
"selected"
],
"type": "string",
"description": "Describe whether all repositories have been selected or there's a selection involved"
},
"has_multiple_single_files": {
"type": "boolean",
"example": true
}
},
"description": "Installation"
}
installation-token
{
"type": "object",
"title": "Installation Token",
"required": [
"token",
"expires_at"
],
"properties": {
"token": {
"type": "string"
},
"expires_at": {
"type": "string"
},
"permissions": {
"$ref": "#/components/schemas/app-permissions"
},
"single_file": {
"type": "string",
"example": "README.md"
},
"repositories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository"
}
},
"single_file_paths": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"config.yml",
".github/issue_TEMPLATE.md"
]
},
"repository_selection": {
"enum": [
"all",
"selected"
],
"type": "string"
},
"has_multiple_single_files": {
"type": "boolean",
"example": true
}
},
"description": "Authentication token for a GitHub App installed on a user or org."
}
integration
{
"type": "object",
"title": "GitHub app",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at",
"permissions",
"events"
],
"properties": {
"id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"example": "Probot Owners",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"example": "probot-owners",
"description": "The slug name of the GitHub app"
},
"owner": {
"oneOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
]
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"label",
"deployment"
],
"description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation."
},
"node_id": {
"type": "string",
"example": "MDExOkludGVncmF0aW9uMQ=="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/apps/super-ci"
},
"client_id": {
"type": "string",
"example": "\"Iv1.25b5d1e65ffc4022\""
},
"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"
},
"description": {
"type": "string",
"example": "The description of the app.",
"nullable": true
},
"permissions": {
"type": "object",
"example": {
"issues": "read",
"deployments": "write"
},
"properties": {
"checks": {
"type": "string"
},
"issues": {
"type": "string"
},
"contents": {
"type": "string"
},
"metadata": {
"type": "string"
},
"deployments": {
"type": "string"
}
},
"description": "The set of permissions for the GitHub app",
"additionalProperties": {
"type": "string"
}
},
"external_url": {
"type": "string",
"format": "uri",
"example": "https://example.com"
},
"installations_count": {
"type": "integer",
"example": 5,
"description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself."
}
},
"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."
}
integration-installation-request
{
"type": "object",
"title": "Integration Installation Request",
"required": [
"id",
"account",
"requester",
"created_at"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the request installation."
},
"account": {
"anyOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
]
},
"node_id": {
"type": "string",
"example": "MDExOkludGVncmF0aW9uMQ=="
},
"requester": {
"$ref": "#/components/schemas/simple-user"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-07-08T16:18:44-04:00"
}
},
"description": "Request to install an integration on a target"
}
interaction-expiry
{
"enum": [
"one_day",
"three_days",
"one_week",
"one_month",
"six_months"
],
"type": "string",
"example": "one_month",
"description": "The duration of the interaction restriction. Default: `one_day`."
}
interaction-group
{
"enum": [
"existing_users",
"contributors_only",
"collaborators_only"
],
"type": "string",
"example": "collaborators_only",
"description": "The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect."
}
interaction-limit
{
"type": "object",
"title": "Interaction Restrictions",
"required": [
"limit"
],
"properties": {
"limit": {
"$ref": "#/components/schemas/interaction-group"
},
"expiry": {
"$ref": "#/components/schemas/interaction-expiry"
}
},
"description": "Limit interactions to a specific type of user for a specified duration"
}
interaction-limit-response
{
"type": "object",
"title": "Interaction Limits",
"required": [
"limit",
"origin",
"expires_at"
],
"properties": {
"limit": {
"$ref": "#/components/schemas/interaction-group"
},
"origin": {
"type": "string",
"example": "repository"
},
"expires_at": {
"type": "string",
"format": "date-time",
"example": "2018-08-17T04:18:39Z"
}
},
"description": "Interaction limit settings."
}
issue
{
"type": "object",
"title": "Issue",
"required": [
"assignee",
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/issues/1",
"description": "URL for the issue"
},
"body": {
"type": "string",
"example": "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"draft": {
"type": "boolean"
},
"state": {
"type": "string",
"example": "open",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"example": "Widget creation fails in Safari on OS X 10.8",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"color": {
"type": "string",
"nullable": true
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
]
},
"example": [
"bug",
"registration"
],
"description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository"
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer",
"example": 42,
"description": "Number uniquely identifying the issue within its repository"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"closed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"milestone": {
"$ref": "#/components/schemas/nullable-milestone"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string"
},
"repository": {
"$ref": "#/components/schemas/repository"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"required": [
"diff_url",
"html_url",
"patch_url",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"diff_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
},
"state_reason": {
"enum": [
"completed",
"reopened",
"not_planned",
"duplicate"
],
"type": "string",
"example": "not_planned",
"nullable": true,
"description": "The reason for the current state"
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"parent_issue_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "URL to get the parent issue of this issue, if it is a sub-issue"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"pull_request": {
"type": "object",
"properties": {
"url": {
"nullable": false
},
"diff_url": {
"nullable": false
},
"html_url": {
"nullable": false
},
"merged_at": {
"nullable": false
},
"patch_url": {
"nullable": false
}
}
}
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
},
{
"patch": {
"required": [
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"created_at",
"updated_at"
],
"properties": {
"assignee": null
}
},
"version": "2026-03-10",
"changeset": "remove_singular_assignee_from_issues_and_pull_requests"
}
]
}
issue-comment
{
"type": "object",
"title": "Issue Comment",
"required": [
"id",
"node_id",
"html_url",
"issue_url",
"user",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the issue comment"
},
"pin": {
"$ref": "#/components/schemas/nullable-pinned-issue-comment"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/issues/comments/1",
"description": "URL for the issue comment"
},
"body": {
"type": "string",
"example": "What version of Safari were you using when you observed this bug?",
"description": "Contents of the issue comment"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Comments provide a way for people to collaborate on an issue."
}
issue-comment-event
{
"type": "object",
"title": "IssueCommentEvent",
"required": [
"action",
"issue",
"comment"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/issue"
},
"action": {
"type": "string"
},
"comment": {
"$ref": "#/components/schemas/issue-comment"
}
}
}
issue-dependencies-summary
{
"type": "object",
"title": "Issue Dependencies Summary",
"required": [
"blocked_by",
"blocking",
"total_blocked_by",
"total_blocking"
],
"properties": {
"blocking": {
"type": "integer"
},
"blocked_by": {
"type": "integer"
},
"total_blocking": {
"type": "integer"
},
"total_blocked_by": {
"type": "integer"
}
}
}
issue-event
{
"type": "object",
"title": "Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/events/1"
},
"actor": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"event": {
"type": "string",
"example": "closed"
},
"issue": {
"$ref": "#/components/schemas/nullable-issue"
},
"label": {
"$ref": "#/components/schemas/issue-event-label"
},
"rename": {
"$ref": "#/components/schemas/issue-event-rename"
},
"node_id": {
"type": "string",
"example": "MDEwOklzc3VlRXZlbnQx"
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"assigner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"commit_id": {
"type": "string",
"example": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"nullable": true
},
"milestone": {
"$ref": "#/components/schemas/issue-event-milestone"
},
"commit_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"lock_reason": {
"type": "string",
"nullable": true
},
"project_card": {
"$ref": "#/components/schemas/issue-event-project-card"
},
"requested_team": {
"$ref": "#/components/schemas/team"
},
"dismissed_review": {
"$ref": "#/components/schemas/issue-event-dismissed-review"
},
"review_requester": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"requested_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Issue Event"
}
issue-event-dismissed-review
{
"type": "object",
"title": "Issue Event Dismissed Review",
"required": [
"state",
"review_id",
"dismissal_message"
],
"properties": {
"state": {
"type": "string"
},
"review_id": {
"type": "integer"
},
"dismissal_message": {
"type": "string",
"nullable": true
},
"dismissal_commit_id": {
"type": "string",
"nullable": true
}
}
}
issue-event-for-issue
{
"anyOf": [
{
"$ref": "#/components/schemas/labeled-issue-event"
},
{
"$ref": "#/components/schemas/unlabeled-issue-event"
},
{
"$ref": "#/components/schemas/assigned-issue-event"
},
{
"$ref": "#/components/schemas/unassigned-issue-event"
},
{
"$ref": "#/components/schemas/milestoned-issue-event"
},
{
"$ref": "#/components/schemas/demilestoned-issue-event"
},
{
"$ref": "#/components/schemas/renamed-issue-event"
},
{
"$ref": "#/components/schemas/review-requested-issue-event"
},
{
"$ref": "#/components/schemas/review-request-removed-issue-event"
},
{
"$ref": "#/components/schemas/review-dismissed-issue-event"
},
{
"$ref": "#/components/schemas/locked-issue-event"
},
{
"$ref": "#/components/schemas/added-to-project-issue-event"
},
{
"$ref": "#/components/schemas/moved-column-in-project-issue-event"
},
{
"$ref": "#/components/schemas/removed-from-project-issue-event"
},
{
"$ref": "#/components/schemas/converted-note-to-issue-issue-event"
}
],
"title": "Issue Event for Issue",
"description": "Issue Event for Issue"
}
issue-event-label
{
"type": "object",
"title": "Issue Event Label",
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string",
"nullable": true
},
"color": {
"type": "string",
"nullable": true
}
},
"description": "Issue Event Label"
}
issue-event-milestone
{
"type": "object",
"title": "Issue Event Milestone",
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
}
},
"description": "Issue Event Milestone"
}
issue-event-project-card
{
"type": "object",
"title": "Issue Event Project Card",
"required": [
"url",
"id",
"project_url",
"project_id",
"column_name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"project_id": {
"type": "integer"
},
"column_name": {
"type": "string"
},
"project_url": {
"type": "string",
"format": "uri"
},
"previous_column_name": {
"type": "string"
}
},
"description": "Issue Event Project Card"
}
issue-event-rename
{
"type": "object",
"title": "Issue Event Rename",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
}
},
"description": "Issue Event Rename"
}
issue-field
{
"type": "object",
"title": "Issue Field",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"data_type"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the issue field."
},
"name": {
"type": "string",
"description": "The name of the issue field."
},
"node_id": {
"type": "string",
"description": "The node identifier of the issue field."
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the option."
},
"name": {
"type": "string",
"description": "The name of the option."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"nullable": true,
"description": "The color of the option."
},
"priority": {
"type": "integer",
"nullable": true,
"description": "The priority of the option for ordering."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time the option was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The time the option was last updated."
},
"description": {
"type": "string",
"nullable": true,
"description": "The description of the option."
}
}
},
"nullable": true,
"description": "Available options for single select fields."
},
"data_type": {
"enum": [
"text",
"date",
"single_select",
"number"
],
"type": "string",
"description": "The data type of the issue field."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time the issue field was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The time the issue field was last updated."
},
"visibility": {
"enum": [
"organization_members_only",
"all"
],
"type": "string",
"description": "The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues)."
},
"description": {
"type": "string",
"nullable": true,
"description": "The description of the issue field."
}
},
"description": "A custom attribute defined at the organization level for attaching structured data to issues."
}
issue-field-value
{
"type": "object",
"title": "Issue Field Value",
"required": [
"issue_field_id",
"node_id",
"data_type",
"value"
],
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"example": "Sample text"
},
{
"type": "number",
"example": 42.5
},
{
"type": "integer",
"example": 1
}
],
"nullable": true,
"description": "The value of the issue field"
},
"node_id": {
"type": "string",
"example": "IFT_GDKND"
},
"data_type": {
"enum": [
"text",
"single_select",
"number",
"date"
],
"type": "string",
"example": "text",
"description": "The data type of the issue field"
},
"issue_field_id": {
"type": "integer",
"format": "int64",
"example": 1,
"description": "Unique identifier for the issue field."
},
"single_select_option": {
"type": "object",
"nullable": true,
"required": [
"id",
"name",
"color"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1,
"description": "Unique identifier for the option."
},
"name": {
"type": "string",
"example": "High",
"description": "The name of the option"
},
"color": {
"type": "string",
"example": "red",
"description": "The color of the option"
}
},
"description": "Details about the selected option (only present for single_select fields)"
}
},
"description": "A value assigned to an issue field"
}
issue-search-result-item
{
"type": "object",
"title": "Issue Search Result Item",
"required": [
"assignee",
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"author_association",
"created_at",
"updated_at",
"score"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"draft": {
"type": "boolean"
},
"score": {
"type": "number"
},
"state": {
"type": "string"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"nullable": true
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"$ref": "#/components/schemas/nullable-milestone"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string"
},
"repository": {
"$ref": "#/components/schemas/repository"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"required": [
"diff_url",
"html_url",
"patch_url",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"diff_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "Issue Search Result Item",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"author_association",
"created_at",
"updated_at",
"score"
],
"properties": {
"assignee": null
}
},
"version": "2026-03-10",
"changeset": "remove_singular_assignee_from_issues_and_pull_requests"
}
]
}
issue-type
{
"type": "object",
"title": "Issue Type",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"description"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the issue type."
},
"name": {
"type": "string",
"description": "The name of the issue type."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"nullable": true,
"description": "The color of the issue type."
},
"node_id": {
"type": "string",
"description": "The node identifier of the issue type."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time the issue type created."
},
"is_enabled": {
"type": "boolean",
"description": "The enabled state of the issue type."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The time the issue type last updated."
},
"description": {
"type": "string",
"nullable": true,
"description": "The description of the issue type."
}
},
"description": "The type of issue."
}
issues-event
{
"type": "object",
"title": "IssuesEvent",
"required": [
"action",
"issue"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/issue"
},
"label": {
"$ref": "#/components/schemas/label"
},
"action": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/label"
}
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
}
}
}
job
{
"type": "object",
"title": "Job",
"required": [
"id",
"node_id",
"run_id",
"run_url",
"head_sha",
"workflow_name",
"head_branch",
"name",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name",
"created_at"
],
"properties": {
"id": {
"type": "integer",
"example": 21,
"description": "The id of the job."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/jobs/21"
},
"name": {
"type": "string",
"example": "test-coverage",
"description": "The name of the job."
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"status",
"conclusion",
"number"
],
"properties": {
"name": {
"type": "string",
"example": "test-coverage",
"description": "The name of the job."
},
"number": {
"type": "integer",
"example": 1
},
"status": {
"enum": [
"queued",
"in_progress",
"completed"
],
"type": "string",
"example": "queued",
"description": "The phase of the lifecycle that the job is currently in."
},
"conclusion": {
"type": "string",
"example": "success",
"nullable": true,
"description": "The outcome of the job."
},
"started_at": {
"type": "string",
"format": "date-time",
"example": "2019-08-08T08:00:00-07:00",
"nullable": true,
"description": "The time that the step started, in ISO 8601 format."
},
"completed_at": {
"type": "string",
"format": "date-time",
"example": "2019-08-08T08:00:00-07:00",
"nullable": true,
"description": "The time that the job finished, in ISO 8601 format."
}
}
},
"description": "Steps in this job."
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"self-hosted",
"foo",
"bar"
],
"description": "Labels for the workflow job. Specified by the \"runs_on\" attribute in the action's workflow file."
},
"run_id": {
"type": "integer",
"example": 5,
"description": "The id of the associated workflow run."
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"requested",
"pending"
],
"type": "string",
"example": "queued",
"description": "The phase of the lifecycle that the job is currently in."
},
"node_id": {
"type": "string",
"example": "MDg6Q2hlY2tSdW40"
},
"run_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the commit that is being run."
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/runs/4",
"nullable": true
},
"runner_id": {
"type": "integer",
"example": 1,
"nullable": true,
"description": "The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"skipped",
"timed_out",
"action_required"
],
"type": "string",
"example": "success",
"nullable": true,
"description": "The outcome of the job."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-08-08T08:00:00-07:00",
"description": "The time that the job created, in ISO 8601 format."
},
"started_at": {
"type": "string",
"format": "date-time",
"example": "2019-08-08T08:00:00-07:00",
"description": "The time that the job started, in ISO 8601 format."
},
"head_branch": {
"type": "string",
"example": "main",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer",
"example": 1,
"description": "Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run."
},
"runner_name": {
"type": "string",
"example": "my runner",
"nullable": true,
"description": "The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)"
},
"completed_at": {
"type": "string",
"format": "date-time",
"example": "2019-08-08T08:00:00-07:00",
"nullable": true,
"description": "The time that the job finished, in ISO 8601 format."
},
"check_run_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-runs/4"
},
"workflow_name": {
"type": "string",
"example": "Build",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "integer",
"example": 2,
"nullable": true,
"description": "The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)"
},
"runner_group_name": {
"type": "string",
"example": "my runner group",
"nullable": true,
"description": "The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)"
}
},
"description": "Information of a job execution in a workflow run"
}
key
{
"type": "object",
"title": "Key",
"required": [
"key",
"id",
"url",
"title",
"created_at",
"verified",
"read_only"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"key": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"verified": {
"type": "boolean"
},
"last_used": {
"type": "string",
"format": "date-time",
"nullable": true
},
"read_only": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Key"
}
key-simple
{
"type": "object",
"title": "Key Simple",
"required": [
"key",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"last_used": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Key Simple"
}
label
{
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"description",
"color",
"default"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 208045946,
"description": "Unique identifier for the label."
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/labels/bug",
"description": "URL for the label"
},
"name": {
"type": "string",
"example": "bug",
"description": "The name of the label."
},
"color": {
"type": "string",
"example": "FFFFFF",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean",
"example": true,
"description": "Whether this label comes by default in a new repository."
},
"node_id": {
"type": "string",
"example": "MDU6TGFiZWwyMDgwNDU5NDY="
},
"description": {
"type": "string",
"example": "Something isn't working",
"nullable": true,
"description": "Optional description of the label, such as its purpose."
}
},
"description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail)."
}
label-search-result-item
{
"type": "object",
"title": "Label Search Result Item",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description",
"score"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"score": {
"type": "number"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
}
},
"description": "Label Search Result Item"
}
labeled-issue-event
{
"type": "object",
"title": "Labeled Issue Event",
"required": [
"label",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"label": {
"type": "object",
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string"
},
"color": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Labeled Issue Event"
}
language
{
"type": "object",
"title": "Language",
"description": "Language",
"additionalProperties": {
"type": "integer"
}
}
ldap-dn
{
"type": "string",
"example": "cn=Enterprise Ops,ou=teams,dc=github,dc=com",
"description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team."
}
license
{
"type": "object",
"title": "License",
"required": [
"key",
"name",
"url",
"spdx_id",
"node_id",
"html_url",
"description",
"implementation",
"permissions",
"conditions",
"limitations",
"body",
"featured"
],
"properties": {
"key": {
"type": "string",
"example": "mit"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/licenses/mit",
"nullable": true
},
"body": {
"type": "string",
"example": "\n\nThe MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
},
"name": {
"type": "string",
"example": "MIT License"
},
"node_id": {
"type": "string",
"example": "MDc6TGljZW5zZW1pdA=="
},
"spdx_id": {
"type": "string",
"example": "MIT",
"nullable": true
},
"featured": {
"type": "boolean",
"example": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "http://choosealicense.com/licenses/mit/"
},
"conditions": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"include-copyright"
]
},
"description": {
"type": "string",
"example": "A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty."
},
"limitations": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"no-liability"
]
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"commercial-use",
"modifications",
"distribution",
"sublicense",
"private-use"
]
},
"implementation": {
"type": "string",
"example": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders."
}
},
"description": "License"
}
license-content
{
"type": "object",
"title": "License Content",
"required": [
"_links",
"git_url",
"html_url",
"download_url",
"name",
"path",
"sha",
"size",
"type",
"url",
"content",
"encoding",
"license"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"git",
"html",
"self"
],
"properties": {
"git": {
"type": "string",
"format": "uri",
"nullable": true
},
"html": {
"type": "string",
"format": "uri",
"nullable": true
},
"self": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"type": "string"
},
"git_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"encoding": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"download_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"description": "License Content"
}
license-simple
{
"type": "object",
"title": "License Simple",
"required": [
"key",
"name",
"url",
"spdx_id",
"node_id"
],
"properties": {
"key": {
"type": "string",
"example": "mit"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/licenses/mit",
"nullable": true
},
"name": {
"type": "string",
"example": "MIT License"
},
"node_id": {
"type": "string",
"example": "MDc6TGljZW5zZW1pdA=="
},
"spdx_id": {
"type": "string",
"example": "MIT",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
}
},
"description": "License Simple"
}
link
{
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
},
"description": "Hypermedia Link"
}
link-with-type
{
"type": "object",
"title": "Link With Type",
"required": [
"href",
"type"
],
"properties": {
"href": {
"type": "string"
},
"type": {
"type": "string"
}
},
"description": "Hypermedia Link with Type"
}
locked-issue-event
{
"type": "object",
"title": "Locked Issue Event",
"required": [
"lock_reason",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"lock_reason": {
"type": "string",
"example": "\"off-topic\"",
"nullable": true
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Locked Issue Event"
}
manifest
{
"type": "object",
"required": [
"name"
],
"properties": {
"file": {
"type": "object",
"properties": {
"source_location": {
"type": "string",
"example": "/src/build/package-lock.json",
"description": "The path of the manifest file relative to the root of the Git repository."
}
},
"additionalProperties": false
},
"name": {
"type": "string",
"example": "package-lock.json",
"description": "The name of the manifest."
},
"metadata": {
"$ref": "#/components/schemas/metadata"
},
"resolved": {
"type": "object",
"description": "A collection of resolved package dependencies.",
"additionalProperties": {
"$ref": "#/components/schemas/dependency"
}
}
},
"additionalProperties": false
}
marketplace-account
{
"type": "object",
"title": "Marketplace Account",
"required": [
"url",
"id",
"type",
"login"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"format": "email",
"nullable": true
}
}
}
marketplace-listing-plan
{
"type": "object",
"title": "Marketplace Listing Plan",
"required": [
"url",
"accounts_url",
"id",
"number",
"name",
"description",
"has_free_trial",
"price_model",
"unit_name",
"monthly_price_in_cents",
"state",
"yearly_price_in_cents",
"bullets"
],
"properties": {
"id": {
"type": "integer",
"example": 1313
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/marketplace_listing/plans/1313"
},
"name": {
"type": "string",
"example": "Pro"
},
"state": {
"type": "string",
"example": "published"
},
"number": {
"type": "integer",
"example": 3
},
"bullets": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"Up to 25 private repositories",
"11 concurrent builds"
]
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"example": "A professional-grade CI solution"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string",
"example": "FLAT_RATE"
},
"accounts_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/marketplace_listing/plans/1313/accounts"
},
"has_free_trial": {
"type": "boolean",
"example": true
},
"yearly_price_in_cents": {
"type": "integer",
"example": 11870
},
"monthly_price_in_cents": {
"type": "integer",
"example": 1099
}
},
"description": "Marketplace Listing Plan"
}
marketplace-purchase
{
"type": "object",
"title": "Marketplace Purchase",
"required": [
"url",
"id",
"type",
"login",
"marketplace_purchase"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"marketplace_purchase": {
"type": "object",
"properties": {
"plan": {
"$ref": "#/components/schemas/marketplace-listing-plan"
},
"unit_count": {
"type": "integer",
"nullable": true
},
"updated_at": {
"type": "string"
},
"is_installed": {
"type": "boolean"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"type": "string",
"nullable": true
}
}
},
"marketplace_pending_change": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"plan": {
"$ref": "#/components/schemas/marketplace-listing-plan"
},
"unit_count": {
"type": "integer",
"nullable": true
},
"is_installed": {
"type": "boolean"
},
"effective_date": {
"type": "string"
}
}
},
"organization_billing_email": {
"type": "string"
}
},
"description": "Marketplace Purchase"
}
member-event
{
"type": "object",
"title": "MemberEvent",
"required": [
"action",
"member"
],
"properties": {
"action": {
"type": "string"
},
"member": {
"$ref": "#/components/schemas/simple-user"
}
}
}
merge-group
{
"type": "object",
"title": "Merge Group",
"required": [
"head_sha",
"head_ref",
"base_sha",
"base_ref",
"head_commit"
],
"properties": {
"base_ref": {
"type": "string",
"description": "The full ref of the branch the merge group will be merged into."
},
"base_sha": {
"type": "string",
"description": "The SHA of the merge group's parent commit."
},
"head_ref": {
"type": "string",
"description": "The full ref of the merge group."
},
"head_sha": {
"type": "string",
"description": "The SHA of the merge group."
},
"head_commit": {
"$ref": "#/components/schemas/simple-commit"
}
},
"description": "A group of pull requests that the merge queue has grouped together to be merged."
}
merged-upstream
{
"type": "object",
"title": "Merged upstream",
"properties": {
"message": {
"type": "string"
},
"merge_type": {
"enum": [
"merge",
"fast-forward",
"none"
],
"type": "string"
},
"base_branch": {
"type": "string"
}
},
"description": "Results of a successful merge upstream request"
}
metadata
{
"type": "object",
"title": "metadata",
"description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
"maxProperties": 8,
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
],
"nullable": true
}
}
migration
{
"type": "object",
"title": "Migration",
"required": [
"id",
"node_id",
"owner",
"guid",
"state",
"lock_repositories",
"exclude_metadata",
"exclude_git_data",
"exclude_attachments",
"exclude_releases",
"exclude_owner_projects",
"org_metadata_only",
"repositories",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 79
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octo-org/migrations/79"
},
"guid": {
"type": "string",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516"
},
"owner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"state": {
"type": "string",
"example": "pending"
},
"exclude": {
"type": "array",
"items": {
"type": "string",
"description": "Allowed values that can be passed to the exclude parameter. The array can include any of: `\"repositories\"`."
},
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`."
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2015-07-06T15:33:38-07:00"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2015-07-06T15:33:38-07:00"
},
"archive_url": {
"type": "string",
"format": "uri"
},
"repositories": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository"
},
"description": "The repositories included in the migration. Only returned for export migrations."
},
"exclude_git_data": {
"type": "boolean"
},
"exclude_metadata": {
"type": "boolean"
},
"exclude_releases": {
"type": "boolean"
},
"lock_repositories": {
"type": "boolean",
"example": true
},
"org_metadata_only": {
"type": "boolean"
},
"exclude_attachments": {
"type": "boolean"
},
"exclude_owner_projects": {
"type": "boolean"
}
},
"description": "A migration.",
"x-github-breaking-changes": [
{
"patch": [
{
"op": "replace",
"path": "/properties/repositories",
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-repository"
},
"description": "The repositories included in the migration. Only returned for export migrations."
}
}
],
"version": "2026-03-10",
"changeset": "restrict_repo_fields_in_migration_resource"
}
]
}
milestone
{
"type": "object",
"title": "Milestone",
"required": [
"closed_issues",
"creator",
"description",
"due_on",
"closed_at",
"id",
"node_id",
"labels_url",
"html_url",
"number",
"open_issues",
"state",
"title",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1002604
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones/1"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"default": "open",
"example": "open",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"example": "v1.0",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"example": "2012-10-09T23:39:01Z",
"nullable": true
},
"number": {
"type": "integer",
"example": 42,
"description": "The number of the milestone."
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string",
"example": "MDk6TWlsZXN0b25lMTAwMjYwNA=="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/milestones/v1.0"
},
"closed_at": {
"type": "string",
"format": "date-time",
"example": "2013-02-12T13:22:01Z",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-10T20:09:31Z"
},
"labels_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2014-03-03T18:58:10Z"
},
"description": {
"type": "string",
"example": "Tracking milestone for version 1.0",
"nullable": true
},
"open_issues": {
"type": "integer",
"example": 4
},
"closed_issues": {
"type": "integer",
"example": 8
}
},
"description": "A collection of related issues and pull requests."
}
milestoned-issue-event
{
"type": "object",
"title": "Milestoned Issue Event",
"required": [
"milestone",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
}
}
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Milestoned Issue Event"
}
minimal-repository
{
"type": "object",
"title": "Minimal Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1296269
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Hello-World"
},
"size": {
"type": "integer",
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer",
"example": 0
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"license": {
"type": "object",
"nullable": true,
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer",
"example": 0
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"role_name": {
"type": "string",
"example": "admin"
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer",
"example": 0
},
"permissions": {
"type": "object",
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer"
},
"code_of_conduct": {
"$ref": "#/components/schemas/code-of-conduct"
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean"
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean"
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer"
},
"subscribers_count": {
"type": "integer"
},
"security_and_analysis": {
"$ref": "#/components/schemas/security-and-analysis"
},
"delete_branch_on_merge": {
"type": "boolean"
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "Minimal Repository",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
moved-column-in-project-issue-event
{
"type": "object",
"title": "Moved Column in Project Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"project_card": {
"type": "object",
"required": [
"id",
"url",
"project_id",
"project_url",
"column_name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"project_id": {
"type": "integer"
},
"column_name": {
"type": "string"
},
"project_url": {
"type": "string",
"format": "uri"
},
"previous_column_name": {
"type": "string"
}
}
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Moved Column in Project Issue Event"
}
network-configuration
{
"type": "object",
"title": "Hosted compute network configuration",
"required": [
"id",
"name",
"created_on"
],
"properties": {
"id": {
"type": "string",
"example": "123ABC456DEF789",
"description": "The unique identifier of the network configuration."
},
"name": {
"type": "string",
"example": "my-network-configuration",
"description": "The name of the network configuration."
},
"created_on": {
"type": "string",
"format": "date-time",
"example": "2024-04-26T11:31:07Z",
"nullable": true,
"description": "The time at which the network configuration was created, in ISO 8601 format."
},
"compute_service": {
"enum": [
"none",
"actions",
"codespaces"
],
"type": "string",
"description": "The hosted compute service the network configuration supports."
},
"network_settings_ids": {
"type": "array",
"items": {
"type": "string"
},
"example": "123ABC456DEF789",
"description": "The unique identifier of each network settings in the configuration."
},
"failover_network_enabled": {
"type": "boolean",
"example": true,
"description": "Indicates whether the failover network resource is enabled."
},
"failover_network_settings_ids": {
"type": "array",
"items": {
"type": "string"
},
"example": "123ABC456DEF789",
"description": "The unique identifier of each failover network settings in the configuration."
}
},
"description": "A hosted compute network configuration."
}
network-settings
{
"type": "object",
"title": "Hosted compute network settings resource",
"required": [
"id",
"name",
"subnet_id",
"region"
],
"properties": {
"id": {
"type": "string",
"example": "220F78DACB92BBFBC5E6F22DE1CCF52309D",
"description": "The unique identifier of the network settings resource."
},
"name": {
"type": "string",
"example": "my-network-settings",
"description": "The name of the network settings resource."
},
"region": {
"type": "string",
"example": "eastus",
"description": "The location of the subnet this network settings resource is configured for."
},
"subnet_id": {
"type": "string",
"example": "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet",
"description": "The subnet this network settings resource is configured for."
},
"network_configuration_id": {
"type": "string",
"example": "934E208B3EE0BD60CF5F752C426BFB53562",
"description": "The identifier of the network configuration that is using this settings resource."
}
},
"description": "A hosted compute network settings resource."
}
nullable-actions-hosted-runner-pool-image
{
"type": "object",
"title": "GitHub-hosted runner image details.",
"nullable": true,
"required": [
"id",
"size_gb",
"display_name",
"source"
],
"properties": {
"id": {
"type": "string",
"example": "ubuntu-20.04",
"description": "The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
},
"source": {
"enum": [
"github",
"partner",
"custom"
],
"type": "string",
"description": "The image provider."
},
"size_gb": {
"type": "integer",
"example": 86,
"description": "Image size in GB."
},
"version": {
"type": "string",
"example": "latest",
"description": "The image version of the hosted runner pool."
},
"display_name": {
"type": "string",
"example": 20.04,
"description": "Display name for this image."
}
},
"description": "Provides details of a hosted runner image"
}
nullable-alert-updated-at
{
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
}
nullable-code-of-conduct-simple
{
"type": "object",
"title": "Code Of Conduct Simple",
"nullable": true,
"required": [
"url",
"key",
"name",
"html_url"
],
"properties": {
"key": {
"type": "string",
"example": "citizen_code_of_conduct"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/github/docs/community/code_of_conduct"
},
"name": {
"type": "string",
"example": "Citizen Code of Conduct"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md",
"nullable": true
}
},
"description": "Code of Conduct Simple"
}
nullable-codespace-machine
{
"type": "object",
"title": "Codespace machine",
"nullable": true,
"required": [
"name",
"display_name",
"operating_system",
"storage_in_bytes",
"memory_in_bytes",
"cpus",
"prebuild_availability"
],
"properties": {
"cpus": {
"type": "integer",
"example": 4,
"description": "How many cores are available to the codespace."
},
"name": {
"type": "string",
"example": "standardLinux",
"description": "The name of the machine."
},
"display_name": {
"type": "string",
"example": "4 cores, 16 GB RAM, 64 GB storage",
"description": "The display name of the machine includes cores, memory, and storage."
},
"memory_in_bytes": {
"type": "integer",
"example": 17179869184,
"description": "How much memory is available to the codespace."
},
"operating_system": {
"type": "string",
"example": "linux",
"description": "The operating system of the machine."
},
"storage_in_bytes": {
"type": "integer",
"example": 68719476736,
"description": "How much storage is available to the codespace."
},
"prebuild_availability": {
"enum": [
"none",
"ready",
"in_progress"
],
"type": "string",
"example": "ready",
"nullable": true,
"description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status."
}
},
"description": "A description of the machine powering a codespace."
}
nullable-collaborator
{
"type": "object",
"title": "Collaborator",
"nullable": true,
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url",
"role_name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"role_name": {
"type": "string",
"example": "admin"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
}
},
"description": "Collaborator"
}
nullable-community-health-file
{
"type": "object",
"title": "Community Health File",
"nullable": true,
"required": [
"url",
"html_url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
}
}
}
nullable-deployment
{
"type": "object",
"title": "Deployment",
"nullable": true,
"required": [
"id",
"node_id",
"sha",
"ref",
"task",
"environment",
"creator",
"payload",
"description",
"statuses_url",
"repository_url",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the deployment"
},
"ref": {
"type": "string",
"example": "topic-branch",
"description": "The ref to deploy. This can be a branch, tag, or sha."
},
"sha": {
"type": "string",
"example": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1"
},
"task": {
"type": "string",
"example": "deploy",
"description": "Parameter to specify a task to execute"
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string",
"example": "MDEwOkRlcGxveW1lbnQx"
},
"payload": {
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "string"
}
]
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2012-07-20T01:19:13Z"
},
"description": {
"type": "string",
"example": "Deploy request from hubot",
"nullable": true
},
"environment": {
"type": "string",
"example": "production",
"description": "Name for the target deployment environment."
},
"statuses_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/deployments/1/statuses"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
},
"original_environment": {
"type": "string",
"example": "staging"
},
"transient_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is will no longer exist at some point in the future. Default: false."
},
"production_environment": {
"type": "boolean",
"example": true,
"description": "Specifies if the given environment is one that end-users directly interact with. Default: false."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "A request for a specific ref(branch,sha,tag) to be deployed"
}
nullable-git-user
{
"type": "object",
"title": "Git User",
"nullable": true,
"properties": {
"date": {
"type": "string",
"format": "date-time",
"example": "\"2007-10-29T02:42:39.000-07:00\""
},
"name": {
"type": "string",
"example": "\"Chris Wanstrath\""
},
"email": {
"type": "string",
"example": "\"chris@ozmm.org\""
}
},
"description": "Metaproperties for Git author/committer information."
}
nullable-integration
{
"type": "object",
"title": "GitHub app",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at",
"permissions",
"events"
],
"properties": {
"id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"example": "Probot Owners",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"example": "probot-owners",
"description": "The slug name of the GitHub app"
},
"owner": {
"oneOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
]
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"label",
"deployment"
],
"description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation."
},
"node_id": {
"type": "string",
"example": "MDExOkludGVncmF0aW9uMQ=="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/apps/super-ci"
},
"client_id": {
"type": "string",
"example": "\"Iv1.25b5d1e65ffc4022\""
},
"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"
},
"description": {
"type": "string",
"example": "The description of the app.",
"nullable": true
},
"permissions": {
"type": "object",
"example": {
"issues": "read",
"deployments": "write"
},
"properties": {
"checks": {
"type": "string"
},
"issues": {
"type": "string"
},
"contents": {
"type": "string"
},
"metadata": {
"type": "string"
},
"deployments": {
"type": "string"
}
},
"description": "The set of permissions for the GitHub app",
"additionalProperties": {
"type": "string"
}
},
"external_url": {
"type": "string",
"format": "uri",
"example": "https://example.com"
},
"installations_count": {
"type": "integer",
"example": 5,
"description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself."
}
},
"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."
}
nullable-issue
{
"type": "object",
"title": "Issue",
"nullable": true,
"required": [
"assignee",
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/issues/1",
"description": "URL for the issue"
},
"body": {
"type": "string",
"example": "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"draft": {
"type": "boolean"
},
"state": {
"type": "string",
"example": "open",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"example": "Widget creation fails in Safari on OS X 10.8",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"color": {
"type": "string",
"nullable": true
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
]
},
"example": [
"bug",
"registration"
],
"description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository"
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer",
"example": 42,
"description": "Number uniquely identifying the issue within its repository"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"closed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"milestone": {
"$ref": "#/components/schemas/nullable-milestone"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string"
},
"repository": {
"$ref": "#/components/schemas/repository"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"required": [
"diff_url",
"html_url",
"patch_url",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"diff_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
},
"state_reason": {
"enum": [
"completed",
"reopened",
"not_planned",
"duplicate"
],
"type": "string",
"example": "not_planned",
"nullable": true,
"description": "The reason for the current state"
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"parent_issue_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "URL to get the parent issue of this issue, if it is a sub-issue"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"pull_request": {
"type": "object",
"properties": {
"url": {
"nullable": false
},
"diff_url": {
"nullable": false
},
"html_url": {
"nullable": false
},
"merged_at": {
"nullable": false
},
"patch_url": {
"nullable": false
}
}
}
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
},
{
"patch": {
"required": [
"closed_at",
"comments",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"labels",
"labels_url",
"milestone",
"number",
"repository_url",
"state",
"locked",
"title",
"url",
"user",
"created_at",
"updated_at"
],
"properties": {
"assignee": null
}
},
"version": "2026-03-10",
"changeset": "remove_singular_assignee_from_issues_and_pull_requests"
}
]
}
nullable-issue-comment
{
"type": "object",
"title": "Issue Comment",
"nullable": true,
"required": [
"id",
"node_id",
"html_url",
"issue_url",
"user",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the issue comment"
},
"pin": {
"$ref": "#/components/schemas/nullable-pinned-issue-comment"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/issues/comments/1",
"description": "URL for the issue comment"
},
"body": {
"type": "string",
"example": "What version of Safari were you using when you observed this bug?",
"description": "Contents of the issue comment"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Comments provide a way for people to collaborate on an issue."
}
nullable-license-simple
{
"type": "object",
"title": "License Simple",
"nullable": true,
"required": [
"key",
"name",
"url",
"spdx_id",
"node_id"
],
"properties": {
"key": {
"type": "string",
"example": "mit"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/licenses/mit",
"nullable": true
},
"name": {
"type": "string",
"example": "MIT License"
},
"node_id": {
"type": "string",
"example": "MDc6TGljZW5zZW1pdA=="
},
"spdx_id": {
"type": "string",
"example": "MIT",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
}
},
"description": "License Simple"
}
nullable-milestone
{
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"closed_issues",
"creator",
"description",
"due_on",
"closed_at",
"id",
"node_id",
"labels_url",
"html_url",
"number",
"open_issues",
"state",
"title",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1002604
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones/1"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"default": "open",
"example": "open",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"example": "v1.0",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"example": "2012-10-09T23:39:01Z",
"nullable": true
},
"number": {
"type": "integer",
"example": 42,
"description": "The number of the milestone."
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string",
"example": "MDk6TWlsZXN0b25lMTAwMjYwNA=="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/milestones/v1.0"
},
"closed_at": {
"type": "string",
"format": "date-time",
"example": "2013-02-12T13:22:01Z",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-10T20:09:31Z"
},
"labels_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2014-03-03T18:58:10Z"
},
"description": {
"type": "string",
"example": "Tracking milestone for version 1.0",
"nullable": true
},
"open_issues": {
"type": "integer",
"example": 4
},
"closed_issues": {
"type": "integer",
"example": 8
}
},
"description": "A collection of related issues and pull requests."
}
nullable-minimal-repository
{
"type": "object",
"title": "Minimal Repository",
"nullable": true,
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1296269
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Hello-World"
},
"size": {
"type": "integer",
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer",
"example": 0
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"license": {
"type": "object",
"nullable": true,
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer",
"example": 0
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"role_name": {
"type": "string",
"example": "admin"
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer",
"example": 0
},
"permissions": {
"type": "object",
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer"
},
"code_of_conduct": {
"$ref": "#/components/schemas/code-of-conduct"
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean"
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean"
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer"
},
"subscribers_count": {
"type": "integer"
},
"security_and_analysis": {
"$ref": "#/components/schemas/security-and-analysis"
},
"delete_branch_on_merge": {
"type": "boolean"
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "Minimal Repository",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
nullable-organization-simple
{
"type": "object",
"title": "Organization Simple",
"nullable": true,
"required": [
"login",
"url",
"id",
"node_id",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github"
},
"login": {
"type": "string",
"example": "github"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"hooks_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/hooks"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/repos"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/events"
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/issues"
},
"description": {
"type": "string",
"example": "A great organization",
"nullable": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/members{/member}"
},
"public_members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/public_members{/member}"
}
},
"description": "A GitHub organization."
}
nullable-pinned-issue-comment
{
"type": "object",
"title": "Pinned Issue Comment",
"nullable": true,
"required": [
"pinned_at",
"pinned_by"
],
"properties": {
"pinned_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"pinned_by": {
"$ref": "#/components/schemas/nullable-simple-user"
}
},
"description": "Context around who pinned an issue comment and when it was pinned."
}
nullable-projects-v2-status-update
{
"type": "object",
"title": "Projects v2 Status Update",
"nullable": true,
"required": [
"id",
"node_id",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the status update."
},
"body": {
"type": "string",
"example": "The project is off to a great start!",
"nullable": true,
"description": "Body of the status update"
},
"status": {
"enum": [
"INACTIVE",
"ON_TRACK",
"AT_RISK",
"OFF_TRACK",
"COMPLETE"
],
"type": "string",
"nullable": true,
"description": "The current status."
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the status update."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the status update was created."
},
"start_date": {
"type": "string",
"format": "date",
"example": "2022-04-28",
"description": "The start date of the period covered by the update."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the status update was last updated."
},
"target_date": {
"type": "string",
"format": "date",
"example": "2022-04-28",
"description": "The target date associated with the update."
},
"project_node_id": {
"type": "string",
"description": "The node ID of the project that this status update belongs to."
}
},
"description": "An status update belonging to a project"
}
nullable-repository
{
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The name of the repository."
},
"size": {
"type": "integer",
"example": 108,
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean",
"default": false,
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:42Z\""
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string",
"default": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether this repository acts as a template that can be used to generate new repositories."
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether projects are enabled."
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow forking this repo"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"default": true,
"example": true,
"deprecated": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"example": "master",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow Auto-merge to be used on pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging."
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"anonymous_access_enabled": {
"type": "boolean",
"description": "Whether anonymous git access is enabled for this repository"
},
"code_search_index_status": {
"type": "object",
"properties": {
"lexical_search_ok": {
"type": "boolean"
},
"lexical_commit_sha": {
"type": "string"
}
},
"description": "The status of the code search index for this repository"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"default": false,
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"example": "all",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"deprecated": true,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A repository on GitHub.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"use_squash_pr_title_as_default": null
}
},
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": {
"properties": {
"master_branch": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
},
{
"patch": {
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
nullable-repository-webhooks
{
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The name of the repository."
},
"size": {
"type": "integer",
"example": 108,
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean",
"default": false,
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:42Z\""
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string",
"default": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether this repository acts as a template that can be used to generate new repositories."
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether projects are enabled."
},
"organization": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow forking this repo"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string",
"example": "master",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow Auto-merge to be used on pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"subscribers_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging."
},
"template_repository": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"language": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"pushed_at": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"mirror_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string"
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"permissions": {
"type": "object",
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"allow_auto_merge": {
"type": "boolean"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
},
"open_issues_count": {
"type": "integer"
},
"subscribers_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean"
},
"allow_rebase_merge": {
"type": "boolean"
},
"allow_squash_merge": {
"type": "boolean"
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"use_squash_pr_title_as_default": {
"type": "boolean"
}
}
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"anonymous_access_enabled": {
"type": "boolean",
"description": "Whether anonymous git access is enabled for this repository"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"default": false,
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"deprecated": true,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"template_repository": {
"properties": {
"use_squash_pr_title_as_default": null
}
},
"use_squash_pr_title_as_default": null
}
},
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": {
"properties": {
"master_branch": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
}
]
}
nullable-scoped-installation
{
"type": "object",
"title": "Scoped Installation",
"nullable": true,
"required": [
"permissions",
"repository_selection",
"single_file_name",
"repositories_url",
"account"
],
"properties": {
"account": {
"$ref": "#/components/schemas/simple-user"
},
"permissions": {
"$ref": "#/components/schemas/app-permissions"
},
"repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"single_file_name": {
"type": "string",
"example": "config.yaml",
"nullable": true
},
"single_file_paths": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"config.yml",
".github/issue_TEMPLATE.md"
]
},
"repository_selection": {
"enum": [
"all",
"selected"
],
"type": "string",
"description": "Describe whether all repositories have been selected or there's a selection involved"
},
"has_multiple_single_files": {
"type": "boolean",
"example": true
}
}
}
nullable-secret-scanning-first-detected-location
{
"oneOf": [
{
"$ref": "#/components/schemas/secret-scanning-location-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-review"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-review-comment"
}
],
"nullable": true,
"description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n"
}
nullable-simple-commit
{
"type": "object",
"title": "Simple Commit",
"nullable": true,
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"author": {
"type": "object",
"nullable": true,
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the commit's author"
},
"email": {
"type": "string",
"format": "email",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the commit's author"
}
},
"description": "Information about the Git author"
},
"message": {
"type": "string",
"example": "Fix #42",
"description": "Message describing the purpose of the commit"
},
"tree_id": {
"type": "string",
"description": "SHA for the commit's tree"
},
"committer": {
"type": "object",
"nullable": true,
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the commit's committer"
},
"email": {
"type": "string",
"format": "email",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the commit's committer"
}
},
"description": "Information about the Git committer"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
}
},
"description": "A commit."
}
nullable-simple-repository
{
"type": "object",
"title": "Simple Repository",
"nullable": true,
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1296269,
"description": "A unique identifier of the repository."
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World",
"description": "The URL to get more information about the repository from the GitHub API."
},
"fork": {
"type": "boolean",
"description": "Whether the repository is a fork."
},
"name": {
"type": "string",
"example": "Hello-World",
"description": "The name of the repository."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"description": "The GraphQL identifier of the repository."
},
"private": {
"type": "boolean",
"description": "Whether the repository is private."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World",
"description": "The URL to view the repository on GitHub.com."
},
"keys_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
"description": "A template for the API URL to get information about deploy keys on the repository."
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/tags",
"description": "The API URL to get information about tags on the repository."
},
"blobs_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
"description": "A template for the API URL to create or retrieve a raw Git blob in the repository."
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/forks",
"description": "The API URL to list the forks of the repository."
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World",
"description": "The full, globally unique, name of the repository."
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks",
"description": "The API URL to list the hooks on the repository."
},
"pulls_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
"description": "A template for the API URL to get information about pull requests on the repository."
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/teams",
"description": "The API URL to list the teams on the repository."
},
"trees_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
"description": "A template for the API URL to create or retrieve a raw Git tree of the repository."
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/events",
"description": "The API URL to list the events of the repository."
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
"description": "A template for the API URL to get information about issues on the repository."
},
"labels_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
"description": "A template for the API URL to get information about labels of the repository."
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/merges",
"description": "The API URL to merge branches in the repository."
},
"archive_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
"description": "A template for the API URL to download the repository as an archive."
},
"commits_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
"description": "A template for the API URL to get information about commits on the repository."
},
"compare_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
"description": "A template for the API URL to compare two commits or refs."
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true,
"description": "The repository description."
},
"branches_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
"description": "A template for the API URL to get information about branches in the repository."
},
"comments_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
"description": "A template for the API URL to get information about comments on the repository."
},
"contents_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
"description": "A template for the API URL to get the contents of the repository."
},
"git_refs_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
"description": "A template for the API URL to get information about Git refs of the repository."
},
"git_tags_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
"description": "A template for the API URL to get information about Git tags of the repository."
},
"releases_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
"description": "A template for the API URL to get information about releases on the repository."
},
"statuses_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
"description": "A template for the API URL to get information about statuses of a commit."
},
"assignees_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
"description": "A template for the API URL to list the available assignees for issues in the repository."
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/downloads",
"description": "The API URL to list the downloads on the repository."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/languages",
"description": "The API URL to get information about the languages of the repository."
},
"milestones_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
"description": "A template for the API URL to get information about milestones of the repository."
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/stargazers",
"description": "The API URL to list the stargazers on the repository."
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/deployments",
"description": "The API URL to list the deployments of the repository."
},
"git_commits_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
"description": "A template for the API URL to get information about Git commits of the repository."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/subscribers",
"description": "The API URL to list the subscribers on the repository."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/contributors",
"description": "A template for the API URL to list the contributors to the repository."
},
"issue_events_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
"description": "A template for the API URL to get information about issue events on the repository."
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/subscription",
"description": "The API URL to subscribe to notifications for this repository."
},
"collaborators_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
"description": "A template for the API URL to get information about collaborators of the repository."
},
"issue_comment_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
"description": "A template for the API URL to get information about issue comments on the repository."
},
"notifications_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
"description": "A template for the API URL to get information about notifications on the repository."
}
},
"description": "A GitHub repository."
}
nullable-simple-user
{
"type": "object",
"title": "Simple User",
"nullable": true,
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:55Z\""
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
}
},
"description": "A GitHub user."
}
nullable-team-simple
{
"type": "object",
"title": "Team Simple",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"members_url",
"name",
"description",
"permission",
"html_url",
"repositories_url",
"slug",
"type"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1",
"description": "URL for the team"
},
"name": {
"type": "string",
"example": "Justice League",
"description": "Name of the team"
},
"slug": {
"type": "string",
"example": "justice-league"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"ldap_dn": {
"type": "string",
"example": "uid=example,ou=users,dc=github,dc=com",
"description": "Distinguished Name (DN) that team maps to within LDAP environment"
},
"node_id": {
"type": "string",
"example": "MDQ6VGVhbTE="
},
"privacy": {
"type": "string",
"example": "closed",
"description": "The level of privacy this team should have"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/rails/teams/core"
},
"permission": {
"type": "string",
"example": "admin",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"example": "A great team.",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"example": "https://api.github.com/organizations/1/team/1/members{/member}"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1/repos"
},
"notification_setting": {
"type": "string",
"example": "notifications_enabled",
"description": "The notification setting the team has set"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
oidc-custom-property-inclusion
{
"type": "object",
"title": "Actions OIDC Custom Property Inclusion",
"required": [
"custom_property_name",
"inclusion_source"
],
"properties": {
"inclusion_source": {
"enum": [
"organization",
"enterprise"
],
"type": "string",
"example": "organization",
"description": "Whether the inclusion was defined at the organization or enterprise level"
},
"custom_property_name": {
"type": "string",
"description": "The name of the custom property that is included in the OIDC token"
}
},
"description": "An OIDC custom property inclusion for repository properties"
}
oidc-custom-property-inclusion-input
{
"type": "object",
"title": "Actions OIDC Custom Property Inclusion Input",
"required": [
"custom_property_name"
],
"properties": {
"custom_property_name": {
"type": "string",
"description": "The name of the custom property to include in the OIDC token"
}
},
"description": "Input for creating an OIDC custom property inclusion"
}
oidc-custom-sub
{
"type": "object",
"title": "Actions OIDC Subject customization",
"required": [
"include_claim_keys"
],
"properties": {
"include_claim_keys": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores."
}
},
"description": "Actions OIDC Subject customization"
}
oidc-custom-sub-repo
{
"type": "object",
"title": "Actions OIDC subject customization for a repository",
"required": [
"use_default"
],
"properties": {
"use_default": {
"type": "boolean",
"description": "Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored."
},
"include_claim_keys": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores."
}
},
"description": "Actions OIDC subject customization for a repository"
}
org-hook
{
"type": "object",
"title": "Org Hook",
"required": [
"id",
"url",
"type",
"name",
"active",
"events",
"config",
"ping_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octocat/hooks/1"
},
"name": {
"type": "string",
"example": "web"
},
"type": {
"type": "string"
},
"active": {
"type": "boolean",
"example": true
},
"config": {
"type": "object",
"properties": {
"url": {
"type": "string",
"example": "\"http://example.com/2\""
},
"secret": {
"type": "string",
"example": "\"********\""
},
"content_type": {
"type": "string",
"example": "\"form\""
},
"insecure_ssl": {
"type": "string",
"example": "\"0\""
}
}
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"push",
"pull_request"
]
},
"ping_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octocat/hooks/1/pings"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-09-06T17:26:27Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-09-06T20:39:23Z"
},
"deliveries_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octocat/hooks/1/deliveries"
}
},
"description": "Org Hook"
}
org-membership
{
"type": "object",
"title": "Org Membership",
"required": [
"state",
"role",
"organization_url",
"url",
"organization",
"user"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octocat/memberships/defunkt"
},
"role": {
"enum": [
"admin",
"member",
"billing_manager"
],
"type": "string",
"example": "admin",
"description": "The user's membership type in the organization."
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"state": {
"enum": [
"active",
"pending"
],
"type": "string",
"example": "active",
"description": "The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation."
},
"permissions": {
"type": "object",
"required": [
"can_create_repository"
],
"properties": {
"can_create_repository": {
"type": "boolean"
}
}
},
"organization": {
"$ref": "#/components/schemas/organization-simple"
},
"organization_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/octocat"
},
"direct_membership": {
"type": "boolean",
"example": true,
"description": "Whether the user has direct membership in the organization."
},
"enterprise_teams_providing_indirect_membership": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"ent:team-one",
"ent:team-two"
],
"maxItems": 100,
"description": "The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned."
}
},
"description": "Org Membership"
}
org-private-registry-configuration
{
"type": "object",
"title": "Organization private registry",
"required": [
"name",
"registry_type",
"visibility",
"created_at",
"updated_at"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the private registry."
},
"name": {
"type": "string",
"example": "MAVEN_REPOSITORY_SECRET",
"description": "The name of the private registry configuration."
},
"domain": {
"type": "string",
"description": "The CodeArtifact domain."
},
"audience": {
"type": "string",
"description": "The OIDC audience."
},
"username": {
"type": "string",
"example": "monalisa",
"nullable": true,
"description": "The username to use when authenticating with the private registry."
},
"auth_type": {
"enum": [
"token",
"username_password",
"oidc_azure",
"oidc_aws",
"oidc_jfrog"
],
"type": "string",
"description": "The authentication type for the private registry."
},
"client_id": {
"type": "string",
"description": "The client ID of the Azure AD application."
},
"role_name": {
"type": "string",
"description": "The AWS IAM role name."
},
"tenant_id": {
"type": "string",
"description": "The tenant ID of the Azure AD application."
},
"account_id": {
"type": "string",
"description": "The AWS account ID."
},
"aws_region": {
"type": "string",
"description": "The AWS region."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Which type of organization repositories have access to the private registry."
},
"domain_owner": {
"type": "string",
"description": "The CodeArtifact domain owner."
},
"registry_type": {
"enum": [
"maven_repository",
"nuget_feed",
"goproxy_server",
"npm_registry",
"rubygems_server",
"cargo_registry",
"composer_repository",
"docker_registry",
"git_source",
"helm_registry",
"hex_organization",
"hex_repository",
"pub_repository",
"python_index",
"terraform_registry"
],
"type": "string",
"description": "The registry type."
},
"replaces_base": {
"type": "boolean",
"default": false,
"description": "Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages."
},
"identity_mapping_name": {
"type": "string",
"description": "The JFrog identity mapping name."
},
"jfrog_oidc_provider_name": {
"type": "string",
"description": "The JFrog OIDC provider name."
}
},
"description": "Private registry configuration for an organization"
}
org-private-registry-configuration-with-selected-repositories
{
"type": "object",
"title": "Organization private registry",
"required": [
"name",
"registry_type",
"visibility",
"created_at",
"updated_at"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the private registry."
},
"name": {
"type": "string",
"example": "MAVEN_REPOSITORY_SECRET",
"description": "The name of the private registry configuration."
},
"domain": {
"type": "string",
"description": "The CodeArtifact domain."
},
"audience": {
"type": "string",
"description": "The OIDC audience."
},
"username": {
"type": "string",
"example": "monalisa",
"description": "The username to use when authenticating with the private registry."
},
"auth_type": {
"enum": [
"token",
"username_password",
"oidc_azure",
"oidc_aws",
"oidc_jfrog"
],
"type": "string",
"description": "The authentication type for the private registry."
},
"client_id": {
"type": "string",
"description": "The client ID of the Azure AD application."
},
"role_name": {
"type": "string",
"description": "The AWS IAM role name."
},
"tenant_id": {
"type": "string",
"description": "The tenant ID of the Azure AD application."
},
"account_id": {
"type": "string",
"description": "The AWS account ID."
},
"aws_region": {
"type": "string",
"description": "The AWS region."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry."
},
"domain_owner": {
"type": "string",
"description": "The CodeArtifact domain owner."
},
"registry_type": {
"enum": [
"maven_repository",
"nuget_feed",
"goproxy_server",
"npm_registry",
"rubygems_server",
"cargo_registry",
"composer_repository",
"docker_registry",
"git_source",
"helm_registry",
"hex_organization",
"hex_repository",
"pub_repository",
"python_index",
"terraform_registry"
],
"type": "string",
"description": "The registry type."
},
"replaces_base": {
"type": "boolean",
"default": false,
"description": "Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages."
},
"identity_mapping_name": {
"type": "string",
"description": "The JFrog identity mapping name."
},
"selected_repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`."
},
"jfrog_oidc_provider_name": {
"type": "string",
"description": "The JFrog OIDC provider name."
}
},
"description": "Private registry configuration for an organization"
}
org-repo-custom-property-values
{
"type": "object",
"title": "Organization Repository Custom Property Values",
"required": [
"repository_id",
"repository_name",
"repository_full_name",
"properties"
],
"properties": {
"properties": {
"type": "array",
"items": {
"$ref": "#/components/schemas/custom-property-value"
},
"description": "List of custom property names and associated values"
},
"repository_id": {
"type": "integer",
"example": 1296269
},
"repository_name": {
"type": "string",
"example": "Hello-World"
},
"repository_full_name": {
"type": "string",
"example": "octocat/Hello-World"
}
},
"description": "List of custom property values for a repository"
}
org-rules
{
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/repository-rule-creation"
},
{
"$ref": "#/components/schemas/repository-rule-update"
},
{
"$ref": "#/components/schemas/repository-rule-deletion"
},
{
"$ref": "#/components/schemas/repository-rule-required-linear-history"
},
{
"$ref": "#/components/schemas/repository-rule-required-deployments"
},
{
"$ref": "#/components/schemas/repository-rule-required-signatures"
},
{
"$ref": "#/components/schemas/repository-rule-pull-request"
},
{
"$ref": "#/components/schemas/repository-rule-required-status-checks"
},
{
"$ref": "#/components/schemas/repository-rule-non-fast-forward"
},
{
"$ref": "#/components/schemas/repository-rule-commit-message-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-commit-author-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-committer-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-branch-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-tag-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
},
{
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-max-file-size"
},
{
"$ref": "#/components/schemas/repository-rule-workflows"
},
{
"$ref": "#/components/schemas/repository-rule-code-scanning"
},
{
"$ref": "#/components/schemas/repository-rule-copilot-code-review"
}
],
"title": "Repository Rule",
"description": "A repository rule."
}
org-ruleset-conditions
{
"type": "object",
"oneOf": [
{
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/repository-ruleset-conditions"
},
{
"$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target"
}
],
"title": "repository_name_and_ref_name",
"description": "Conditions to target repositories by name and refs by name"
},
{
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/repository-ruleset-conditions"
},
{
"$ref": "#/components/schemas/repository-ruleset-conditions-repository-id-target"
}
],
"title": "repository_id_and_ref_name",
"description": "Conditions to target repositories by id and refs by name"
},
{
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/repository-ruleset-conditions"
},
{
"$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-target"
}
],
"title": "repository_property_and_ref_name",
"description": "Conditions to target repositories by property and refs by name"
}
],
"title": "Organization ruleset conditions",
"description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`."
}
organization-actions-secret
{
"type": "object",
"title": "Actions Secret for an Organization",
"required": [
"name",
"created_at",
"updated_at",
"visibility"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_TOKEN",
"description": "The name of the secret."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Visibility of a secret"
},
"selected_repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/org/secrets/my_secret/repositories"
}
},
"description": "Secrets for GitHub Actions for an organization."
}
organization-actions-variable
{
"type": "object",
"title": "Actions Variable for an Organization",
"required": [
"name",
"value",
"created_at",
"updated_at",
"visibility"
],
"properties": {
"name": {
"type": "string",
"example": "USERNAME",
"description": "The name of the variable."
},
"value": {
"type": "string",
"example": "octocat",
"description": "The value of the variable."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z",
"description": "The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z",
"description": "The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Visibility of a variable"
},
"selected_repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/org/variables/USERNAME/repositories"
}
},
"description": "Organization variable for GitHub Actions."
}
organization-create-issue-field
{
"type": "object",
"required": [
"name",
"data_type"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the issue field."
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"color",
"priority"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the option."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"description": "Color for the option."
},
"priority": {
"type": "integer",
"description": "Priority of the option for ordering."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the option."
}
}
},
"nullable": true,
"description": "Options for single select fields. Required when data_type is 'single_select'."
},
"data_type": {
"enum": [
"text",
"date",
"single_select",
"number"
],
"type": "string",
"description": "The data type of the issue field."
},
"visibility": {
"enum": [
"organization_members_only",
"all"
],
"type": "string",
"description": "The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). Only used when the visibility settings feature is enabled. Defaults to `organization_members_only`."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the issue field."
}
}
}
organization-create-issue-type
{
"type": "object",
"required": [
"name",
"is_enabled"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the issue type."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"nullable": true,
"description": "Color for the issue type."
},
"is_enabled": {
"type": "boolean",
"description": "Whether or not the issue type is enabled at the organization level."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the issue type."
}
}
}
organization-dependabot-secret
{
"type": "object",
"title": "Dependabot Secret for an Organization",
"required": [
"name",
"created_at",
"updated_at",
"visibility"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_TOKEN",
"description": "The name of the secret."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"all",
"private",
"selected"
],
"type": "string",
"description": "Visibility of a secret"
},
"selected_repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/org/dependabot/secrets/my_secret/repositories"
}
},
"description": "Secrets for GitHub Dependabot for an organization."
}
organization-full
{
"type": "object",
"title": "Organization Full",
"required": [
"login",
"url",
"id",
"node_id",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description",
"html_url",
"has_organization_projects",
"has_repository_projects",
"public_repos",
"public_gists",
"followers",
"following",
"type",
"created_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github"
},
"blog": {
"type": "string",
"format": "uri",
"example": "https://github.com/blog"
},
"name": {
"type": "string",
"example": "github"
},
"plan": {
"type": "object",
"required": [
"name",
"space",
"private_repos"
],
"properties": {
"name": {
"type": "string"
},
"seats": {
"type": "integer"
},
"space": {
"type": "integer"
},
"filled_seats": {
"type": "integer"
},
"private_repos": {
"type": "integer"
}
}
},
"type": {
"type": "string",
"example": "Organization"
},
"email": {
"type": "string",
"format": "email",
"example": "octocat@github.com"
},
"login": {
"type": "string",
"example": "github"
},
"company": {
"type": "string",
"example": "GitHub"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"location": {
"type": "string",
"example": "San Francisco"
},
"followers": {
"type": "integer",
"example": 20
},
"following": {
"type": "integer",
"example": 0
},
"hooks_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/hooks"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/repos"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2008-01-14T04:33:35Z"
},
"disk_usage": {
"type": "integer",
"example": 10000,
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/events"
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/issues"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"archived_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"example": "A great organization",
"nullable": true
},
"is_verified": {
"type": "boolean",
"example": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/members{/member}"
},
"public_gists": {
"type": "integer",
"example": 1
},
"public_repos": {
"type": "integer",
"example": 2
},
"billing_email": {
"type": "string",
"format": "email",
"example": "org@example.com",
"nullable": true
},
"collaborators": {
"type": "integer",
"example": 8,
"nullable": true,
"description": "The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000."
},
"private_gists": {
"type": "integer",
"example": 81,
"nullable": true
},
"twitter_username": {
"type": "string",
"example": "github",
"nullable": true
},
"public_members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/public_members{/member}"
},
"owned_private_repos": {
"type": "integer",
"example": 100
},
"total_private_repos": {
"type": "integer",
"example": 100
},
"has_repository_projects": {
"type": "boolean",
"example": true
},
"members_can_create_pages": {
"type": "boolean",
"example": true
},
"members_can_create_teams": {
"type": "boolean",
"example": true
},
"default_repository_branch": {
"type": "string",
"example": "main",
"nullable": true,
"description": "The default branch for repositories created in this organization."
},
"has_organization_projects": {
"type": "boolean",
"example": true
},
"members_can_delete_issues": {
"type": "boolean",
"example": true
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"default_repository_permission": {
"type": "string",
"nullable": true
},
"readers_can_create_discussions": {
"type": "boolean",
"example": true
},
"two_factor_requirement_enabled": {
"type": "boolean",
"example": true,
"nullable": true
},
"members_can_create_public_pages": {
"type": "boolean",
"example": true
},
"members_can_create_repositories": {
"type": "boolean",
"example": true,
"nullable": true
},
"members_can_delete_repositories": {
"type": "boolean",
"example": true
},
"members_can_create_private_pages": {
"type": "boolean",
"example": true
},
"members_can_change_repo_visibility": {
"type": "boolean",
"example": true
},
"deploy_keys_enabled_for_repositories": {
"type": "boolean",
"example": false,
"description": "Controls whether or not deploy keys may be added and used for repositories in the organization."
},
"members_can_view_dependency_insights": {
"type": "boolean",
"example": true
},
"members_can_fork_private_repositories": {
"type": "boolean",
"example": false,
"nullable": true
},
"members_can_create_public_repositories": {
"type": "boolean",
"example": true
},
"members_can_create_private_repositories": {
"type": "boolean",
"example": true
},
"members_allowed_repository_creation_type": {
"type": "string",
"example": "all"
},
"members_can_create_internal_repositories": {
"type": "boolean",
"example": true
},
"members_can_invite_outside_collaborators": {
"type": "boolean",
"example": true
},
"display_commenter_full_name_setting_enabled": {
"type": "boolean",
"example": true
},
"secret_scanning_push_protection_custom_link": {
"type": "string",
"example": "https://github.com/test-org/test-repo/blob/main/README.md",
"nullable": true,
"description": "An optional URL string to display to contributors who are blocked from pushing a secret."
},
"secret_scanning_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
},
"dependency_graph_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
},
"advanced_security_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
},
"dependabot_alerts_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
},
"secret_scanning_push_protection_custom_link_enabled": {
"type": "boolean",
"example": false,
"description": "Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection."
},
"dependabot_security_updates_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
},
"secret_scanning_push_protection_enabled_for_new_repositories": {
"type": "boolean",
"example": false,
"deprecated": true,
"description": "**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role."
}
},
"description": "Organization Full",
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/secret_scanning_push_protection_custom_link_enabled"
}
],
"version": "2026-03-10",
"changeset": "remove_secret_scanning_custom_link_enablement_field"
}
]
}
organization-invitation
{
"type": "object",
"title": "Organization Invitation",
"required": [
"id",
"login",
"email",
"role",
"created_at",
"inviter",
"team_count",
"invitation_teams_url",
"node_id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"role": {
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"nullable": true
},
"inviter": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"example": "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\""
},
"failed_at": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"team_count": {
"type": "integer"
},
"failed_reason": {
"type": "string",
"nullable": true
},
"invitation_source": {
"type": "string",
"example": "\"member\""
},
"invitation_teams_url": {
"type": "string",
"example": "\"https://api.github.com/organizations/16/invitations/1/teams\""
}
},
"description": "Organization Invitation"
}
organization-programmatic-access-grant
{
"type": "object",
"title": "Organization Programmatic Access Grant",
"required": [
"id",
"owner",
"repository_selection",
"repositories_url",
"permissions",
"access_granted_at",
"token_id",
"token_name",
"token_expired",
"token_expires_at",
"token_last_used_at"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"token_id": {
"type": "integer",
"description": "Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants."
},
"token_name": {
"type": "string",
"description": "The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens."
},
"permissions": {
"type": "object",
"properties": {
"other": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"repository": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"organization": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"description": "Permissions requested, categorized by type of permission."
},
"token_expired": {
"type": "boolean",
"description": "Whether the associated fine-grained personal access token has expired."
},
"repositories_url": {
"type": "string",
"description": "URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`."
},
"token_expires_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token expires."
},
"access_granted_at": {
"type": "string",
"description": "Date and time when the fine-grained personal access token was approved to access the organization."
},
"token_last_used_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token was last used for authentication."
},
"repository_selection": {
"enum": [
"none",
"all",
"subset"
],
"type": "string",
"description": "Type of repository selection requested."
}
},
"description": "Minimal representation of an organization programmatic access grant for enumerations"
}
organization-programmatic-access-grant-request
{
"type": "object",
"title": "Simple Organization Programmatic Access Grant Request",
"required": [
"id",
"reason",
"owner",
"repository_selection",
"repositories_url",
"permissions",
"created_at",
"token_id",
"token_name",
"token_expired",
"token_expires_at",
"token_last_used_at"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"reason": {
"type": "string",
"nullable": true,
"description": "Reason for requesting access."
},
"token_id": {
"type": "integer",
"description": "Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants."
},
"created_at": {
"type": "string",
"description": "Date and time when the request for access was created."
},
"token_name": {
"type": "string",
"description": "The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens."
},
"permissions": {
"type": "object",
"properties": {
"other": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"repository": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"organization": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"description": "Permissions requested, categorized by type of permission."
},
"token_expired": {
"type": "boolean",
"description": "Whether the associated fine-grained personal access token has expired."
},
"repositories_url": {
"type": "string",
"description": "URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`."
},
"token_expires_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token expires."
},
"token_last_used_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token was last used for authentication."
},
"repository_selection": {
"enum": [
"none",
"all",
"subset"
],
"type": "string",
"description": "Type of repository selection requested."
}
},
"description": "Minimal representation of an organization programmatic access grant request for enumerations"
}
organization-role
{
"type": "object",
"title": "Organization Role",
"required": [
"id",
"name",
"permissions",
"organization",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "The unique identifier of the role."
},
"name": {
"type": "string",
"description": "The name of the role."
},
"source": {
"enum": [
"Organization",
"Enterprise",
"Predefined"
],
"type": "string",
"nullable": true,
"description": "Source answers the question, \"where did this role come from?\""
},
"base_role": {
"enum": [
"read",
"triage",
"write",
"maintain",
"admin"
],
"type": "string",
"nullable": true,
"description": "The system role from which this role inherits permissions."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the role was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The date and time the role was last updated."
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description about who this role is for or what permissions it grants."
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of permissions included in this role."
},
"organization": {
"$ref": "#/components/schemas/nullable-simple-user"
}
},
"description": "Organization roles"
}
organization-secret-scanning-alert
{
"type": "object",
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"state": {
"$ref": "#/components/schemas/secret-scanning-alert-state"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"secret": {
"type": "string",
"description": "The secret that was detected."
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"provider": {
"type": "string",
"nullable": true,
"description": "The provider of the secret that was detected."
},
"validity": {
"enum": [
"active",
"inactive",
"unknown"
],
"type": "string",
"description": "The token status as of the latest validity check."
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"multi_repo": {
"type": "boolean",
"nullable": true,
"description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
},
"repository": {
"$ref": "#/components/schemas/simple-repository"
},
"resolution": {
"$ref": "#/components/schemas/secret-scanning-alert-resolution"
},
"updated_at": {
"$ref": "#/components/schemas/nullable-alert-updated-at"
},
"assigned_to": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"resolved_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"resolved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"secret_type": {
"type": "string",
"description": "The type of secret that secret scanning detected."
},
"locations_url": {
"type": "string",
"format": "uri",
"description": "The REST API URL of the code locations for this alert."
},
"provider_slug": {
"type": "string",
"nullable": true,
"description": "The slug identifier for the provider of the secret that was detected. Use this value for filtering by provider with the `providers` or `exclude_providers` parameters."
},
"publicly_leaked": {
"type": "boolean",
"nullable": true,
"description": "Whether the secret was publicly leaked."
},
"is_base64_encoded": {
"type": "boolean",
"nullable": true,
"description": "A boolean value representing whether or not alert is base64 encoded"
},
"has_more_locations": {
"type": "boolean",
"description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
},
"resolution_comment": {
"type": "string",
"nullable": true,
"description": "The comment that was optionally added when this alert was closed"
},
"closure_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request author."
},
"first_location_detected": {
"$ref": "#/components/schemas/nullable-secret-scanning-first-detected-location"
},
"closure_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypassed": {
"type": "boolean",
"nullable": true,
"description": "Whether push protection was bypassed for the detected secret."
},
"secret_type_display_name": {
"type": "string",
"description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
},
"push_protection_bypassed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"push_protection_bypassed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"closure_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request reviewer."
},
"push_protection_bypass_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when requesting a push protection bypass."
},
"push_protection_bypass_request_html_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The URL to a push protection bypass request."
},
"push_protection_bypass_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypass_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when reviewing a push protection bypass."
}
}
}
organization-simple
{
"type": "object",
"title": "Organization Simple",
"required": [
"login",
"url",
"id",
"node_id",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github"
},
"login": {
"type": "string",
"example": "github"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"hooks_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/hooks"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/repos"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/events"
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/issues"
},
"description": {
"type": "string",
"example": "A great organization",
"nullable": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/members{/member}"
},
"public_members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/public_members{/member}"
}
},
"description": "A GitHub organization."
}
organization-simple-webhooks
{
"type": "object",
"title": "Organization Simple",
"required": [
"login",
"url",
"id",
"node_id",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github"
},
"login": {
"type": "string",
"example": "github"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"hooks_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/hooks"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/repos"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/events"
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/issues"
},
"description": {
"type": "string",
"example": "A great organization",
"nullable": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/members{/member}"
},
"public_members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/public_members{/member}"
}
},
"description": "A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization."
}
organization-update-issue-field
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the issue field."
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"color",
"priority"
],
"properties": {
"id": {
"type": "integer",
"description": "The id of an existing option to retain or update. Omit this when creating a new option."
},
"name": {
"type": "string",
"description": "Name of the option."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"description": "Color for the option."
},
"priority": {
"type": "integer",
"description": "Priority of the option for ordering."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the option."
}
}
},
"description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated."
},
"visibility": {
"enum": [
"organization_members_only",
"all"
],
"type": "string",
"description": "The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). Only used when the visibility settings feature is enabled."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the issue field."
}
}
}
organization-update-issue-type
{
"type": "object",
"required": [
"name",
"is_enabled"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the issue type."
},
"color": {
"enum": [
"gray",
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple"
],
"type": "string",
"nullable": true,
"description": "Color for the issue type."
},
"is_enabled": {
"type": "boolean",
"description": "Whether or not the issue type is enabled at the organization level."
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the issue type."
}
}
}
package
{
"type": "object",
"title": "Package",
"required": [
"id",
"name",
"package_type",
"visibility",
"url",
"html_url",
"version_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "Unique identifier of the package."
},
"url": {
"type": "string",
"example": "https://api.github.com/orgs/github/packages/container/super-linter"
},
"name": {
"type": "string",
"example": "super-linter",
"description": "The name of the package."
},
"owner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"html_url": {
"type": "string",
"example": "https://github.com/orgs/github/packages/container/package/super-linter"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"$ref": "#/components/schemas/nullable-minimal-repository"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"private",
"public"
],
"type": "string",
"example": "private"
},
"package_type": {
"enum": [
"npm",
"maven",
"rubygems",
"docker",
"nuget",
"container"
],
"type": "string",
"example": "docker"
},
"version_count": {
"type": "integer",
"example": 1,
"description": "The number of versions of the package."
}
},
"description": "A software package"
}
package-version
{
"type": "object",
"title": "Package Version",
"required": [
"id",
"name",
"url",
"package_html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "Unique identifier of the package version."
},
"url": {
"type": "string",
"example": "https://api.github.com/orgs/github/packages/container/super-linter/versions/786068"
},
"name": {
"type": "string",
"example": "latest",
"description": "The name of the package version."
},
"license": {
"type": "string",
"example": "MIT"
},
"html_url": {
"type": "string",
"example": "https://github.com/orgs/github/packages/container/super-linter/786068"
},
"metadata": {
"type": "object",
"title": "Package Version Metadata",
"required": [
"package_type"
],
"properties": {
"docker": {
"type": "object",
"title": "Docker Metadata",
"required": [
"tags"
],
"properties": {
"tag": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"container": {
"type": "object",
"title": "Container Metadata",
"required": [
"tags"
],
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"package_type": {
"enum": [
"npm",
"maven",
"rubygems",
"docker",
"nuget",
"container"
],
"type": "string",
"example": "docker"
}
}
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-10T20:09:31Z"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"example": "2014-03-03T18:58:10Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2014-03-03T18:58:10Z"
},
"description": {
"type": "string"
},
"package_html_url": {
"type": "string",
"example": "https://github.com/orgs/github/packages/container/package/super-linter"
}
},
"description": "A version of a software package"
}
page
{
"type": "object",
"title": "GitHub Pages",
"required": [
"url",
"status",
"cname",
"custom_404",
"public"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/github/hello-world/pages",
"description": "The API address for accessing this Page resource."
},
"cname": {
"type": "string",
"example": "example.com",
"nullable": true,
"description": "The Pages site's custom domain"
},
"public": {
"type": "boolean",
"example": true,
"description": "Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site."
},
"source": {
"$ref": "#/components/schemas/pages-source-hash"
},
"status": {
"enum": [
"built",
"building",
"errored"
],
"type": "string",
"example": "built",
"nullable": true,
"description": "The status of the most recent build of the Page."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://example.com",
"description": "The web address the Page can be accessed from."
},
"build_type": {
"enum": [
"legacy",
"workflow"
],
"type": "string",
"example": "legacy",
"nullable": true,
"description": "The process in which the Page will be built."
},
"custom_404": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether the Page has a custom 404 page."
},
"https_enforced": {
"type": "boolean",
"example": true,
"description": "Whether https is enabled on the domain"
},
"https_certificate": {
"$ref": "#/components/schemas/pages-https-certificate"
},
"protected_domain_state": {
"enum": [
"pending",
"verified",
"unverified"
],
"type": "string",
"example": "pending",
"nullable": true,
"description": "The state if the domain is verified"
},
"pending_domain_unverified_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The timestamp when a pending domain becomes unverified."
}
},
"description": "The configuration for GitHub Pages for a repository."
}
page-build
{
"type": "object",
"title": "Page Build",
"required": [
"url",
"status",
"error",
"pusher",
"commit",
"duration",
"created_at",
"updated_at"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string",
"nullable": true
}
}
},
"commit": {
"type": "string"
},
"pusher": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"status": {
"type": "string"
},
"duration": {
"type": "integer"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Page Build"
}
page-build-status
{
"type": "object",
"title": "Page Build Status",
"required": [
"url",
"status"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/github/hello-world/pages/builds/latest"
},
"status": {
"type": "string",
"example": "queued"
}
},
"description": "Page Build Status"
}
page-deployment
{
"type": "object",
"title": "GitHub Pages",
"required": [
"id",
"status_url",
"page_url"
],
"properties": {
"id": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"description": "The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit."
},
"page_url": {
"type": "string",
"format": "uri",
"example": "hello-world.github.io",
"description": "The URI to the deployed GitHub Pages."
},
"status_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/github/hello-world/pages/deployments/4fd754f7e594640989b406850d0bc8f06a121251",
"description": "The URI to monitor GitHub Pages deployment status."
},
"preview_url": {
"type": "string",
"format": "uri",
"example": "monalisa-1231a2312sa32-23sda74.drafts.github.io",
"description": "The URI to the deployed GitHub Pages preview."
}
},
"description": "The GitHub Pages deployment status."
}
pages-deployment-status
{
"type": "object",
"title": "GitHub Pages deployment status",
"properties": {
"status": {
"enum": [
"deployment_in_progress",
"syncing_files",
"finished_file_sync",
"updating_pages",
"purging_cdn",
"deployment_cancelled",
"deployment_failed",
"deployment_content_failed",
"deployment_attempt_error",
"deployment_lost",
"succeed"
],
"type": "string",
"description": "The current status of the deployment."
}
}
}
pages-health-check
{
"type": "object",
"title": "Pages Health Check Status",
"properties": {
"domain": {
"type": "object",
"properties": {
"uri": {
"type": "string"
},
"host": {
"type": "string"
},
"reason": {
"type": "string",
"nullable": true
},
"is_valid": {
"type": "boolean"
},
"caa_error": {
"type": "string",
"nullable": true
},
"is_proxied": {
"type": "boolean",
"nullable": true
},
"https_error": {
"type": "string",
"nullable": true
},
"is_a_record": {
"type": "boolean",
"nullable": true
},
"nameservers": {
"type": "string"
},
"dns_resolves": {
"type": "boolean"
},
"is_fastly_ip": {
"type": "boolean",
"nullable": true
},
"enforces_https": {
"type": "boolean"
},
"is_apex_domain": {
"type": "boolean"
},
"is_pages_domain": {
"type": "boolean"
},
"is_valid_domain": {
"type": "boolean"
},
"has_cname_record": {
"type": "boolean",
"nullable": true
},
"is_cloudflare_ip": {
"type": "boolean",
"nullable": true
},
"is_https_eligible": {
"type": "boolean",
"nullable": true
},
"is_old_ip_address": {
"type": "boolean",
"nullable": true
},
"responds_to_https": {
"type": "boolean"
},
"is_cname_to_fastly": {
"type": "boolean",
"nullable": true
},
"is_served_by_pages": {
"type": "boolean",
"nullable": true
},
"should_be_a_record": {
"type": "boolean",
"nullable": true
},
"has_mx_records_present": {
"type": "boolean",
"nullable": true
},
"is_pointed_to_github_pages_ip": {
"type": "boolean",
"nullable": true
},
"is_cname_to_github_user_domain": {
"type": "boolean",
"nullable": true
},
"is_non_github_pages_ip_present": {
"type": "boolean",
"nullable": true
},
"is_cname_to_pages_dot_github_dot_com": {
"type": "boolean",
"nullable": true
}
}
},
"alt_domain": {
"type": "object",
"nullable": true,
"properties": {
"uri": {
"type": "string"
},
"host": {
"type": "string"
},
"reason": {
"type": "string",
"nullable": true
},
"is_valid": {
"type": "boolean"
},
"caa_error": {
"type": "string",
"nullable": true
},
"is_proxied": {
"type": "boolean",
"nullable": true
},
"https_error": {
"type": "string",
"nullable": true
},
"is_a_record": {
"type": "boolean",
"nullable": true
},
"nameservers": {
"type": "string"
},
"dns_resolves": {
"type": "boolean"
},
"is_fastly_ip": {
"type": "boolean",
"nullable": true
},
"enforces_https": {
"type": "boolean"
},
"is_apex_domain": {
"type": "boolean"
},
"is_pages_domain": {
"type": "boolean"
},
"is_valid_domain": {
"type": "boolean"
},
"has_cname_record": {
"type": "boolean",
"nullable": true
},
"is_cloudflare_ip": {
"type": "boolean",
"nullable": true
},
"is_https_eligible": {
"type": "boolean",
"nullable": true
},
"is_old_ip_address": {
"type": "boolean",
"nullable": true
},
"responds_to_https": {
"type": "boolean"
},
"is_cname_to_fastly": {
"type": "boolean",
"nullable": true
},
"is_served_by_pages": {
"type": "boolean",
"nullable": true
},
"should_be_a_record": {
"type": "boolean",
"nullable": true
},
"has_mx_records_present": {
"type": "boolean",
"nullable": true
},
"is_pointed_to_github_pages_ip": {
"type": "boolean",
"nullable": true
},
"is_cname_to_github_user_domain": {
"type": "boolean",
"nullable": true
},
"is_non_github_pages_ip_present": {
"type": "boolean",
"nullable": true
},
"is_cname_to_pages_dot_github_dot_com": {
"type": "boolean",
"nullable": true
}
}
}
},
"description": "Pages Health Check Status"
}
pages-https-certificate
{
"type": "object",
"title": "Pages Https Certificate",
"required": [
"state",
"description",
"domains"
],
"properties": {
"state": {
"enum": [
"new",
"authorization_created",
"authorization_pending",
"authorized",
"authorization_revoked",
"issued",
"uploaded",
"approved",
"errored",
"bad_authz",
"destroy_pending",
"dns_changed"
],
"type": "string",
"example": "approved"
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"example.com",
"www.example.com"
],
"description": "Array of the domain set and its alternate name (if it is configured)"
},
"expires_at": {
"type": "string",
"format": "date"
},
"description": {
"type": "string",
"example": "Certificate is approved"
}
}
}
pages-source-hash
{
"type": "object",
"title": "Pages Source Hash",
"required": [
"branch",
"path"
],
"properties": {
"path": {
"type": "string"
},
"branch": {
"type": "string"
}
}
}
participation-stats
{
"type": "object",
"title": "Participation Stats",
"required": [
"all",
"owner"
],
"properties": {
"all": {
"type": "array",
"items": {
"type": "integer"
}
},
"owner": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
pending-deployment
{
"type": "object",
"title": "Pending Deployment",
"required": [
"environment",
"wait_timer",
"wait_timer_started_at",
"current_user_can_approve",
"reviewers"
],
"properties": {
"reviewers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/deployment-reviewer-type"
},
"reviewer": {
"anyOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/team"
}
]
}
}
},
"description": "The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed."
},
"wait_timer": {
"type": "integer",
"example": 30,
"description": "The set duration of the wait timer"
},
"environment": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 56780428,
"description": "The id of the environment."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/environments/staging"
},
"name": {
"type": "string",
"example": "staging",
"description": "The name of the environment."
},
"node_id": {
"type": "string",
"example": "MDExOkVudmlyb25tZW50NTY3ODA0Mjg="
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/deployments/activity_log?environments_filter=staging"
}
}
},
"wait_timer_started_at": {
"type": "string",
"format": "date-time",
"example": "2020-11-23T22:00:40Z",
"nullable": true,
"description": "The time that the wait timer began."
},
"current_user_can_approve": {
"type": "boolean",
"example": true,
"description": "Whether the currently authenticated user can approve the deployment"
}
},
"description": "Details of a deployment that is waiting for protection rules to pass"
}
personal-access-token-request
{
"type": "object",
"title": "Personal Access Token Request",
"required": [
"id",
"owner",
"permissions_added",
"permissions_upgraded",
"permissions_result",
"repository_selection",
"repository_count",
"repositories",
"created_at",
"token_id",
"token_name",
"token_expired",
"token_expires_at",
"token_last_used_at"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"token_id": {
"type": "integer",
"description": "Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants."
},
"created_at": {
"type": "string",
"description": "Date and time when the request for access was created."
},
"token_name": {
"type": "string",
"description": "The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens."
},
"repositories": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"name",
"full_name",
"private"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"full_name": {
"type": "string"
}
}
},
"nullable": true,
"description": "An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`."
},
"token_expired": {
"type": "boolean",
"description": "Whether the associated fine-grained personal access token has expired."
},
"repository_count": {
"type": "integer",
"nullable": true,
"description": "The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`."
},
"token_expires_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token expires."
},
"permissions_added": {
"type": "object",
"properties": {
"other": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"repository": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"organization": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"description": "New requested permissions, categorized by type of permission."
},
"permissions_result": {
"type": "object",
"properties": {
"other": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"repository": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"organization": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"description": "Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`."
},
"token_last_used_at": {
"type": "string",
"nullable": true,
"description": "Date and time when the associated fine-grained personal access token was last used for authentication."
},
"permissions_upgraded": {
"type": "object",
"properties": {
"other": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"repository": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"organization": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"description": "Requested permissions that elevate access for a previously approved request for access, categorized by type of permission."
},
"repository_selection": {
"enum": [
"none",
"all",
"subset"
],
"type": "string",
"description": "Type of repository selection requested."
}
},
"description": "Details of a Personal Access Token Request."
}
porter-author
{
"type": "object",
"title": "Porter Author",
"required": [
"id",
"remote_id",
"remote_name",
"email",
"name",
"url",
"import_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"remote_id": {
"type": "string"
},
"import_url": {
"type": "string",
"format": "uri"
},
"remote_name": {
"type": "string"
}
},
"description": "Porter Author"
}
porter-large-file
{
"type": "object",
"title": "Porter Large File",
"required": [
"oid",
"path",
"ref_name",
"size"
],
"properties": {
"oid": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"ref_name": {
"type": "string"
}
},
"description": "Porter Large File"
}
prevent-self-review
{
"type": "boolean",
"example": false,
"description": "Whether or not a user who created the job is prevented from approving their own job."
}
private-user
{
"type": "object",
"title": "Private User",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url",
"bio",
"blog",
"company",
"email",
"followers",
"following",
"hireable",
"location",
"name",
"public_gists",
"public_repos",
"created_at",
"updated_at",
"collaborators",
"disk_usage",
"owned_private_repos",
"private_gists",
"total_private_repos",
"two_factor_authentication"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"bio": {
"type": "string",
"example": "There once was...",
"nullable": true
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"blog": {
"type": "string",
"example": "https://github.com/blog",
"nullable": true
},
"name": {
"type": "string",
"example": "monalisa octocat",
"nullable": true
},
"plan": {
"type": "object",
"required": [
"collaborators",
"name",
"space",
"private_repos"
],
"properties": {
"name": {
"type": "string"
},
"space": {
"type": "integer"
},
"collaborators": {
"type": "integer"
},
"private_repos": {
"type": "integer"
}
}
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"format": "email",
"example": "octocat@github.com",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"company": {
"type": "string",
"example": "GitHub",
"nullable": true
},
"ldap_dn": {
"type": "string"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"hireable": {
"type": "boolean",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"location": {
"type": "string",
"example": "San Francisco",
"nullable": true
},
"followers": {
"type": "integer",
"example": 20
},
"following": {
"type": "integer",
"example": 0
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2008-01-14T04:33:35Z"
},
"disk_usage": {
"type": "integer",
"example": 10000
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2008-01-14T04:33:35Z"
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"public_gists": {
"type": "integer",
"example": 1
},
"public_repos": {
"type": "integer",
"example": 2
},
"business_plus": {
"type": "boolean"
},
"collaborators": {
"type": "integer",
"example": 8
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"private_gists": {
"type": "integer",
"example": 81
},
"user_view_type": {
"type": "string"
},
"twitter_username": {
"type": "string",
"example": "monalisa",
"nullable": true
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"notification_email": {
"type": "string",
"format": "email",
"example": "octocat@github.com",
"nullable": true
},
"owned_private_repos": {
"type": "integer",
"example": 100
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
},
"total_private_repos": {
"type": "integer",
"example": 100
},
"two_factor_authentication": {
"type": "boolean",
"example": true
}
},
"description": "Private User"
}
private-vulnerability-report-create
{
"type": "object",
"required": [
"summary",
"description"
],
"properties": {
"cwe_ids": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of Common Weakness Enumeration (CWE) IDs."
},
"summary": {
"type": "string",
"maxLength": 1024,
"description": "A short summary of the advisory."
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low"
],
"type": "string",
"nullable": true,
"description": "The severity of the advisory. You must choose between setting this field or `cvss_vector_string`."
},
"description": {
"type": "string",
"maxLength": 65535,
"description": "A detailed description of what the advisory impacts."
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"package"
],
"properties": {
"package": {
"type": "object",
"required": [
"ecosystem"
],
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"$ref": "#/components/schemas/security-advisory-ecosystems"
}
},
"description": "The name of the package affected by the vulnerability."
},
"patched_versions": {
"type": "string",
"nullable": true,
"description": "The package version(s) that resolve the vulnerability."
},
"vulnerable_functions": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The functions in the package that are affected."
},
"vulnerable_version_range": {
"type": "string",
"nullable": true,
"description": "The range of the package versions affected by the vulnerability."
}
},
"additionalProperties": false
},
"nullable": true,
"description": "An array of products affected by the vulnerability detailed in a repository security advisory."
},
"cvss_vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`."
},
"start_private_fork": {
"type": "boolean",
"default": false,
"description": "Whether to create a temporary private fork of the repository to collaborate on a fix."
}
},
"additionalProperties": false
}
projects-v2
{
"type": "object",
"title": "Projects v2 Project",
"required": [
"id",
"node_id",
"owner",
"creator",
"title",
"description",
"public",
"closed_at",
"created_at",
"updated_at",
"number",
"short_description",
"deleted_at",
"deleted_by"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the project."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The current state of the project."
},
"title": {
"type": "string",
"description": "The project title."
},
"number": {
"type": "integer",
"description": "The project number."
},
"public": {
"type": "boolean",
"description": "Whether the project is visible to anyone with access to the owner."
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the project."
},
"closed_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"nullable": true,
"description": "The time when the project was closed."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the project was created."
},
"deleted_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"nullable": true,
"description": "The time when the project was deleted."
},
"deleted_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the project was last updated."
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description of the project."
},
"is_template": {
"type": "boolean",
"description": "Whether this project is a template"
},
"short_description": {
"type": "string",
"nullable": true,
"description": "A concise summary of the project."
},
"latest_status_update": {
"$ref": "#/components/schemas/nullable-projects-v2-status-update"
}
},
"description": "A projects v2 project"
}
projects-v2-draft-issue
{
"type": "object",
"title": "Draft Issue",
"required": [
"id",
"node_id",
"title",
"user",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "number",
"description": "The ID of the draft issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "The body content of the draft issue"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"title": {
"type": "string",
"description": "The title of the draft issue"
},
"node_id": {
"type": "string",
"description": "The node ID of the draft issue"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time the draft issue was created"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "The time the draft issue was last updated"
}
},
"description": "A draft issue in a project"
}
projects-v2-field
{
"type": "object",
"title": "Projects v2 Field",
"required": [
"id",
"name",
"data_type",
"created_at",
"updated_at",
"project_url"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the field."
},
"name": {
"type": "string",
"description": "The name of the field."
},
"node_id": {
"type": "string",
"description": "The node ID of the field."
},
"options": {
"type": "array",
"items": {
"$ref": "#/components/schemas/projects-v2-single-select-options"
},
"description": "The options available for single select fields."
},
"data_type": {
"enum": [
"assignees",
"linked_pull_requests",
"reviewers",
"labels",
"milestone",
"repository",
"title",
"text",
"single_select",
"number",
"date",
"iteration",
"issue_type",
"parent_issue",
"sub_issues_progress"
],
"type": "string",
"description": "The field's data type."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the field was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the field was last updated."
},
"project_url": {
"type": "string",
"example": "https://api.github.com/projects/1",
"description": "The API URL of the project that contains the field."
},
"configuration": {
"type": "object",
"properties": {
"duration": {
"type": "integer",
"description": "The duration of the iteration in days."
},
"start_day": {
"type": "integer",
"description": "The day of the week when the iteration starts."
},
"iterations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/projects-v2-iteration-settings"
}
}
},
"description": "Configuration for iteration fields."
},
"issue_field_id": {
"type": "integer",
"description": "The ID of the issue field."
}
},
"description": "A field inside a projects v2 project"
}
projects-v2-field-iteration-configuration
{
"type": "object",
"properties": {
"duration": {
"type": "integer",
"description": "The default duration for iterations in days. Individual iterations can override this value."
},
"iterations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the iteration."
},
"duration": {
"type": "integer",
"description": "The duration of the iteration in days."
},
"start_date": {
"type": "string",
"format": "date",
"description": "The start date of the iteration."
}
},
"additionalProperties": false
},
"description": "Zero or more iterations for the field."
},
"start_date": {
"type": "string",
"format": "date",
"description": "The start date of the first iteration."
}
},
"description": "The configuration for iteration fields."
}
projects-v2-field-single-select-option
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The display name of the option."
},
"color": {
"enum": [
"BLUE",
"GRAY",
"GREEN",
"ORANGE",
"PINK",
"PURPLE",
"RED",
"YELLOW"
],
"type": "string",
"description": "The color associated with the option."
},
"description": {
"type": "string",
"description": "The description of the option."
}
},
"additionalProperties": false
}
projects-v2-item
{
"type": "object",
"title": "Projects v2 Item",
"required": [
"id",
"content_node_id",
"content_type",
"created_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the project item."
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the project item."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"nullable": true,
"description": "The time when the item was archived."
},
"content_type": {
"$ref": "#/components/schemas/projects-v2-item-content-type"
},
"content_node_id": {
"type": "string",
"description": "The node ID of the content represented by this item."
},
"project_node_id": {
"type": "string",
"description": "The node ID of the project that contains this item."
}
},
"description": "An item belonging to a project"
}
projects-v2-item-content-type
{
"enum": [
"Issue",
"PullRequest",
"DraftIssue"
],
"type": "string",
"title": "Projects v2 Item Content Type",
"description": "The type of content tracked in a project item"
}
projects-v2-item-simple
{
"type": "object",
"title": "Projects v2 Item",
"required": [
"id",
"content_type",
"created_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the project item."
},
"content": {
"oneOf": [
{
"$ref": "#/components/schemas/issue"
},
{
"$ref": "#/components/schemas/pull-request-simple"
},
{
"$ref": "#/components/schemas/projects-v2-draft-issue"
}
],
"description": "The content represented by the item."
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the project item."
},
"item_url": {
"type": "string",
"format": "uri",
"description": "The URL of the item in the project."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"nullable": true,
"description": "The time when the item was archived."
},
"project_url": {
"type": "string",
"format": "uri",
"description": "The URL of the project this item belongs to."
},
"content_type": {
"$ref": "#/components/schemas/projects-v2-item-content-type"
}
},
"description": "An item belonging to a project"
}
projects-v2-item-with-content
{
"type": "object",
"title": "Projects v2 Item",
"required": [
"id",
"content_type",
"created_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the project item."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"description": "The fields and values associated with this item."
},
"content": {
"type": "object",
"nullable": true,
"description": "The content of the item, which varies by content type.",
"additionalProperties": true
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the project item."
},
"item_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/monalisa/2/projectsV2/items/3",
"nullable": true,
"description": "The API URL of this item."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the item was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"nullable": true,
"description": "The time when the item was archived."
},
"project_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/monalisa/2/projectsV2/3",
"description": "The API URL of the project that contains this item."
},
"content_type": {
"$ref": "#/components/schemas/projects-v2-item-content-type"
}
},
"description": "An item belonging to a project"
}
projects-v2-iteration-setting
{
"type": "object",
"title": "Projects v2 Iteration Setting",
"required": [
"id",
"title"
],
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the iteration setting."
},
"title": {
"type": "string",
"description": "The iteration title."
},
"duration": {
"type": "number",
"nullable": true,
"description": "The duration of the iteration in days."
},
"completed": {
"type": "boolean",
"description": "Whether the iteration has been completed."
},
"start_date": {
"type": "string",
"nullable": true,
"description": "The start date of the iteration."
},
"title_html": {
"type": "string",
"description": "The iteration title, rendered as HTML."
}
},
"description": "An iteration setting for an iteration field"
}
projects-v2-iteration-settings
{
"type": "object",
"title": "Projects v2 Iteration Setting",
"required": [
"id",
"start_date",
"duration",
"title",
"completed"
],
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the iteration setting."
},
"title": {
"type": "object",
"required": [
"raw",
"html"
],
"properties": {
"raw": {
"type": "string"
},
"html": {
"type": "string"
}
},
"description": "The iteration title, in raw text and HTML formats."
},
"duration": {
"type": "integer",
"description": "The duration of the iteration in days."
},
"completed": {
"type": "boolean",
"description": "Whether the iteration has been completed."
},
"start_date": {
"type": "string",
"format": "date",
"description": "The start date of the iteration."
}
},
"description": "An iteration setting for an iteration field"
}
projects-v2-single-select-option
{
"type": "object",
"title": "Projects v2 Single Select Option",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the option."
},
"name": {
"type": "string",
"description": "The display name of the option."
},
"color": {
"type": "string",
"nullable": true,
"description": "The color associated with the option."
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description of the option."
}
},
"description": "An option for a single select field"
}
projects-v2-single-select-options
{
"type": "object",
"title": "Projects v2 Single Select Option",
"required": [
"id",
"name",
"description",
"color"
],
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the option."
},
"name": {
"type": "object",
"required": [
"raw",
"html"
],
"properties": {
"raw": {
"type": "string"
},
"html": {
"type": "string"
}
},
"description": "The display name of the option, in raw text and HTML formats."
},
"color": {
"type": "string",
"description": "The color associated with the option."
},
"description": {
"type": "object",
"required": [
"raw",
"html"
],
"properties": {
"raw": {
"type": "string"
},
"html": {
"type": "string"
}
},
"description": "The description of the option, in raw text and HTML formats."
}
},
"description": "An option for a single select field"
}
projects-v2-status-update
{
"type": "object",
"title": "Projects v2 Status Update",
"required": [
"id",
"node_id",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "number",
"description": "The unique identifier of the status update."
},
"body": {
"type": "string",
"example": "The project is off to a great start!",
"nullable": true,
"description": "Body of the status update"
},
"status": {
"enum": [
"INACTIVE",
"ON_TRACK",
"AT_RISK",
"OFF_TRACK",
"COMPLETE"
],
"type": "string",
"nullable": true,
"description": "The current status."
},
"creator": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"description": "The node ID of the status update."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the status update was created."
},
"start_date": {
"type": "string",
"format": "date",
"example": "2022-04-28",
"description": "The start date of the period covered by the update."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the status update was last updated."
},
"target_date": {
"type": "string",
"format": "date",
"example": "2022-04-28",
"description": "The target date associated with the update."
},
"project_node_id": {
"type": "string",
"description": "The node ID of the project that this status update belongs to."
}
},
"description": "An status update belonging to a project"
}
projects-v2-view
{
"type": "object",
"title": "Projects v2 View",
"required": [
"id",
"number",
"name",
"layout",
"node_id",
"project_url",
"html_url",
"creator",
"created_at",
"updated_at",
"visible_fields",
"sort_by",
"group_by",
"vertical_group_by"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the view."
},
"name": {
"type": "string",
"description": "The name of the view."
},
"filter": {
"type": "string",
"example": "is:issue is:open",
"nullable": true,
"description": "The filter query for the view."
},
"layout": {
"enum": [
"table",
"board",
"roadmap"
],
"type": "string",
"description": "The layout of the view."
},
"number": {
"type": "integer",
"description": "The number of the view within the project."
},
"creator": {
"allOf": [
{
"$ref": "#/components/schemas/simple-user"
}
]
},
"node_id": {
"type": "string",
"description": "The node ID of the view."
},
"sort_by": {
"type": "array",
"items": {
"type": "array",
"items": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"maxItems": 2,
"minItems": 2
},
"description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\"."
},
"group_by": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The list of field IDs used for horizontal grouping."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/octocat/projects/1/views/1",
"description": "The web URL of the view."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the view was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2022-04-28T12:00:00Z",
"description": "The time when the view was last updated."
},
"project_url": {
"type": "string",
"example": "https://api.github.com/orgs/octocat/projectsV2/1",
"description": "The API URL of the project that contains the view."
},
"visible_fields": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The list of field IDs that are visible in the view."
},
"vertical_group_by": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The list of field IDs used for vertical grouping (board layout)."
}
},
"description": "A view inside a projects v2 project"
}
protected-branch
{
"type": "object",
"title": "Protected Branch",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"lock_branch": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
}
},
"description": "Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.",
"additionalProperties": false
},
"restrictions": {
"$ref": "#/components/schemas/branch-restriction-policy"
},
"enforce_admins": {
"type": "object",
"required": [
"url",
"enabled"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"allow_deletions": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"block_creations": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"allow_force_pushes": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"allow_fork_syncing": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
}
},
"description": "Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.",
"additionalProperties": false
},
"required_signatures": {
"type": "object",
"required": [
"url",
"enabled"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures"
},
"enabled": {
"type": "boolean",
"example": true
}
}
},
"required_status_checks": {
"$ref": "#/components/schemas/status-check-policy"
},
"required_linear_history": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"required_pull_request_reviews": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"dismiss_stale_reviews": {
"type": "boolean"
},
"dismissal_restrictions": {
"type": "object",
"required": [
"url",
"users_url",
"teams_url",
"users",
"teams"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"apps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/integration"
}
},
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
}
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"teams_url": {
"type": "string",
"format": "uri"
},
"users_url": {
"type": "string",
"format": "uri"
}
}
},
"require_code_owner_reviews": {
"type": "boolean"
},
"require_last_push_approval": {
"type": "boolean",
"default": false,
"description": "Whether the most recent push must be approved by someone other than the person who pushed it."
},
"bypass_pull_request_allowances": {
"type": "object",
"required": [
"users",
"teams"
],
"properties": {
"apps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/integration"
}
},
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
}
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
}
}
},
"required_approving_review_count": {
"type": "integer"
}
}
},
"required_conversation_resolution": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"description": "Branch protections protect branches"
}
protected-branch-admin-enforced
{
"type": "object",
"title": "Protected Branch Admin Enforced",
"required": [
"url",
"enabled"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins"
},
"enabled": {
"type": "boolean",
"example": true
}
},
"description": "Protected Branch Admin Enforced"
}
protected-branch-pull-request-review
{
"type": "object",
"title": "Protected Branch Pull Request Review",
"required": [
"dismiss_stale_reviews",
"require_code_owner_reviews"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions"
},
"dismiss_stale_reviews": {
"type": "boolean",
"example": true
},
"dismissal_restrictions": {
"type": "object",
"properties": {
"url": {
"type": "string",
"example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions\""
},
"apps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/integration"
},
"description": "The list of apps with review dismissal access."
},
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
},
"description": "The list of teams with review dismissal access."
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"description": "The list of users with review dismissal access."
},
"teams_url": {
"type": "string",
"example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/teams\""
},
"users_url": {
"type": "string",
"example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/users\""
}
}
},
"require_code_owner_reviews": {
"type": "boolean",
"example": true
},
"require_last_push_approval": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether the most recent push must be approved by someone other than the person who pushed it."
},
"bypass_pull_request_allowances": {
"type": "object",
"properties": {
"apps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/integration"
},
"description": "The list of apps allowed to bypass pull request requirements."
},
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
},
"description": "The list of teams allowed to bypass pull request requirements."
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"description": "The list of users allowed to bypass pull request requirements."
}
},
"description": "Allow specific users, teams, or apps to bypass pull request requirements."
},
"required_approving_review_count": {
"type": "integer",
"example": 2,
"maximum": 6,
"minimum": 0
}
},
"description": "Protected Branch Pull Request Review"
}
protected-branch-required-status-check
{
"type": "object",
"title": "Protected Branch Required Status Check",
"required": [
"contexts",
"checks"
],
"properties": {
"url": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"context",
"app_id"
],
"properties": {
"app_id": {
"type": "integer",
"nullable": true
},
"context": {
"type": "string"
}
}
}
},
"strict": {
"type": "boolean"
},
"contexts": {
"type": "array",
"items": {
"type": "string"
}
},
"contexts_url": {
"type": "string"
},
"enforcement_level": {
"type": "string"
}
},
"description": "Protected Branch Required Status Check"
}
public-event
{
"type": "object",
"title": "PublicEvent"
}
public-ip
{
"type": "object",
"title": "Public IP for a GitHub-hosted larger runners.",
"properties": {
"length": {
"type": "integer",
"example": 28,
"description": "The length of the IP prefix."
},
"prefix": {
"type": "string",
"example": "20.80.208.150",
"description": "The prefix for the public IP."
},
"enabled": {
"type": "boolean",
"example": true,
"description": "Whether public IP is enabled."
}
},
"description": "Provides details of Public IP for a GitHub-hosted larger runners"
}
public-user
{
"type": "object",
"title": "Public User",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url",
"bio",
"blog",
"company",
"email",
"followers",
"following",
"hireable",
"location",
"name",
"public_gists",
"public_repos",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"bio": {
"type": "string",
"nullable": true
},
"url": {
"type": "string",
"format": "uri"
},
"blog": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"plan": {
"type": "object",
"required": [
"collaborators",
"name",
"space",
"private_repos"
],
"properties": {
"name": {
"type": "string"
},
"space": {
"type": "integer"
},
"collaborators": {
"type": "integer"
},
"private_repos": {
"type": "integer"
}
}
},
"type": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"login": {
"type": "string"
},
"company": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"hireable": {
"type": "boolean",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"location": {
"type": "string",
"nullable": true
},
"followers": {
"type": "integer"
},
"following": {
"type": "integer"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"disk_usage": {
"type": "integer",
"example": 1
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"gravatar_id": {
"type": "string",
"nullable": true
},
"starred_url": {
"type": "string"
},
"public_gists": {
"type": "integer"
},
"public_repos": {
"type": "integer"
},
"collaborators": {
"type": "integer",
"example": 3
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string"
},
"private_gists": {
"type": "integer",
"example": 1
},
"user_view_type": {
"type": "string"
},
"twitter_username": {
"type": "string",
"nullable": true
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"notification_email": {
"type": "string",
"format": "email",
"nullable": true
},
"owned_private_repos": {
"type": "integer",
"example": 2
},
"received_events_url": {
"type": "string",
"format": "uri"
},
"total_private_repos": {
"type": "integer",
"example": 2
}
},
"description": "Public User",
"additionalProperties": false
}
pull-request
{
"type": "object",
"title": "Pull Request",
"required": [
"_links",
"assignee",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merge_commit_sha",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge",
"additions",
"changed_files",
"comments",
"commits",
"deletions",
"mergeable",
"mergeable_state",
"merged",
"maintainer_can_modify",
"merged_by",
"review_comments"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"repo",
"sha",
"user"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"$ref": "#/components/schemas/repository"
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"example": "Please pull these awesome changes",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"repo",
"sha",
"user"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"$ref": "#/components/schemas/repository"
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"label": {
"type": "string"
}
}
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"draft": {
"type": "boolean",
"example": false,
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"example": "open",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"example": "Amazing new feature",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"comments",
"commits",
"statuses",
"html",
"issue",
"review_comments",
"review_comment",
"self"
],
"properties": {
"html": {
"$ref": "#/components/schemas/link"
},
"self": {
"$ref": "#/components/schemas/link"
},
"issue": {
"$ref": "#/components/schemas/link"
},
"commits": {
"$ref": "#/components/schemas/link"
},
"comments": {
"$ref": "#/components/schemas/link"
},
"statuses": {
"$ref": "#/components/schemas/link"
},
"review_comment": {
"$ref": "#/components/schemas/link"
},
"review_comments": {
"$ref": "#/components/schemas/link"
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"url",
"name",
"description",
"color",
"default"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean",
"example": true
},
"merged": {
"type": "boolean"
},
"number": {
"type": "integer",
"example": 42,
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer",
"example": 3
},
"node_id": {
"type": "string",
"example": "MDExOlB1bGxSZXF1ZXN0MQ=="
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"comments": {
"type": "integer",
"example": 10
},
"diff_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347.diff"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347"
},
"additions": {
"type": "integer",
"example": 100
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"deletions": {
"type": "integer",
"example": 3
},
"issue_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
},
"mergeable": {
"type": "boolean",
"example": true,
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"merged_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"milestone": {
"$ref": "#/components/schemas/nullable-milestone"
},
"patch_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347.patch"
},
"auto_merge": {
"$ref": "#/components/schemas/auto-merge"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"rebaseable": {
"type": "boolean",
"example": true,
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"commits_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
},
"comments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
},
"statuses_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"changed_files": {
"type": "integer",
"example": 5
},
"mergeable_state": {
"type": "string",
"example": "clean"
},
"requested_teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team-simple"
}
},
"review_comments": {
"type": "integer",
"example": 0
},
"merge_commit_sha": {
"type": "string",
"example": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
"nullable": true
},
"active_lock_reason": {
"type": "string",
"example": "too heated",
"nullable": true
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"review_comment_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
},
"requested_reviewers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"review_comments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
},
"maintainer_can_modify": {
"type": "boolean",
"example": true,
"description": "Indicates whether maintainers can modify the pull request."
}
},
"description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"_links",
"assignee",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge",
"additions",
"changed_files",
"comments",
"commits",
"deletions",
"mergeable",
"mergeable_state",
"merged",
"maintainer_can_modify",
"merged_by",
"review_comments"
],
"properties": {
"merge_commit_sha": null
}
},
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
},
{
"patch": {
"required": [
"_links",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge",
"additions",
"changed_files",
"comments",
"commits",
"deletions",
"mergeable",
"mergeable_state",
"merged",
"maintainer_can_modify",
"merged_by",
"review_comments"
],
"properties": {
"assignee": null
}
},
"version": "2026-03-10",
"changeset": "remove_singular_assignee_from_issues_and_pull_requests"
}
]
}
pull-request-event
{
"type": "object",
"title": "PullRequestEvent",
"required": [
"action",
"number",
"pull_request"
],
"properties": {
"label": {
"$ref": "#/components/schemas/label"
},
"action": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/label"
}
},
"number": {
"type": "integer"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-minimal"
}
}
}
pull-request-merge-result
{
"type": "object",
"title": "Pull Request Merge Result",
"required": [
"merged",
"message",
"sha"
],
"properties": {
"sha": {
"type": "string"
},
"merged": {
"type": "boolean"
},
"message": {
"type": "string"
}
},
"description": "Pull Request Merge Result"
}
pull-request-minimal
{
"type": "object",
"title": "Pull Request Minimal",
"required": [
"id",
"number",
"url",
"head",
"base"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
pull-request-review
{
"type": "object",
"title": "Pull Request Review",
"required": [
"id",
"node_id",
"user",
"body",
"state",
"commit_id",
"html_url",
"pull_request_url",
"_links",
"author_association"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the review"
},
"body": {
"type": "string",
"example": "This looks great.",
"description": "The text of the review."
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"state": {
"type": "string",
"example": "CHANGES_REQUESTED"
},
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
},
"pull_request": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
}
}
},
"node_id": {
"type": "string",
"example": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"commit_id": {
"type": "string",
"example": "54bb654c9e6025347f57900a4a5c2313a96b8035",
"nullable": true,
"description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`."
},
"submitted_at": {
"type": "string",
"format": "date-time"
},
"pull_request_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
}
},
"description": "Pull Request Reviews are reviews on pull requests."
}
pull-request-review-comment
{
"type": "object",
"title": "Pull Request Review Comment",
"required": [
"url",
"id",
"node_id",
"pull_request_review_id",
"diff_hunk",
"path",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"author_association",
"_links"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1,
"description": "The ID of the pull request review comment."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"description": "URL for the pull request review comment"
},
"body": {
"type": "string",
"example": "We should probably include a check for null values here.",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"example": 2,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"example": "config/database.yaml",
"description": "The relative path of the file to which the comment applies."
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"default": "RIGHT",
"description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
}
}
},
"self": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
}
}
},
"pull_request": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
}
}
}
}
},
"node_id": {
"type": "string",
"example": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
"description": "The node ID of the pull request review comment."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
"description": "HTML URL for the pull request review comment."
},
"position": {
"type": "integer",
"example": 1,
"description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead."
},
"body_html": {
"type": "string",
"example": "\"<p>comment body</p>\""
},
"body_text": {
"type": "string",
"example": "\"comment body\""
},
"commit_id": {
"type": "string",
"example": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"description": "The SHA of the commit to which the comment applies."
},
"diff_hunk": {
"type": "string",
"example": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
"description": "The diff of the line that the comment refers to."
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"start_line": {
"type": "integer",
"example": 2,
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"example": 2,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"example": 8,
"description": "The comment ID to reply to."
},
"pull_request_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
"description": "URL for the pull request that the review comment belongs to."
},
"original_position": {
"type": "integer",
"example": 4,
"description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead."
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"original_commit_id": {
"type": "string",
"example": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
"description": "The SHA of the original commit to which the comment applies."
},
"original_start_line": {
"type": "integer",
"example": 2,
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"format": "int64",
"example": 42,
"nullable": true,
"description": "The ID of the pull request review to which the comment belongs."
}
},
"description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff."
}
pull-request-review-comment-event
{
"type": "object",
"title": "PullRequestReviewCommentEvent",
"required": [
"action",
"comment",
"pull_request"
],
"properties": {
"action": {
"type": "string"
},
"comment": {
"type": "object",
"required": [
"url",
"pull_request_review_id",
"id",
"node_id",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"_links",
"reactions"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string"
},
"path": {
"type": "string"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"position": {
"type": "integer",
"nullable": true
},
"commit_id": {
"type": "string"
},
"diff_hunk": {
"type": "string"
},
"reactions": {
"type": "object",
"title": "Reactions",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"subject_type": {
"type": "string",
"nullable": true
},
"in_reply_to_id": {
"type": "integer"
},
"pull_request_url": {
"type": "string",
"format": "uri"
},
"original_position": {
"type": "integer"
},
"original_commit_id": {
"type": "string"
},
"pull_request_review_id": {
"type": "integer",
"nullable": true
}
}
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-minimal"
}
}
}
pull-request-review-event
{
"type": "object",
"title": "PullRequestReviewEvent",
"required": [
"action",
"review",
"pull_request"
],
"properties": {
"action": {
"type": "string"
},
"review": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"state": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
},
"pull_request": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"commit_id": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"submitted_at": {
"type": "string",
"nullable": true
},
"pull_request_url": {
"type": "string",
"format": "uri"
}
}
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-minimal"
}
}
}
pull-request-review-request
{
"type": "object",
"title": "Pull Request Review Request",
"required": [
"users",
"teams"
],
"properties": {
"teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
}
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
}
},
"description": "Pull Request Review Request"
}
pull-request-simple
{
"type": "object",
"title": "Pull Request Simple",
"required": [
"_links",
"assignee",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merge_commit_sha",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"repo",
"sha",
"user"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"$ref": "#/components/schemas/repository"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"example": "Please pull these awesome changes",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"repo",
"sha",
"user"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"$ref": "#/components/schemas/repository"
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"label": {
"type": "string"
}
}
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"draft": {
"type": "boolean",
"example": false,
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"type": "string",
"example": "open"
},
"title": {
"type": "string",
"example": "new-feature"
},
"_links": {
"type": "object",
"required": [
"comments",
"commits",
"statuses",
"html",
"issue",
"review_comments",
"review_comment",
"self"
],
"properties": {
"html": {
"$ref": "#/components/schemas/link"
},
"self": {
"$ref": "#/components/schemas/link"
},
"issue": {
"$ref": "#/components/schemas/link"
},
"commits": {
"$ref": "#/components/schemas/link"
},
"comments": {
"$ref": "#/components/schemas/link"
},
"statuses": {
"$ref": "#/components/schemas/link"
},
"review_comment": {
"$ref": "#/components/schemas/link"
},
"review_comments": {
"$ref": "#/components/schemas/link"
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"url",
"name",
"description",
"color",
"default"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
},
"locked": {
"type": "boolean",
"example": true
},
"number": {
"type": "integer",
"example": 1347
},
"node_id": {
"type": "string",
"example": "MDExOlB1bGxSZXF1ZXN0MQ=="
},
"assignee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"diff_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347.diff"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
},
"merged_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"milestone": {
"$ref": "#/components/schemas/nullable-milestone"
},
"patch_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1347.patch"
},
"auto_merge": {
"$ref": "#/components/schemas/auto-merge"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z"
},
"commits_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
},
"comments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
},
"statuses_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"requested_teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
}
},
"merge_commit_sha": {
"type": "string",
"example": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
"nullable": true
},
"active_lock_reason": {
"type": "string",
"example": "too heated",
"nullable": true
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"review_comment_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
},
"requested_reviewers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"review_comments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
}
},
"description": "Pull Request Simple",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"_links",
"assignee",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge"
],
"properties": {
"merge_commit_sha": null
}
},
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
},
{
"patch": {
"required": [
"_links",
"labels",
"base",
"body",
"closed_at",
"comments_url",
"commits_url",
"created_at",
"diff_url",
"head",
"html_url",
"id",
"node_id",
"issue_url",
"merged_at",
"milestone",
"number",
"patch_url",
"review_comment_url",
"review_comments_url",
"statuses_url",
"state",
"locked",
"title",
"updated_at",
"url",
"user",
"author_association",
"auto_merge"
],
"properties": {
"assignee": null
}
},
"version": "2026-03-10",
"changeset": "remove_singular_assignee_from_issues_and_pull_requests"
}
]
}
pull-request-webhook
{
"allOf": [
{
"$ref": "#/components/schemas/pull-request"
},
{
"type": "object",
"properties": {
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., \"Merge pull request #123 from branch-name\")."
},
"allow_update_branch": {
"type": "boolean",
"description": "Whether to allow updating the pull request's branch."
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged."
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**"
}
}
}
]
}
push-event
{
"type": "object",
"title": "PushEvent",
"required": [
"repository_id",
"push_id",
"ref",
"head",
"before"
],
"properties": {
"ref": {
"type": "string"
},
"head": {
"type": "string"
},
"before": {
"type": "string"
},
"push_id": {
"type": "integer"
},
"repository_id": {
"type": "integer"
}
}
}
rate-limit
{
"type": "object",
"title": "Rate Limit",
"required": [
"limit",
"remaining",
"reset",
"used"
],
"properties": {
"used": {
"type": "integer"
},
"limit": {
"type": "integer"
},
"reset": {
"type": "integer"
},
"remaining": {
"type": "integer"
}
}
}
rate-limit-overview
{
"type": "object",
"title": "Rate Limit Overview",
"required": [
"rate",
"resources"
],
"properties": {
"rate": {
"$ref": "#/components/schemas/rate-limit"
},
"resources": {
"type": "object",
"required": [
"core",
"search"
],
"properties": {
"core": {
"$ref": "#/components/schemas/rate-limit"
},
"scim": {
"$ref": "#/components/schemas/rate-limit"
},
"search": {
"$ref": "#/components/schemas/rate-limit"
},
"graphql": {
"$ref": "#/components/schemas/rate-limit"
},
"code_search": {
"$ref": "#/components/schemas/rate-limit"
},
"source_import": {
"$ref": "#/components/schemas/rate-limit"
},
"dependency_sbom": {
"$ref": "#/components/schemas/rate-limit"
},
"code_scanning_upload": {
"$ref": "#/components/schemas/rate-limit"
},
"dependency_snapshots": {
"$ref": "#/components/schemas/rate-limit"
},
"integration_manifest": {
"$ref": "#/components/schemas/rate-limit"
},
"code_scanning_autofix": {
"$ref": "#/components/schemas/rate-limit"
},
"actions_runner_registration": {
"$ref": "#/components/schemas/rate-limit"
}
}
}
},
"description": "Rate Limit Overview",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"resources"
],
"properties": {
"rate": null
}
},
"version": "2026-03-10",
"changeset": "remove_rate_limit_rate"
}
]
}
reaction
{
"type": "object",
"title": "Reaction",
"required": [
"id",
"node_id",
"user",
"content",
"created_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"content": {
"enum": [
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"rocket",
"eyes"
],
"type": "string",
"example": "heart",
"description": "The reaction to use"
},
"node_id": {
"type": "string",
"example": "MDg6UmVhY3Rpb24x"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2016-05-20T20:09:31Z"
}
},
"description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively."
}
reaction-rollup
{
"type": "object",
"title": "Reaction Rollup",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
}
referenced-workflow
{
"type": "object",
"title": "Referenced workflow",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
},
"description": "A workflow referenced/reused by the initial caller workflow"
}
referrer-traffic
{
"type": "object",
"title": "Referrer Traffic",
"required": [
"referrer",
"uniques",
"count"
],
"properties": {
"count": {
"type": "integer",
"example": 4
},
"uniques": {
"type": "integer",
"example": 3
},
"referrer": {
"type": "string",
"example": "Google"
}
},
"description": "Referrer Traffic"
}
release
{
"type": "object",
"title": "Release",
"required": [
"assets_url",
"upload_url",
"tarball_url",
"zipball_url",
"created_at",
"published_at",
"draft",
"id",
"node_id",
"author",
"html_url",
"name",
"prerelease",
"tag_name",
"target_commitish",
"assets",
"url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean",
"example": false,
"description": "true to create a draft (unpublished) release, false to create a published one."
},
"assets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/release-asset"
}
},
"author": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string",
"example": "v1.0.0",
"description": "The name of the tag."
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"immutable": {
"type": "boolean",
"example": false,
"description": "Whether or not the release is immutable."
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"assets_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"prerelease": {
"type": "boolean",
"example": false,
"description": "Whether to identify the release as a prerelease or a full release."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"upload_url": {
"type": "string"
},
"tarball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"zipball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"published_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"discussion_url": {
"type": "string",
"format": "uri",
"description": "The URL of the release discussion."
},
"mentions_count": {
"type": "integer"
},
"target_commitish": {
"type": "string",
"example": "master",
"description": "Specifies the commitish value that determines where the Git tag is created from."
}
},
"description": "A release."
}
release-asset
{
"type": "object",
"title": "Release Asset",
"required": [
"id",
"name",
"content_type",
"size",
"digest",
"state",
"url",
"node_id",
"download_count",
"label",
"uploader",
"browser_download_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The file name of the asset."
},
"size": {
"type": "integer"
},
"label": {
"type": "string",
"nullable": true
},
"state": {
"enum": [
"uploaded",
"open"
],
"type": "string",
"description": "State of the release asset."
},
"digest": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"uploader": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_type": {
"type": "string"
},
"download_count": {
"type": "integer"
},
"browser_download_url": {
"type": "string",
"format": "uri"
}
},
"description": "Data related to a release."
}
release-event
{
"type": "object",
"title": "ReleaseEvent",
"required": [
"action",
"release"
],
"properties": {
"action": {
"type": "string"
},
"release": {
"allOf": [
{
"$ref": "#/components/schemas/release"
},
{
"type": "object",
"properties": {
"short_description_html": {
"type": "string"
},
"is_short_description_html_truncated": {
"type": "boolean"
}
}
}
]
}
}
}
release-notes-content
{
"type": "object",
"title": "Generated Release Notes Content",
"required": [
"name",
"body"
],
"properties": {
"body": {
"type": "string",
"description": "The generated body describing the contents of the release supporting markdown formatting"
},
"name": {
"type": "string",
"example": "Release v1.0.0 is now available!",
"description": "The generated name of the release"
}
},
"description": "Generated name and body describing a release"
}
removed-from-project-issue-event
{
"type": "object",
"title": "Removed from Project Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"project_card": {
"type": "object",
"required": [
"id",
"url",
"project_id",
"project_url",
"column_name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"project_id": {
"type": "integer"
},
"column_name": {
"type": "string"
},
"project_url": {
"type": "string",
"format": "uri"
},
"previous_column_name": {
"type": "string"
}
}
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Removed from Project Issue Event"
}
renamed-issue-event
{
"type": "object",
"title": "Renamed Issue Event",
"required": [
"rename",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"rename": {
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Renamed Issue Event"
}
repo-codespaces-secret
{
"type": "object",
"title": "Codespaces Secret",
"required": [
"name",
"created_at",
"updated_at"
],
"properties": {
"name": {
"type": "string",
"example": "SECRET_TOKEN",
"description": "The name of the secret."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Set repository secrets for GitHub Codespaces."
}
repo-search-result-item
{
"type": "object",
"title": "Repo Search Result Item",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at",
"score"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"score": {
"type": "number"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string",
"format": "uri",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string"
},
"pushed_at": {
"type": "string",
"format": "date-time"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"type": "string",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
},
"allow_forking": {
"type": "boolean"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string"
},
"has_discussions": {
"type": "boolean"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"has_pull_requests": {
"type": "boolean"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean"
},
"allow_rebase_merge": {
"type": "boolean"
},
"allow_squash_merge": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean"
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "Repo Search Result Item"
}
repository
{
"type": "object",
"title": "Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The name of the repository."
},
"size": {
"type": "integer",
"example": 108,
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean",
"default": false,
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:42Z\""
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string",
"default": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether this repository acts as a template that can be used to generate new repositories."
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether projects are enabled."
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow forking this repo"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"default": true,
"example": true,
"deprecated": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"example": "master",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow Auto-merge to be used on pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging."
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"anonymous_access_enabled": {
"type": "boolean",
"description": "Whether anonymous git access is enabled for this repository"
},
"code_search_index_status": {
"type": "object",
"properties": {
"lexical_search_ok": {
"type": "boolean"
},
"lexical_commit_sha": {
"type": "string"
}
},
"description": "The status of the code search index for this repository"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"default": false,
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"example": "all",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"deprecated": true,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A repository on GitHub.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"use_squash_pr_title_as_default": null
}
},
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": {
"properties": {
"master_branch": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
},
{
"patch": {
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
repository-advisory
{
"type": "object",
"required": [
"ghsa_id",
"cve_id",
"url",
"html_url",
"summary",
"description",
"severity",
"author",
"publisher",
"identifiers",
"state",
"created_at",
"updated_at",
"published_at",
"closed_at",
"withdrawn_at",
"submission",
"vulnerabilities",
"cvss",
"cwes",
"cwe_ids",
"credits",
"credits_detailed",
"collaborating_users",
"collaborating_teams",
"private_fork"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The API URL for the advisory."
},
"cvss": {
"type": "object",
"nullable": true,
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number",
"maximum": 10,
"minimum": 0,
"nullable": true,
"readOnly": true,
"description": "The CVSS score."
},
"vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS vector."
}
}
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "The name of the CWE."
},
"cwe_id": {
"type": "string",
"description": "The Common Weakness Enumeration (CWE) identifier."
}
}
},
"nullable": true,
"readOnly": true
},
"state": {
"enum": [
"published",
"closed",
"withdrawn",
"draft",
"triage"
],
"type": "string",
"description": "The state of the advisory."
},
"author": {
"allOf": [
{
"$ref": "#/components/schemas/simple-user"
}
],
"nullable": true,
"readOnly": true,
"description": "The author of the advisory."
},
"cve_id": {
"type": "string",
"nullable": true,
"description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"credits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/security-advisory-credit-types"
},
"login": {
"type": "string",
"description": "The username of the user credited."
}
}
},
"nullable": true
},
"cwe_ids": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of only the CWE IDs."
},
"ghsa_id": {
"type": "string",
"readOnly": true,
"description": "The GitHub Security Advisory ID."
},
"summary": {
"type": "string",
"maxLength": 1024,
"description": "A short summary of the advisory."
},
"html_url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The URL for the advisory."
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low"
],
"type": "string",
"nullable": true,
"description": "The severity of the advisory."
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was closed, in ISO 8601 format."
},
"publisher": {
"allOf": [
{
"$ref": "#/components/schemas/simple-user"
}
],
"nullable": true,
"readOnly": true,
"description": "The publisher of the advisory."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was created, in ISO 8601 format."
},
"submission": {
"type": "object",
"nullable": true,
"readOnly": true,
"required": [
"accepted"
],
"properties": {
"accepted": {
"type": "boolean",
"readOnly": true,
"description": "Whether a private vulnerability report was accepted by the repository's administrators."
}
}
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was last updated, in ISO 8601 format."
},
"description": {
"type": "string",
"nullable": true,
"maxLength": 65535,
"description": "A detailed description of what the advisory entails."
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"CVE",
"GHSA"
],
"type": "string",
"description": "The type of identifier."
},
"value": {
"type": "string",
"description": "The identifier value."
}
}
},
"readOnly": true
},
"private_fork": {
"allOf": [
{
"$ref": "#/components/schemas/simple-repository"
}
],
"nullable": true,
"readOnly": true,
"description": "A temporary private fork of the advisory's repository for collaborating on a fix."
},
"published_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was published, in ISO 8601 format."
},
"withdrawn_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"readOnly": true,
"description": "The date and time of when the advisory was withdrawn, in ISO 8601 format."
},
"cvss_severities": {
"$ref": "#/components/schemas/cvss-severities"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-advisory-vulnerability"
},
"nullable": true
},
"credits_detailed": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-advisory-credit"
},
"nullable": true,
"readOnly": true
},
"collaborating_teams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team"
},
"nullable": true,
"description": "A list of teams that collaborate on the advisory."
},
"collaborating_users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
},
"nullable": true,
"description": "A list of users that collaborate on the advisory."
}
},
"description": "A repository security advisory.",
"additionalProperties": false,
"x-github-breaking-changes": [
{
"patch": {
"required": [
"ghsa_id",
"cve_id",
"url",
"html_url",
"summary",
"description",
"severity",
"author",
"publisher",
"identifiers",
"state",
"created_at",
"updated_at",
"published_at",
"closed_at",
"withdrawn_at",
"submission",
"vulnerabilities",
"cwes",
"cwe_ids",
"credits",
"credits_detailed",
"collaborating_users",
"collaborating_teams",
"private_fork"
],
"properties": {
"cvss": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_cvss"
}
]
}
repository-advisory-create
{
"type": "object",
"required": [
"summary",
"description",
"vulnerabilities"
],
"properties": {
"cve_id": {
"type": "string",
"nullable": true,
"description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"credits": {
"type": "array",
"items": {
"type": "object",
"required": [
"login",
"type"
],
"properties": {
"type": {
"$ref": "#/components/schemas/security-advisory-credit-types"
},
"login": {
"type": "string",
"description": "The username of the user credited."
}
},
"additionalProperties": false
},
"nullable": true,
"description": "A list of users receiving credit for their participation in the security advisory."
},
"cwe_ids": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of Common Weakness Enumeration (CWE) IDs."
},
"summary": {
"type": "string",
"maxLength": 1024,
"description": "A short summary of the advisory."
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low"
],
"type": "string",
"nullable": true,
"description": "The severity of the advisory. You must choose between setting this field or `cvss_vector_string`."
},
"description": {
"type": "string",
"maxLength": 65535,
"description": "A detailed description of what the advisory impacts."
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"package"
],
"properties": {
"package": {
"type": "object",
"required": [
"ecosystem"
],
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"$ref": "#/components/schemas/security-advisory-ecosystems"
}
},
"description": "The name of the package affected by the vulnerability."
},
"patched_versions": {
"type": "string",
"nullable": true,
"description": "The package version(s) that resolve the vulnerability."
},
"vulnerable_functions": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The functions in the package that are affected."
},
"vulnerable_version_range": {
"type": "string",
"nullable": true,
"description": "The range of the package versions affected by the vulnerability."
}
},
"additionalProperties": false
},
"description": "A product affected by the vulnerability detailed in a repository security advisory."
},
"cvss_vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`."
},
"start_private_fork": {
"type": "boolean",
"default": false,
"description": "Whether to create a temporary private fork of the repository to collaborate on a fix."
}
},
"additionalProperties": false
}
repository-advisory-credit
{
"type": "object",
"required": [
"user",
"type",
"state"
],
"properties": {
"type": {
"$ref": "#/components/schemas/security-advisory-credit-types"
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"state": {
"enum": [
"accepted",
"declined",
"pending"
],
"type": "string",
"description": "The state of the user's acceptance of the credit."
}
},
"description": "A credit given to a user for a repository security advisory.",
"additionalProperties": false
}
repository-advisory-update
{
"type": "object",
"properties": {
"state": {
"enum": [
"published",
"closed",
"draft"
],
"type": "string",
"description": "The state of the advisory."
},
"cve_id": {
"type": "string",
"nullable": true,
"description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"credits": {
"type": "array",
"items": {
"type": "object",
"required": [
"login",
"type"
],
"properties": {
"type": {
"$ref": "#/components/schemas/security-advisory-credit-types"
},
"login": {
"type": "string",
"description": "The username of the user credited."
}
},
"additionalProperties": false
},
"nullable": true,
"description": "A list of users receiving credit for their participation in the security advisory."
},
"cwe_ids": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of Common Weakness Enumeration (CWE) IDs."
},
"summary": {
"type": "string",
"maxLength": 1024,
"description": "A short summary of the advisory."
},
"severity": {
"enum": [
"critical",
"high",
"medium",
"low"
],
"type": "string",
"nullable": true,
"description": "The severity of the advisory. You must choose between setting this field or `cvss_vector_string`."
},
"description": {
"type": "string",
"maxLength": 65535,
"description": "A detailed description of what the advisory impacts."
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"package"
],
"properties": {
"package": {
"type": "object",
"required": [
"ecosystem"
],
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"$ref": "#/components/schemas/security-advisory-ecosystems"
}
},
"description": "The name of the package affected by the vulnerability."
},
"patched_versions": {
"type": "string",
"nullable": true,
"description": "The package version(s) that resolve the vulnerability."
},
"vulnerable_functions": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The functions in the package that are affected."
},
"vulnerable_version_range": {
"type": "string",
"nullable": true,
"description": "The range of the package versions affected by the vulnerability."
}
},
"additionalProperties": false
},
"description": "A product affected by the vulnerability detailed in a repository security advisory."
},
"cvss_vector_string": {
"type": "string",
"nullable": true,
"description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`."
},
"collaborating_teams": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of team slugs which have been granted write access to the advisory."
},
"collaborating_users": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A list of usernames who have been granted write access to the advisory."
}
},
"additionalProperties": false
}
repository-advisory-vulnerability
{
"type": "object",
"required": [
"package",
"vulnerable_version_range",
"patched_versions",
"vulnerable_functions"
],
"properties": {
"package": {
"type": "object",
"nullable": true,
"required": [
"ecosystem",
"name"
],
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"$ref": "#/components/schemas/security-advisory-ecosystems"
}
},
"description": "The name of the package affected by the vulnerability."
},
"patched_versions": {
"type": "string",
"nullable": true,
"description": "The package version(s) that resolve the vulnerability."
},
"vulnerable_functions": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "The functions in the package that are affected."
},
"vulnerable_version_range": {
"type": "string",
"nullable": true,
"description": "The range of the package versions affected by the vulnerability."
}
},
"description": "A product affected by the vulnerability detailed in a repository security advisory.",
"additionalProperties": false
}
repository-collaborator-permission
{
"type": "object",
"title": "Repository Collaborator Permission",
"required": [
"permission",
"role_name",
"user"
],
"properties": {
"user": {
"$ref": "#/components/schemas/nullable-collaborator"
},
"role_name": {
"type": "string",
"example": "admin"
},
"permission": {
"type": "string"
}
},
"description": "Repository Collaborator Permission"
}
repository-invitation
{
"type": "object",
"title": "Repository Invitation",
"required": [
"id",
"node_id",
"permissions",
"inviter",
"invitee",
"repository",
"url",
"html_url",
"created_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the repository invitation."
},
"url": {
"type": "string",
"example": "https://api.github.com/user/repository-invitations/1",
"description": "URL for the repository invitation"
},
"expired": {
"type": "boolean",
"description": "Whether or not the invitation has expired"
},
"invitee": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"inviter": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World/invitations"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2016-06-13T14:52:50-05:00"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"permissions": {
"enum": [
"read",
"write",
"admin",
"triage",
"maintain"
],
"type": "string",
"example": "read",
"description": "The permission associated with the invitation."
}
},
"description": "Repository invitations let you manage who you collaborate with."
}
repository-rule
{
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/repository-rule-creation"
},
{
"$ref": "#/components/schemas/repository-rule-update"
},
{
"$ref": "#/components/schemas/repository-rule-deletion"
},
{
"$ref": "#/components/schemas/repository-rule-required-linear-history"
},
{
"$ref": "#/components/schemas/repository-rule-merge-queue"
},
{
"$ref": "#/components/schemas/repository-rule-required-deployments"
},
{
"$ref": "#/components/schemas/repository-rule-required-signatures"
},
{
"$ref": "#/components/schemas/repository-rule-pull-request"
},
{
"$ref": "#/components/schemas/repository-rule-required-status-checks"
},
{
"$ref": "#/components/schemas/repository-rule-non-fast-forward"
},
{
"$ref": "#/components/schemas/repository-rule-commit-message-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-commit-author-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-committer-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-branch-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-tag-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
},
{
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-max-file-size"
},
{
"$ref": "#/components/schemas/repository-rule-workflows"
},
{
"$ref": "#/components/schemas/repository-rule-code-scanning"
},
{
"$ref": "#/components/schemas/repository-rule-copilot-code-review"
}
],
"title": "Repository Rule",
"description": "A repository rule."
}
repository-rule-branch-name-pattern
{
"type": "object",
"title": "branch_name_pattern",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"branch_name_pattern"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"operator",
"pattern"
],
"properties": {
"name": {
"type": "string",
"description": "How this rule appears when configuring it."
},
"negate": {
"type": "boolean",
"description": "If true, the rule will fail if the pattern matches."
},
"pattern": {
"type": "string",
"description": "The pattern to match with."
},
"operator": {
"enum": [
"starts_with",
"ends_with",
"contains",
"regex"
],
"type": "string",
"description": "The operator to use for matching."
}
}
}
},
"description": "Parameters to be used for the branch_name_pattern rule"
}
repository-rule-code-scanning
{
"type": "object",
"title": "code_scanning",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"code_scanning"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"code_scanning_tools"
],
"properties": {
"code_scanning_tools": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule-params-code-scanning-tool"
},
"description": "Tools that must provide code scanning results for this rule to pass."
}
}
}
},
"description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated."
}
repository-rule-commit-author-email-pattern
{
"type": "object",
"title": "commit_author_email_pattern",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"commit_author_email_pattern"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"operator",
"pattern"
],
"properties": {
"name": {
"type": "string",
"description": "How this rule appears when configuring it."
},
"negate": {
"type": "boolean",
"description": "If true, the rule will fail if the pattern matches."
},
"pattern": {
"type": "string",
"description": "The pattern to match with."
},
"operator": {
"enum": [
"starts_with",
"ends_with",
"contains",
"regex"
],
"type": "string",
"description": "The operator to use for matching."
}
}
}
},
"description": "Parameters to be used for the commit_author_email_pattern rule"
}
repository-rule-commit-message-pattern
{
"type": "object",
"title": "commit_message_pattern",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"commit_message_pattern"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"operator",
"pattern"
],
"properties": {
"name": {
"type": "string",
"description": "How this rule appears when configuring it."
},
"negate": {
"type": "boolean",
"description": "If true, the rule will fail if the pattern matches."
},
"pattern": {
"type": "string",
"description": "The pattern to match with."
},
"operator": {
"enum": [
"starts_with",
"ends_with",
"contains",
"regex"
],
"type": "string",
"description": "The operator to use for matching."
}
}
}
},
"description": "Parameters to be used for the commit_message_pattern rule"
}
repository-rule-committer-email-pattern
{
"type": "object",
"title": "committer_email_pattern",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"committer_email_pattern"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"operator",
"pattern"
],
"properties": {
"name": {
"type": "string",
"description": "How this rule appears when configuring it."
},
"negate": {
"type": "boolean",
"description": "If true, the rule will fail if the pattern matches."
},
"pattern": {
"type": "string",
"description": "The pattern to match with."
},
"operator": {
"enum": [
"starts_with",
"ends_with",
"contains",
"regex"
],
"type": "string",
"description": "The operator to use for matching."
}
}
}
},
"description": "Parameters to be used for the committer_email_pattern rule"
}
repository-rule-copilot-code-review
{
"type": "object",
"title": "copilot_code_review",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"copilot_code_review"
],
"type": "string"
},
"parameters": {
"type": "object",
"properties": {
"review_on_push": {
"type": "boolean",
"description": "Copilot automatically reviews each new push to the pull request."
},
"review_draft_pull_requests": {
"type": "boolean",
"description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
}
}
}
},
"description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit."
}
repository-rule-creation
{
"type": "object",
"title": "creation",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"creation"
],
"type": "string"
}
},
"description": "Only allow users with bypass permission to create matching refs."
}
repository-rule-deletion
{
"type": "object",
"title": "deletion",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"deletion"
],
"type": "string"
}
},
"description": "Only allow users with bypass permissions to delete matching refs."
}
repository-rule-detailed
{
"type": "object",
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-creation"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-update"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-deletion"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-required-linear-history"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-merge-queue"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-required-deployments"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-required-signatures"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-pull-request"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-required-status-checks"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-non-fast-forward"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-commit-message-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-commit-author-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-committer-email-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-branch-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-tag-name-pattern"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-max-file-size"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-workflows"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-code-scanning"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-copilot-code-review"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
}
],
"title": "Repository Rule",
"description": "A repository rule with ruleset details."
}
repository-rule-enforcement
{
"enum": [
"disabled",
"active",
"evaluate"
],
"type": "string",
"description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)."
}
repository-rule-file-extension-restriction
{
"type": "object",
"title": "file_extension_restriction",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"file_extension_restriction"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"restricted_file_extensions"
],
"properties": {
"restricted_file_extensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "The file extensions that are restricted from being pushed to the commit graph."
}
}
}
},
"description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph."
}
repository-rule-file-path-restriction
{
"type": "object",
"title": "file_path_restriction",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"file_path_restriction"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"restricted_file_paths"
],
"properties": {
"restricted_file_paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "The file paths that are restricted from being pushed to the commit graph."
}
}
}
},
"description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names."
}
repository-rule-max-file-path-length
{
"type": "object",
"title": "max_file_path_length",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"max_file_path_length"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"max_file_path_length"
],
"properties": {
"max_file_path_length": {
"type": "integer",
"maximum": 32767,
"minimum": 1,
"description": "The maximum amount of characters allowed in file paths."
}
}
}
},
"description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph."
}
repository-rule-max-file-size
{
"type": "object",
"title": "max_file_size",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"max_file_size"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"max_file_size"
],
"properties": {
"max_file_size": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS)."
}
}
}
},
"description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph."
}
repository-rule-merge-queue
{
"type": "object",
"title": "merge_queue",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"merge_queue"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"check_response_timeout_minutes",
"grouping_strategy",
"max_entries_to_build",
"max_entries_to_merge",
"merge_method",
"min_entries_to_merge",
"min_entries_to_merge_wait_minutes"
],
"properties": {
"merge_method": {
"enum": [
"MERGE",
"SQUASH",
"REBASE"
],
"type": "string",
"description": "Method to use when merging changes from queued pull requests."
},
"grouping_strategy": {
"enum": [
"ALLGREEN",
"HEADGREEN"
],
"type": "string",
"description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge."
},
"max_entries_to_build": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time."
},
"max_entries_to_merge": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "The maximum number of PRs that will be merged together in a group."
},
"min_entries_to_merge": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "The minimum number of PRs that will be merged together in a group."
},
"check_response_timeout_minutes": {
"type": "integer",
"maximum": 360,
"minimum": 1,
"description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed"
},
"min_entries_to_merge_wait_minutes": {
"type": "integer",
"maximum": 360,
"minimum": 0,
"description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged."
}
}
}
},
"description": "Merges must be performed via a merge queue."
}
repository-rule-non-fast-forward
{
"type": "object",
"title": "non_fast_forward",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"non_fast_forward"
],
"type": "string"
}
},
"description": "Prevent users with push access from force pushing to refs."
}
repository-rule-params-code-scanning-tool
{
"type": "object",
"title": "CodeScanningTool",
"required": [
"alerts_threshold",
"security_alerts_threshold",
"tool"
],
"properties": {
"tool": {
"type": "string",
"description": "The name of a code scanning tool"
},
"alerts_threshold": {
"enum": [
"none",
"errors",
"errors_and_warnings",
"all"
],
"type": "string",
"description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\""
},
"security_alerts_threshold": {
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
],
"type": "string",
"description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\""
}
},
"description": "A tool that must provide code scanning results for this rule to pass."
}
repository-rule-params-required-reviewer-configuration
{
"type": "object",
"title": "RequiredReviewerConfiguration",
"required": [
"file_patterns",
"minimum_approvals",
"reviewer"
],
"properties": {
"reviewer": {
"$ref": "#/components/schemas/repository-rule-params-reviewer"
},
"file_patterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax."
},
"minimum_approvals": {
"type": "integer",
"description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
}
},
"description": "A reviewing team, and file patterns describing which files they must approve changes to."
}
repository-rule-params-restricted-commits
{
"type": "object",
"title": "RestrictedCommits",
"required": [
"oid"
],
"properties": {
"oid": {
"type": "string",
"description": "Full or abbreviated commit hash to reject"
},
"reason": {
"type": "string",
"description": "Reason for restriction"
}
},
"description": "Restricted commit"
}
repository-rule-params-reviewer
{
"type": "object",
"title": "Reviewer",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "integer",
"description": "ID of the reviewer which must review changes to matching files."
},
"type": {
"enum": [
"Team"
],
"type": "string",
"description": "The type of the reviewer"
}
},
"description": "A required reviewing team"
}
repository-rule-params-status-check-configuration
{
"type": "object",
"title": "StatusCheckConfiguration",
"required": [
"context"
],
"properties": {
"context": {
"type": "string",
"description": "The status check context name that must be present on the commit."
},
"integration_id": {
"type": "integer",
"description": "The optional integration ID that this status check must originate from."
}
},
"description": "Required status check"
}
repository-rule-params-workflow-file-reference
{
"type": "object",
"title": "WorkflowFileReference",
"required": [
"path",
"repository_id"
],
"properties": {
"ref": {
"type": "string",
"description": "The ref (branch or tag) of the workflow file to use"
},
"sha": {
"type": "string",
"description": "The commit SHA of the workflow file to use"
},
"path": {
"type": "string",
"description": "The path to the workflow file"
},
"repository_id": {
"type": "integer",
"description": "The ID of the repository where the workflow is defined"
}
},
"description": "A workflow that must run for this rule to pass"
}
repository-rule-pull-request
{
"type": "object",
"title": "pull_request",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"pull_request"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"dismiss_stale_reviews_on_push",
"require_code_owner_review",
"require_last_push_approval",
"required_approving_review_count",
"required_review_thread_resolution"
],
"properties": {
"required_reviewers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule-params-required-reviewer-configuration"
},
"description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review."
},
"allowed_merge_methods": {
"type": "array",
"items": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string"
},
"description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled."
},
"require_code_owner_review": {
"type": "boolean",
"description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
"require_last_push_approval": {
"type": "boolean",
"description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
"dismiss_stale_reviews_on_push": {
"type": "boolean",
"description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
"required_approving_review_count": {
"type": "integer",
"maximum": 10,
"minimum": 0,
"description": "The number of approving reviews that are required before a pull request can be merged."
},
"required_review_thread_resolution": {
"type": "boolean",
"description": "All conversations on code must be resolved before a pull request can be merged."
}
}
}
},
"description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged."
}
repository-rule-required-deployments
{
"type": "object",
"title": "required_deployments",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"required_deployments"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"required_deployment_environments"
],
"properties": {
"required_deployment_environments": {
"type": "array",
"items": {
"type": "string"
},
"description": "The environments that must be successfully deployed to before branches can be merged."
}
}
}
},
"description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule."
}
repository-rule-required-linear-history
{
"type": "object",
"title": "required_linear_history",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"required_linear_history"
],
"type": "string"
}
},
"description": "Prevent merge commits from being pushed to matching refs."
}
repository-rule-required-signatures
{
"type": "object",
"title": "required_signatures",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"required_signatures"
],
"type": "string"
}
},
"description": "Commits pushed to matching refs must have verified signatures."
}
repository-rule-required-status-checks
{
"type": "object",
"title": "required_status_checks",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"required_status_checks"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"required_status_checks",
"strict_required_status_checks_policy"
],
"properties": {
"required_status_checks": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule-params-status-check-configuration"
},
"description": "Status checks that are required."
},
"do_not_enforce_on_create": {
"type": "boolean",
"description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
},
"strict_required_status_checks_policy": {
"type": "boolean",
"description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
}
}
}
},
"description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass."
}
repository-rule-ruleset-info
{
"title": "repository ruleset data for rule",
"properties": {
"ruleset_id": {
"type": "integer",
"description": "The ID of the ruleset that includes this rule."
},
"ruleset_source": {
"type": "string",
"description": "The name of the source of the ruleset that includes this rule."
},
"ruleset_source_type": {
"enum": [
"Repository",
"Organization"
],
"type": "string",
"description": "The type of source for the ruleset that includes this rule."
}
},
"description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values."
}
repository-rule-tag-name-pattern
{
"type": "object",
"title": "tag_name_pattern",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"tag_name_pattern"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"operator",
"pattern"
],
"properties": {
"name": {
"type": "string",
"description": "How this rule appears when configuring it."
},
"negate": {
"type": "boolean",
"description": "If true, the rule will fail if the pattern matches."
},
"pattern": {
"type": "string",
"description": "The pattern to match with."
},
"operator": {
"enum": [
"starts_with",
"ends_with",
"contains",
"regex"
],
"type": "string",
"description": "The operator to use for matching."
}
}
}
},
"description": "Parameters to be used for the tag_name_pattern rule"
}
repository-rule-update
{
"type": "object",
"title": "update",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"update"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"update_allows_fetch_and_merge"
],
"properties": {
"update_allows_fetch_and_merge": {
"type": "boolean",
"description": "Branch can pull changes from its upstream repository"
}
}
}
},
"description": "Only allow users with bypass permission to update matching refs."
}
repository-rule-violation-error
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {
"secret_scanning": {
"type": "object",
"properties": {
"bypass_placeholders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"token_type": {
"type": "string"
},
"placeholder_id": {
"$ref": "#/components/schemas/secret-scanning-push-protection-bypass-placeholder-id"
}
}
}
}
}
}
}
},
"documentation_url": {
"type": "string"
}
},
"description": "Repository rule violation was detected"
}
repository-rule-workflows
{
"type": "object",
"title": "workflows",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"workflows"
],
"type": "string"
},
"parameters": {
"type": "object",
"required": [
"workflows"
],
"properties": {
"workflows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule-params-workflow-file-reference"
},
"description": "Workflows that must pass for this rule to pass."
},
"do_not_enforce_on_create": {
"type": "boolean",
"description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
}
}
}
},
"description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged."
}
repository-ruleset
{
"type": "object",
"title": "Repository ruleset",
"required": [
"id",
"name",
"source",
"enforcement"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the ruleset"
},
"name": {
"type": "string",
"description": "The name of the ruleset"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule"
}
},
"_links": {
"type": "object",
"properties": {
"html": {
"type": "object",
"nullable": true,
"properties": {
"href": {
"type": "string",
"description": "The html URL of the ruleset"
}
}
},
"self": {
"type": "object",
"properties": {
"href": {
"type": "string",
"description": "The URL of the ruleset"
}
}
}
}
},
"source": {
"type": "string",
"description": "The name of the source"
},
"target": {
"enum": [
"branch",
"tag",
"push",
"repository"
],
"type": "string",
"description": "The target of the ruleset"
},
"node_id": {
"type": "string"
},
"conditions": {
"anyOf": [
{
"$ref": "#/components/schemas/repository-ruleset-conditions"
},
{
"$ref": "#/components/schemas/org-ruleset-conditions"
}
],
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"enforcement": {
"$ref": "#/components/schemas/repository-rule-enforcement"
},
"source_type": {
"enum": [
"Repository",
"Organization",
"Enterprise"
],
"type": "string",
"description": "The type of the source of the ruleset"
},
"bypass_actors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-bypass-actor"
},
"description": "The actors that can bypass the rules in this ruleset"
},
"current_user_can_bypass": {
"enum": [
"always",
"pull_requests_only",
"never",
"exempt"
],
"type": "string",
"description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint."
}
},
"description": "A set of rules to apply when specified conditions are met."
}
repository-ruleset-bypass-actor
{
"type": "object",
"title": "Repository Ruleset Bypass Actor",
"required": [
"actor_type"
],
"properties": {
"actor_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, `actor_id` is ignored. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories."
},
"actor_type": {
"enum": [
"Integration",
"OrganizationAdmin",
"RepositoryRole",
"Team",
"DeployKey"
],
"type": "string",
"description": "The type of actor that can bypass a ruleset."
},
"bypass_mode": {
"enum": [
"always",
"pull_request",
"exempt"
],
"type": "string",
"default": "always",
"description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created."
}
},
"description": "An actor that can bypass rules in a ruleset"
}
repository-ruleset-conditions
{
"type": "object",
"title": "Repository ruleset conditions for ref names",
"properties": {
"ref_name": {
"type": "object",
"properties": {
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match."
},
"include": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches."
}
}
}
},
"description": "Parameters for a repository ruleset ref name condition"
}
repository-ruleset-conditions-repository-id-target
{
"type": "object",
"title": "Repository ruleset conditions for repository IDs",
"required": [
"repository_id"
],
"properties": {
"repository_id": {
"type": "object",
"properties": {
"repository_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass."
}
}
}
},
"description": "Parameters for a repository ID condition"
}
repository-ruleset-conditions-repository-name-target
{
"type": "object",
"title": "Repository ruleset conditions for repository names",
"required": [
"repository_name"
],
"properties": {
"repository_name": {
"type": "object",
"properties": {
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match."
},
"include": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories."
},
"protected": {
"type": "boolean",
"description": "Whether renaming of target repositories is prevented."
}
}
}
},
"description": "Parameters for a repository name condition"
}
repository-ruleset-conditions-repository-property-spec
{
"type": "object",
"title": "Repository ruleset property targeting definition",
"required": [
"name",
"property_values"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the repository property to target"
},
"source": {
"enum": [
"custom",
"system"
],
"type": "string",
"description": "The source of the repository property. Defaults to 'custom' if not specified."
},
"property_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "The values to match for the repository property"
}
},
"description": "Parameters for a targeting a repository property"
}
repository-ruleset-conditions-repository-property-target
{
"type": "object",
"title": "Repository ruleset conditions for repository properties",
"required": [
"repository_property"
],
"properties": {
"repository_property": {
"type": "object",
"properties": {
"exclude": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-spec"
},
"description": "The repository properties and values to exclude. The condition will not pass if any of these properties match."
},
"include": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-spec"
},
"description": "The repository properties and values to include. All of these properties must match for the condition to pass."
}
}
}
},
"description": "Parameters for a repository property condition"
}
repository-subscription
{
"type": "object",
"title": "Repository Invitation",
"required": [
"created_at",
"ignored",
"reason",
"subscribed",
"url",
"repository_url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/subscription"
},
"reason": {
"type": "string",
"nullable": true
},
"ignored": {
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository."
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-10-06T21:34:12Z"
},
"subscribed": {
"type": "boolean",
"example": true,
"description": "Determines if notifications should be received from this repository."
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
}
},
"description": "Repository invitations let you manage who you collaborate with."
}
repository-webhooks
{
"type": "object",
"title": "Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 42,
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The name of the repository."
},
"size": {
"type": "integer",
"example": 108,
"description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0."
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean",
"default": false,
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:42Z\""
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string",
"default": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether this repository acts as a template that can be used to generate new repositories."
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether projects are enabled."
},
"organization": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow forking this repo"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string",
"example": "master",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"has_discussions": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow Auto-merge to be used on pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"subscribers_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging."
},
"template_repository": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string"
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"language": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"pushed_at": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"mirror_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string"
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"permissions": {
"type": "object",
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"allow_auto_merge": {
"type": "boolean"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
},
"open_issues_count": {
"type": "integer"
},
"subscribers_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean"
},
"allow_rebase_merge": {
"type": "boolean"
},
"allow_squash_merge": {
"type": "boolean"
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"use_squash_pr_title_as_default": {
"type": "boolean"
}
}
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"anonymous_access_enabled": {
"type": "boolean",
"description": "Whether anonymous git access is enabled for this repository"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"default": false,
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"deprecated": true,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.",
"x-github-breaking-changes": [
{
"patch": {
"properties": {
"template_repository": {
"properties": {
"use_squash_pr_title_as_default": null
}
},
"use_squash_pr_title_as_default": null
}
},
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": {
"properties": {
"master_branch": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_beta_media_type"
}
]
}
review-comment
{
"type": "object",
"title": "Legacy Review Comment",
"required": [
"id",
"node_id",
"url",
"body",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"pull_request_review_id",
"html_url",
"pull_request_url",
"_links",
"author_association",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 10
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
},
"body": {
"type": "string",
"example": "Great stuff"
},
"line": {
"type": "integer",
"example": 2,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"example": "file1.txt"
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"default": "RIGHT",
"description": "The side of the first line of the range for a multi-line comment."
},
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"$ref": "#/components/schemas/link"
},
"self": {
"$ref": "#/components/schemas/link"
},
"pull_request": {
"$ref": "#/components/schemas/link"
}
}
},
"node_id": {
"type": "string",
"example": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
},
"position": {
"type": "integer",
"example": 1,
"nullable": true
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"commit_id": {
"type": "string",
"example": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"diff_hunk": {
"type": "string",
"example": "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"start_line": {
"type": "integer",
"example": 2,
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"example": 2,
"description": "The original line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"example": 8
},
"pull_request_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
},
"original_position": {
"type": "integer",
"example": 4
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"original_commit_id": {
"type": "string",
"example": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
},
"original_start_line": {
"type": "integer",
"example": 2,
"nullable": true,
"description": "The original first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"format": "int64",
"example": 42,
"nullable": true
}
},
"description": "Legacy Review Comment"
}
review-custom-gates-comment-required
{
"type": "object",
"required": [
"environment_name",
"comment"
],
"properties": {
"comment": {
"type": "string",
"description": "Comment associated with the pending deployment protection rule. **Required when state is not provided.**"
},
"environment_name": {
"type": "string",
"description": "The name of the environment to approve or reject."
}
}
}
review-custom-gates-state-required
{
"type": "object",
"required": [
"environment_name",
"state"
],
"properties": {
"state": {
"enum": [
"approved",
"rejected"
],
"type": "string",
"description": "Whether to approve or reject deployment to the specified environments."
},
"comment": {
"type": "string",
"description": "Optional comment to include with the review."
},
"environment_name": {
"type": "string",
"description": "The name of the environment to approve or reject."
}
}
}
review-dismissed-issue-event
{
"type": "object",
"title": "Review Dismissed Issue Event",
"required": [
"dismissed_review",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"dismissed_review": {
"type": "object",
"required": [
"state",
"review_id",
"dismissal_message"
],
"properties": {
"state": {
"type": "string"
},
"review_id": {
"type": "integer"
},
"dismissal_message": {
"type": "string",
"nullable": true
},
"dismissal_commit_id": {
"type": "string"
}
}
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Review Dismissed Issue Event"
}
review-request-removed-issue-event
{
"type": "object",
"title": "Review Request Removed Issue Event",
"required": [
"review_requester",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"requested_team": {
"$ref": "#/components/schemas/team"
},
"review_requester": {
"$ref": "#/components/schemas/simple-user"
},
"requested_reviewer": {
"$ref": "#/components/schemas/simple-user"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Review Request Removed Issue Event"
}
review-requested-issue-event
{
"type": "object",
"title": "Review Requested Issue Event",
"required": [
"review_requester",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"requested_team": {
"$ref": "#/components/schemas/team"
},
"review_requester": {
"$ref": "#/components/schemas/simple-user"
},
"requested_reviewer": {
"$ref": "#/components/schemas/simple-user"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Review Requested Issue Event"
}
root
{
"type": "object",
"required": [
"current_user_url",
"current_user_authorizations_html_url",
"authorizations_url",
"code_search_url",
"commit_search_url",
"emails_url",
"emojis_url",
"events_url",
"feeds_url",
"followers_url",
"following_url",
"gists_url",
"issue_search_url",
"issues_url",
"keys_url",
"label_search_url",
"notifications_url",
"organization_url",
"organization_repositories_url",
"organization_teams_url",
"public_gists_url",
"rate_limit_url",
"repository_url",
"repository_search_url",
"current_user_repositories_url",
"starred_url",
"starred_gists_url",
"user_url",
"user_organizations_url",
"user_repositories_url",
"user_search_url"
],
"properties": {
"hub_url": {
"type": "string",
"format": "uri-template",
"deprecated": true
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"user_url": {
"type": "string",
"format": "uri-template"
},
"feeds_url": {
"type": "string",
"format": "uri-template"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"emails_url": {
"type": "string",
"format": "uri-template"
},
"emojis_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri-template"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"rate_limit_url": {
"type": "string",
"format": "uri-template"
},
"repository_url": {
"type": "string",
"format": "uri-template"
},
"code_search_url": {
"type": "string",
"format": "uri-template"
},
"user_search_url": {
"type": "string",
"format": "uri-template"
},
"current_user_url": {
"type": "string",
"format": "uri-template"
},
"issue_search_url": {
"type": "string",
"format": "uri-template"
},
"label_search_url": {
"type": "string",
"format": "uri-template"
},
"organization_url": {
"type": "string",
"format": "uri-template"
},
"public_gists_url": {
"type": "string",
"format": "uri-template"
},
"topic_search_url": {
"type": "string",
"format": "uri-template"
},
"commit_search_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"starred_gists_url": {
"type": "string",
"format": "uri-template"
},
"authorizations_url": {
"type": "string",
"format": "uri-template"
},
"repository_search_url": {
"type": "string",
"format": "uri-template"
},
"user_repositories_url": {
"type": "string",
"format": "uri-template"
},
"organization_teams_url": {
"type": "string",
"format": "uri-template"
},
"user_organizations_url": {
"type": "string",
"format": "uri-template"
},
"current_user_repositories_url": {
"type": "string",
"format": "uri-template"
},
"organization_repositories_url": {
"type": "string",
"format": "uri-template"
},
"current_user_authorizations_html_url": {
"type": "string",
"format": "uri-template"
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/authorizations_url"
},
{
"op": "remove",
"path": "/required/2"
}
],
"version": "2026-03-10",
"changeset": "remove_authorizations_url_from_api_root"
},
{
"patch": {
"properties": {
"hub_url": null
}
},
"version": "2026-03-10",
"changeset": "remove_hub_url_from_api_root"
}
]
}
rule-suite
{
"type": "object",
"title": "Rule Suite",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the rule insight."
},
"ref": {
"type": "string",
"description": "The ref name that the evaluation ran on."
},
"result": {
"enum": [
"pass",
"fail",
"bypass"
],
"type": "string",
"description": "The result of the rule evaluations for rules with the `active` enforcement status."
},
"actor_id": {
"type": "integer",
"nullable": true,
"description": "The number that identifies the user."
},
"after_sha": {
"type": "string",
"description": "The new commit SHA of the ref."
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z"
},
"actor_name": {
"type": "string",
"nullable": true,
"description": "The handle for the GitHub user account."
},
"before_sha": {
"type": "string",
"description": "The previous commit SHA of the ref."
},
"repository_id": {
"type": "integer",
"description": "The ID of the repository associated with the rule evaluation."
},
"repository_name": {
"type": "string",
"description": "The name of the repository without the `.git` extension."
},
"rule_evaluations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"result": {
"enum": [
"pass",
"fail"
],
"type": "string",
"description": "The result of the evaluation of the individual rule."
},
"details": {
"type": "string",
"nullable": true,
"description": "The detailed failure message for the rule. Null if the rule passed."
},
"rule_type": {
"type": "string",
"description": "The type of rule."
},
"enforcement": {
"enum": [
"active",
"evaluate",
"deleted ruleset"
],
"type": "string",
"description": "The enforcement level of this rule source."
},
"rule_source": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "The ID of the rule source."
},
"name": {
"type": "string",
"nullable": true,
"description": "The name of the rule source."
},
"type": {
"type": "string",
"description": "The type of rule source."
}
}
}
}
},
"description": "Details on the evaluated rules."
},
"evaluation_result": {
"enum": [
"pass",
"fail",
"bypass"
],
"type": "string",
"nullable": true,
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
}
},
"description": "Response"
}
rule-suite-pull-request
{
"type": "object",
"title": "Pull request rule suite metadata",
"properties": {
"pull_request": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the pull request."
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the user."
},
"type": {
"type": "string",
"description": "The type of the user."
},
"login": {
"type": "string",
"description": "The handle for the GitHub user account."
}
},
"description": "The user who created the pull request."
},
"number": {
"type": "integer",
"description": "The number of the pull request."
},
"reviews": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the review."
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the user."
},
"type": {
"type": "string",
"description": "The type of the user."
},
"login": {
"type": "string",
"description": "The handle for the GitHub user account."
}
},
"description": "The user who submitted the review."
},
"state": {
"type": "string",
"description": "The state of the review."
}
}
},
"description": "The reviews associated with the pull request."
}
},
"description": "The pull request associated with the rule evaluation."
}
},
"description": "Metadata for a pull request rule evaluation result."
}
rule-suite-required-status-checks
{
"type": "object",
"title": "Required status checks rule suite metadata",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the status check."
},
"app": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the GitHub App."
},
"name": {
"type": "string",
"description": "The name of the GitHub App."
},
"slug": {
"type": "string",
"description": "The slug of the GitHub App."
}
},
"description": "The GitHub App associated with the status check."
},
"type": {
"type": "string",
"description": "The type of the status check."
},
"state": {
"type": "string",
"description": "The state of the status check."
},
"context": {
"type": "string",
"description": "The context name of the status check."
}
}
},
"description": "The status checks associated with the rule evaluation."
}
},
"description": "Metadata for a required status checks rule evaluation result."
}
rule-suites
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the rule insight."
},
"ref": {
"type": "string",
"description": "The ref name that the evaluation ran on."
},
"result": {
"enum": [
"pass",
"fail",
"bypass"
],
"type": "string",
"description": "The result of the rule evaluations for rules with the `active` enforcement status."
},
"actor_id": {
"type": "integer",
"description": "The number that identifies the user."
},
"after_sha": {
"type": "string",
"description": "The last commit sha in the push evaluation."
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z"
},
"actor_name": {
"type": "string",
"description": "The handle for the GitHub user account."
},
"before_sha": {
"type": "string",
"description": "The first commit sha before the push evaluation."
},
"repository_id": {
"type": "integer",
"description": "The ID of the repository associated with the rule evaluation."
},
"repository_name": {
"type": "string",
"description": "The name of the repository without the `.git` extension."
},
"evaluation_result": {
"enum": [
"pass",
"fail",
"bypass"
],
"type": "string",
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
}
}
},
"title": "Rule Suites",
"description": "Response"
}
ruleset-version
{
"type": "object",
"title": "Ruleset version",
"required": [
"version_id",
"actor",
"updated_at"
],
"properties": {
"actor": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
}
},
"description": "The actor who updated the ruleset"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"version_id": {
"type": "integer",
"description": "The ID of the previous version of the ruleset"
}
},
"description": "The historical version of a ruleset"
}
ruleset-version-with-state
{
"allOf": [
{
"$ref": "#/components/schemas/ruleset-version"
},
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"type": "object",
"description": "The state of the ruleset version"
}
}
}
]
}
runner
{
"type": "object",
"title": "Self hosted runners",
"required": [
"id",
"name",
"os",
"status",
"busy",
"labels"
],
"properties": {
"id": {
"type": "integer",
"example": 5,
"description": "The ID of the runner."
},
"os": {
"type": "string",
"example": "macos",
"description": "The Operating System of the runner."
},
"busy": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "iMac",
"description": "The name of the runner."
},
"labels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/runner-label"
}
},
"status": {
"type": "string",
"example": "online",
"description": "The status of the runner."
},
"ephemeral": {
"type": "boolean"
},
"runner_group_id": {
"type": "integer",
"example": 1,
"description": "The ID of the runner group."
}
},
"description": "A self hosted runner"
}
runner-application
{
"type": "object",
"title": "Runner Application",
"required": [
"os",
"architecture",
"download_url",
"filename"
],
"properties": {
"os": {
"type": "string"
},
"filename": {
"type": "string"
},
"architecture": {
"type": "string"
},
"download_url": {
"type": "string"
},
"sha256_checksum": {
"type": "string"
},
"temp_download_token": {
"type": "string",
"description": "A short lived bearer token used to download the runner, if needed."
}
},
"description": "Runner Application"
}
runner-groups-org
{
"type": "object",
"required": [
"id",
"name",
"visibility",
"default",
"runners_url",
"inherited",
"allows_public_repositories"
],
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"default": {
"type": "boolean"
},
"inherited": {
"type": "boolean"
},
"visibility": {
"type": "string"
},
"runners_url": {
"type": "string"
},
"hosted_runners_url": {
"type": "string"
},
"selected_workflows": {
"type": "array",
"items": {
"type": "string",
"example": "octo-org/octo-repo/.github/workflows/deploy.yaml@main",
"description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required."
},
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`."
},
"restricted_to_workflows": {
"type": "boolean",
"default": false,
"description": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array."
},
"network_configuration_id": {
"type": "string",
"description": "The identifier of a hosted compute network configuration."
},
"selected_repositories_url": {
"type": "string",
"description": "Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`"
},
"allows_public_repositories": {
"type": "boolean"
},
"workflow_restrictions_read_only": {
"type": "boolean",
"default": false,
"description": "If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified."
},
"inherited_allows_public_repositories": {
"type": "boolean"
}
}
}
runner-label
{
"type": "object",
"title": "Self hosted runner label",
"required": [
"name"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the label."
},
"name": {
"type": "string",
"description": "Name of the label."
},
"type": {
"enum": [
"read-only",
"custom"
],
"type": "string",
"description": "The type of label. Read-only labels are applied automatically when the runner is configured."
}
},
"description": "A label for a self hosted runner"
}
scim-error
{
"type": "object",
"title": "Scim Error",
"properties": {
"detail": {
"type": "string",
"nullable": true
},
"status": {
"type": "integer"
},
"message": {
"type": "string",
"nullable": true
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
},
"scimType": {
"type": "string",
"nullable": true
},
"documentation_url": {
"type": "string",
"nullable": true
}
},
"description": "Scim Error"
}
search-result-text-matches
{
"type": "array",
"items": {
"type": "object",
"properties": {
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"indices": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
},
"fragment": {
"type": "string"
},
"property": {
"type": "string"
},
"object_url": {
"type": "string"
},
"object_type": {
"type": "string",
"nullable": true
}
}
},
"title": "Search Result Text Matches"
}
secret-scanning-alert
{
"type": "object",
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"state": {
"$ref": "#/components/schemas/secret-scanning-alert-state"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"secret": {
"type": "string",
"description": "The secret that was detected."
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"provider": {
"type": "string",
"nullable": true,
"description": "The provider of the secret that was detected."
},
"validity": {
"enum": [
"active",
"inactive",
"unknown"
],
"type": "string",
"description": "The token status as of the latest validity check."
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"multi_repo": {
"type": "boolean",
"nullable": true,
"description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
},
"resolution": {
"$ref": "#/components/schemas/secret-scanning-alert-resolution"
},
"updated_at": {
"$ref": "#/components/schemas/nullable-alert-updated-at"
},
"assigned_to": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"resolved_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"resolved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"secret_type": {
"type": "string",
"description": "The type of secret that secret scanning detected."
},
"locations_url": {
"type": "string",
"format": "uri",
"description": "The REST API URL of the code locations for this alert."
},
"provider_slug": {
"type": "string",
"nullable": true,
"description": "The slug identifier for the provider of the secret that was detected. Use this value for filtering by provider with the `providers` or `exclude_providers` parameters."
},
"publicly_leaked": {
"type": "boolean",
"nullable": true,
"description": "Whether the detected secret was publicly leaked."
},
"is_base64_encoded": {
"type": "boolean",
"nullable": true,
"description": "A boolean value representing whether or not alert is base64 encoded"
},
"has_more_locations": {
"type": "boolean",
"description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
},
"resolution_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment to resolve an alert."
},
"closure_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request author."
},
"first_location_detected": {
"$ref": "#/components/schemas/nullable-secret-scanning-first-detected-location"
},
"closure_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypassed": {
"type": "boolean",
"nullable": true,
"description": "Whether push protection was bypassed for the detected secret."
},
"secret_type_display_name": {
"type": "string",
"description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
},
"push_protection_bypassed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"push_protection_bypassed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"closure_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request reviewer."
},
"push_protection_bypass_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when requesting a push protection bypass."
},
"push_protection_bypass_request_html_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The URL to a push protection bypass request."
},
"push_protection_bypass_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypass_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when reviewing a push protection bypass."
}
}
}
secret-scanning-alert-assignee
{
"type": "string",
"nullable": true,
"description": "The username of the user to assign to the alert. Set to `null` to unassign the alert."
}
secret-scanning-alert-resolution
{
"enum": [
"false_positive",
"wont_fix",
"revoked",
"used_in_tests"
],
"type": "string",
"nullable": true,
"description": "**Required when the `state` is `resolved`.** The reason for resolving the alert."
}
secret-scanning-alert-resolution-comment
{
"type": "string",
"nullable": true,
"description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted."
}
secret-scanning-alert-resolution-webhook
{
"enum": [
"false_positive",
"wont_fix",
"revoked",
"used_in_tests",
"pattern_deleted",
"pattern_edited"
],
"type": "string",
"nullable": true,
"description": "The reason for resolving the alert."
}
secret-scanning-alert-state
{
"enum": [
"open",
"resolved"
],
"type": "string",
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`."
}
secret-scanning-alert-webhook
{
"type": "object",
"properties": {
"url": {
"$ref": "#/components/schemas/alert-url"
},
"number": {
"$ref": "#/components/schemas/alert-number"
},
"html_url": {
"$ref": "#/components/schemas/alert-html-url"
},
"provider": {
"type": "string",
"nullable": true,
"description": "The provider of the secret that was detected."
},
"validity": {
"enum": [
"active",
"inactive",
"unknown"
],
"type": "string",
"description": "The token status as of the latest validity check."
},
"created_at": {
"$ref": "#/components/schemas/alert-created-at"
},
"multi_repo": {
"type": "boolean",
"nullable": true,
"description": "Whether the detected secret was found in multiple repositories in the same organization or business."
},
"resolution": {
"$ref": "#/components/schemas/secret-scanning-alert-resolution-webhook"
},
"updated_at": {
"$ref": "#/components/schemas/nullable-alert-updated-at"
},
"assigned_to": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"resolved_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"resolved_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"secret_type": {
"type": "string",
"description": "The type of secret that secret scanning detected."
},
"locations_url": {
"type": "string",
"format": "uri",
"description": "The REST API URL of the code locations for this alert."
},
"provider_slug": {
"type": "string",
"nullable": true,
"description": "The slug identifier for the provider of the secret that was detected."
},
"publicly_leaked": {
"type": "boolean",
"nullable": true,
"description": "Whether the detected secret was publicly leaked."
},
"resolution_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment to resolve an alert."
},
"closure_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request author."
},
"closure_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypassed": {
"type": "boolean",
"nullable": true,
"description": "Whether push protection was bypassed for the detected secret."
},
"secret_type_display_name": {
"type": "string",
"description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
},
"push_protection_bypassed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"push_protection_bypassed_by": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"closure_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment from the closure request reviewer."
},
"push_protection_bypass_request_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when requesting a push protection bypass."
},
"push_protection_bypass_request_html_url": {
"type": "string",
"format": "uri",
"nullable": true,
"description": "The URL to a push protection bypass request."
},
"push_protection_bypass_request_reviewer": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"push_protection_bypass_request_reviewer_comment": {
"type": "string",
"nullable": true,
"description": "An optional comment when reviewing a push protection bypass."
}
}
}
secret-scanning-location
{
"type": "object",
"properties": {
"type": {
"enum": [
"commit",
"wiki_commit",
"issue_title",
"issue_body",
"issue_comment",
"discussion_title",
"discussion_body",
"discussion_comment",
"pull_request_title",
"pull_request_body",
"pull_request_comment",
"pull_request_review",
"pull_request_review_comment"
],
"type": "string",
"example": "commit",
"description": "The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found."
},
"details": {
"oneOf": [
{
"$ref": "#/components/schemas/secret-scanning-location-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-discussion-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-title"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-body"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-comment"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-review"
},
{
"$ref": "#/components/schemas/secret-scanning-location-pull-request-review-comment"
}
]
}
}
}
secret-scanning-location-commit
{
"type": "object",
"required": [
"path",
"start_line",
"end_line",
"start_column",
"end_column",
"blob_sha",
"blob_url",
"commit_sha",
"commit_url"
],
"properties": {
"path": {
"type": "string",
"example": "/example/secrets.txt",
"description": "The file path in the repository"
},
"blob_sha": {
"type": "string",
"example": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"description": "SHA-1 hash ID of the associated blob"
},
"blob_url": {
"type": "string",
"description": "The API URL to get the associated blob resource"
},
"end_line": {
"type": "number",
"description": "Line number at which the secret ends in the file"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/blob/af5626b/example/secrets.txt#L1-L1",
"description": "The GitHub URL to get the associated commit resource."
},
"commit_sha": {
"type": "string",
"example": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"description": "SHA-1 hash ID of the associated commit"
},
"commit_url": {
"type": "string",
"description": "The API URL to get the associated commit resource"
},
"end_column": {
"type": "number",
"description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
},
"start_line": {
"type": "number",
"description": "Line number at which the secret starts in the file"
},
"start_column": {
"type": "number",
"description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
}
},
"description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository."
}
secret-scanning-location-discussion-body
{
"type": "object",
"required": [
"discussion_body_url"
],
"properties": {
"discussion_body_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/community/community/discussions/39082#discussion-4566270",
"description": "The URL to the discussion where the secret was detected."
}
},
"description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion."
}
secret-scanning-location-discussion-comment
{
"type": "object",
"required": [
"discussion_comment_url"
],
"properties": {
"discussion_comment_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/community/community/discussions/39082#discussioncomment-4158232",
"description": "The API URL to get the discussion comment where the secret was detected."
}
},
"description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion."
}
secret-scanning-location-discussion-title
{
"type": "object",
"required": [
"discussion_title_url"
],
"properties": {
"discussion_title_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/community/community/discussions/39082",
"description": "The URL to the discussion where the secret was detected."
}
},
"description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion."
}
secret-scanning-location-issue-body
{
"type": "object",
"required": [
"issue_body_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/issues/1",
"description": "The GitHub URL for the issue where the secret was detected."
},
"issue_body_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
"description": "The API URL to get the issue where the secret was detected."
}
},
"description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue."
}
secret-scanning-location-issue-comment
{
"type": "object",
"required": [
"issue_comment_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/issues/1#issuecomment-1081119451",
"description": "The GitHub URL for the issue comment where the secret was detected."
},
"issue_comment_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451",
"description": "The API URL to get the issue comment where the secret was detected."
}
},
"description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue."
}
secret-scanning-location-issue-title
{
"type": "object",
"required": [
"issue_title_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/issues/1",
"description": "The GitHub URL for the issue where the secret was detected."
},
"issue_title_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
"description": "The API URL to get the issue where the secret was detected."
}
},
"description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue."
}
secret-scanning-location-pull-request-body
{
"type": "object",
"required": [
"pull_request_body_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/2846",
"description": "The GitHub URL for the pull request where the secret was detected."
},
"pull_request_body_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/2846",
"description": "The API URL to get the pull request where the secret was detected."
}
},
"description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request."
}
secret-scanning-location-pull-request-comment
{
"type": "object",
"required": [
"pull_request_comment_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/2846#issuecomment-1081119451",
"description": "The GitHub URL for the pull request comment where the secret was detected."
},
"pull_request_comment_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451",
"description": "The API URL to get the pull request comment where the secret was detected."
}
},
"description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request."
}
secret-scanning-location-pull-request-review
{
"type": "object",
"required": [
"pull_request_review_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/2846#pullrequestreview-80",
"description": "The GitHub URL for the pull request review where the secret was detected."
},
"pull_request_review_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80",
"description": "The API URL to get the pull request review where the secret was detected."
}
},
"description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request."
}
secret-scanning-location-pull-request-review-comment
{
"type": "object",
"required": [
"pull_request_review_comment_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/2846#discussion_r12",
"description": "The GitHub URL for the pull request review comment where the secret was detected."
},
"pull_request_review_comment_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12",
"description": "The API URL to get the pull request review comment where the secret was detected."
}
},
"description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request."
}
secret-scanning-location-pull-request-title
{
"type": "object",
"required": [
"pull_request_title_url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/2846",
"description": "The GitHub URL for the pull request where the secret was detected."
},
"pull_request_title_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/2846",
"description": "The API URL to get the pull request where the secret was detected."
}
},
"description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request."
}
secret-scanning-location-wiki-commit
{
"type": "object",
"required": [
"path",
"start_line",
"end_line",
"start_column",
"end_column",
"blob_sha",
"page_url",
"commit_sha",
"commit_url"
],
"properties": {
"path": {
"type": "string",
"example": "/example/Home.md",
"description": "The file path of the wiki page"
},
"blob_sha": {
"type": "string",
"example": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"description": "SHA-1 hash ID of the associated blob"
},
"end_line": {
"type": "number",
"description": "Line number at which the secret ends in the file"
},
"page_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"description": "The GitHub URL to get the associated wiki page"
},
"commit_sha": {
"type": "string",
"example": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"description": "SHA-1 hash ID of the associated commit"
},
"commit_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"description": "The GitHub URL to get the associated wiki commit"
},
"end_column": {
"type": "number",
"description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
},
"start_line": {
"type": "number",
"description": "Line number at which the secret starts in the file"
},
"start_column": {
"type": "number",
"description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
}
},
"description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki."
}
secret-scanning-pattern-configuration
{
"type": "object",
"title": "Secret scanning pattern configuration",
"properties": {
"pattern_config_version": {
"$ref": "#/components/schemas/secret-scanning-row-version"
},
"custom_pattern_overrides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-pattern-override"
},
"description": "Overrides for custom patterns defined by the organization."
},
"provider_pattern_overrides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-pattern-override"
},
"description": "Overrides for partner patterns."
}
},
"description": "A collection of secret scanning patterns and their settings related to push protection."
}
secret-scanning-pattern-override
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "The slug of the pattern."
},
"setting": {
"enum": [
"not-set",
"disabled",
"enabled"
],
"type": "string",
"description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting."
},
"token_type": {
"type": "string",
"description": "The ID of the pattern."
},
"alert_total": {
"type": "integer",
"description": "The total number of alerts generated by this pattern."
},
"bypass_rate": {
"type": "integer",
"description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
},
"display_name": {
"type": "string",
"description": "The user-friendly name for the pattern."
},
"default_setting": {
"enum": [
"disabled",
"enabled"
],
"type": "string",
"description": "The default push protection setting for this pattern."
},
"false_positives": {
"type": "integer",
"description": "The number of false positive alerts generated by this pattern."
},
"enterprise_setting": {
"enum": [
"not-set",
"disabled",
"enabled"
],
"type": "string",
"nullable": true,
"description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise."
},
"false_positive_rate": {
"type": "integer",
"description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
},
"alert_total_percentage": {
"type": "integer",
"description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
},
"custom_pattern_version": {
"type": "string",
"nullable": true,
"description": "The version of this pattern if it's a custom pattern."
}
}
}
secret-scanning-push-protection-bypass
{
"type": "object",
"properties": {
"reason": {
"$ref": "#/components/schemas/secret-scanning-push-protection-bypass-reason"
},
"expire_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"token_type": {
"type": "string",
"description": "The token type this bypass is for."
}
}
}
secret-scanning-push-protection-bypass-placeholder-id
{
"type": "string",
"description": "The ID of the push protection bypass placeholder. This value is returned on any push protected routes."
}
secret-scanning-push-protection-bypass-reason
{
"enum": [
"false_positive",
"used_in_tests",
"will_fix_later"
],
"type": "string",
"description": "The reason for bypassing push protection."
}
secret-scanning-row-version
{
"type": "string",
"nullable": true,
"description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
}
secret-scanning-scan
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of scan"
},
"status": {
"type": "string",
"description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
},
"started_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the scan was started. Empty if the scan is pending"
},
"completed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the scan was completed. Empty if the scan is running"
}
},
"description": "Information on a single scan performed by secret scanning on the repository"
}
secret-scanning-scan-history
{
"type": "object",
"properties": {
"backfill_scans": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-scan"
}
},
"incremental_scans": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-scan"
}
},
"pattern_update_scans": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-scan"
}
},
"custom_pattern_backfill_scans": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/secret-scanning-scan"
},
{
"type": "object",
"properties": {
"pattern_name": {
"type": "string",
"description": "Name of the custom pattern for custom pattern scans"
},
"pattern_scope": {
"type": "string",
"description": "Level at which the custom pattern is defined, one of \"repository\", \"organization\", or \"enterprise\""
}
}
}
]
}
},
"generic_secrets_backfill_scans": {
"type": "array",
"items": {
"$ref": "#/components/schemas/secret-scanning-scan"
}
}
}
}
security-advisory-credit-types
{
"enum": [
"analyst",
"finder",
"reporter",
"coordinator",
"remediation_developer",
"remediation_reviewer",
"remediation_verifier",
"tool",
"sponsor",
"other"
],
"type": "string",
"description": "The type of credit the user is receiving."
}
security-advisory-ecosystems
{
"enum": [
"rubygems",
"npm",
"pip",
"maven",
"nuget",
"composer",
"go",
"rust",
"erlang",
"actions",
"pub",
"other",
"swift"
],
"type": "string",
"description": "The package's language or package management ecosystem."
}
security-advisory-epss
{
"type": "object",
"nullable": true,
"readOnly": true,
"properties": {
"percentage": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"percentile": {
"type": "number",
"maximum": 100,
"minimum": 0
}
},
"description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss)."
}
security-and-analysis
{
"type": "object",
"nullable": true,
"properties": {
"code_security": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"secret_scanning": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"advanced_security": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
},
"description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n"
},
"dependabot_security_updates": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string",
"description": "The enablement status of Dependabot security updates for the repository."
}
},
"description": "Enable or disable Dependabot security updates for the repository."
},
"secret_scanning_ai_detection": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"secret_scanning_push_protection": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"secret_scanning_delegated_bypass": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"secret_scanning_non_provider_patterns": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
},
"secret_scanning_delegated_bypass_options": {
"type": "object",
"properties": {
"reviewers": {
"type": "array",
"items": {
"type": "object",
"required": [
"reviewer_id",
"reviewer_type"
],
"properties": {
"mode": {
"enum": [
"ALWAYS",
"EXEMPT"
],
"type": "string",
"default": "ALWAYS",
"description": "The bypass mode for the reviewer"
},
"reviewer_id": {
"type": "integer",
"description": "The ID of the team or role selected as a bypass reviewer"
},
"reviewer_type": {
"enum": [
"TEAM",
"ROLE"
],
"type": "string",
"description": "The type of the bypass reviewer"
}
}
},
"description": "The bypass reviewers for secret scanning delegated bypass"
}
}
},
"secret_scanning_delegated_alert_dismissal": {
"type": "object",
"properties": {
"status": {
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
}
}
}
}
selected-actions
{
"type": "object",
"properties": {
"patterns_allowed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories."
},
"verified_allowed": {
"type": "boolean",
"description": "Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators."
},
"github_owned_allowed": {
"type": "boolean",
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
}
}
}
selected-actions-url
{
"type": "string",
"description": "The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`."
}
self-hosted-runners-settings
{
"type": "object",
"required": [
"enabled_repositories"
],
"properties": {
"enabled_repositories": {
"enum": [
"all",
"selected",
"none"
],
"type": "string",
"description": "The policy that controls whether self-hosted runners can be used by repositories in the organization"
},
"selected_repositories_url": {
"type": "string",
"description": "The URL to the endpoint for managing selected repositories for self-hosted runners in the organization"
}
}
}
sha-pinning-required
{
"type": "boolean",
"description": "Whether actions must be pinned to a full-length commit SHA."
}
short-blob
{
"type": "object",
"title": "Short Blob",
"required": [
"url",
"sha"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string"
}
},
"description": "Short Blob"
}
short-branch
{
"type": "object",
"title": "Short Branch",
"required": [
"name",
"commit",
"protected"
],
"properties": {
"name": {
"type": "string"
},
"commit": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"protected": {
"type": "boolean"
},
"protection": {
"$ref": "#/components/schemas/branch-protection"
},
"protection_url": {
"type": "string",
"format": "uri"
}
},
"description": "Short Branch"
}
simple-check-suite
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 5
},
"app": {
"$ref": "#/components/schemas/integration"
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-suites/5"
},
"after": {
"type": "string",
"example": "d6fde92930d4715a2b49857d24b940956b26d2d3",
"nullable": true
},
"before": {
"type": "string",
"example": "146e867f55c26428e5f9fade55a9bbf5e95a7912",
"nullable": true
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"pending",
"waiting"
],
"type": "string",
"example": "completed"
},
"node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU1"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the head commit that is being checked."
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"skipped",
"timed_out",
"action_required",
"stale",
"startup_failure"
],
"type": "string",
"example": "neutral",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"example": "master",
"nullable": true
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-minimal"
}
}
},
"description": "A suite of checks performed on the code of a given code change"
}
simple-classroom
{
"type": "object",
"title": "Simple Classroom",
"required": [
"id",
"name",
"archived",
"url"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the classroom."
},
"url": {
"type": "string",
"example": "https://classroom.github.com/classrooms/1-programming-elixir",
"description": "The url of the classroom on GitHub Classroom."
},
"name": {
"type": "string",
"example": "Programming Elixir",
"description": "The name of the classroom."
},
"archived": {
"type": "boolean",
"example": false,
"description": "Returns whether classroom is archived or not."
}
},
"description": "A GitHub Classroom classroom"
}
simple-classroom-assignment
{
"type": "object",
"title": "Simple Classroom Assignment",
"required": [
"id",
"public_repo",
"title",
"type",
"invite_link",
"invitations_enabled",
"slug",
"students_are_repo_admins",
"feedback_pull_requests_enabled",
"editor",
"accepted",
"submitted",
"passing",
"language",
"deadline",
"classroom"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the repository."
},
"slug": {
"type": "string",
"example": "intro-to-binaries",
"description": "Sluggified name of the assignment."
},
"type": {
"enum": [
"individual",
"group"
],
"type": "string",
"example": "individual",
"description": "Whether it's a Group Assignment or Individual Assignment."
},
"title": {
"type": "string",
"example": "Intro to Binaries",
"description": "Assignment title."
},
"editor": {
"type": "string",
"example": "codespaces",
"description": "The selected editor for the assignment."
},
"passing": {
"type": "integer",
"example": 10,
"description": "The number of students that have passed the assignment."
},
"accepted": {
"type": "integer",
"example": 25,
"description": "The number of students that have accepted the assignment."
},
"deadline": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true,
"description": "The time at which the assignment is due."
},
"language": {
"type": "string",
"example": "elixir",
"description": "The programming language used in the assignment."
},
"classroom": {
"$ref": "#/components/schemas/simple-classroom"
},
"max_teams": {
"type": "integer",
"example": 0,
"nullable": true,
"description": "The maximum allowable teams for the assignment."
},
"submitted": {
"type": "integer",
"example": 10,
"description": "The number of students that have submitted the assignment."
},
"invite_link": {
"type": "string",
"example": "https://classroom.github.com/a/Lx7jiUgx",
"description": "The link that a student can use to accept the assignment."
},
"max_members": {
"type": "integer",
"example": 0,
"nullable": true,
"description": "The maximum allowable members per team."
},
"public_repo": {
"type": "boolean",
"example": true,
"description": "Whether an accepted assignment creates a public repository."
},
"invitations_enabled": {
"type": "boolean",
"example": true,
"description": "Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment."
},
"students_are_repo_admins": {
"type": "boolean",
"example": true,
"description": "Whether students are admins on created repository on accepted assignment."
},
"feedback_pull_requests_enabled": {
"type": "boolean",
"example": true,
"description": "Whether feedback pull request will be created on assignment acceptance."
}
},
"description": "A GitHub Classroom assignment"
}
simple-classroom-organization
{
"type": "object",
"title": "Organization Simple for Classroom",
"required": [
"id",
"login",
"node_id",
"html_url",
"name",
"avatar_url"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"name": {
"type": "string",
"example": "Github - Code thigns happen here",
"nullable": true
},
"login": {
"type": "string",
"example": "github"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/github"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
}
},
"description": "A GitHub organization."
}
simple-classroom-repository
{
"type": "object",
"title": "Simple Classroom Repository",
"required": [
"id",
"full_name",
"html_url",
"node_id",
"private",
"default_branch"
],
"properties": {
"id": {
"type": "integer",
"example": 1296269,
"description": "A unique identifier of the repository."
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"description": "The GraphQL identifier of the repository."
},
"private": {
"type": "boolean",
"description": "Whether the repository is private."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World",
"description": "The URL to view the repository on GitHub.com."
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World",
"description": "The full, globally unique name of the repository."
},
"default_branch": {
"type": "string",
"example": "main",
"description": "The default branch for the repository."
}
},
"description": "A GitHub repository view for Classroom"
}
simple-classroom-user
{
"type": "object",
"title": "Simple Classroom User",
"required": [
"id",
"login",
"avatar_url",
"html_url"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"login": {
"type": "string",
"example": "octocat"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
}
},
"description": "A GitHub user simplified for Classroom."
}
simple-commit
{
"type": "object",
"title": "Simple Commit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"author": {
"type": "object",
"nullable": true,
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the commit's author"
},
"email": {
"type": "string",
"format": "email",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the commit's author"
}
},
"description": "Information about the Git author"
},
"message": {
"type": "string",
"example": "Fix #42",
"description": "Message describing the purpose of the commit"
},
"tree_id": {
"type": "string",
"description": "SHA for the commit's tree"
},
"committer": {
"type": "object",
"nullable": true,
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the commit's committer"
},
"email": {
"type": "string",
"format": "email",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the commit's committer"
}
},
"description": "Information about the Git committer"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
}
},
"description": "A commit."
}
simple-commit-status
{
"type": "object",
"title": "Simple Commit Status",
"required": [
"description",
"id",
"node_id",
"state",
"context",
"target_url",
"avatar_url",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"type": "string"
},
"context": {
"type": "string"
},
"node_id": {
"type": "string"
},
"required": {
"type": "boolean",
"nullable": true
},
"avatar_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"target_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
}
}
}
simple-installation
{
"type": "object",
"title": "Simple Installation",
"required": [
"id",
"node_id"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "The ID of the installation."
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjU4MzIzMQ==",
"description": "The global node ID of the installation."
}
},
"description": "The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee \"[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps).\""
}
simple-repository
{
"type": "object",
"title": "Simple Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1296269,
"description": "A unique identifier of the repository."
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World",
"description": "The URL to get more information about the repository from the GitHub API."
},
"fork": {
"type": "boolean",
"description": "Whether the repository is a fork."
},
"name": {
"type": "string",
"example": "Hello-World",
"description": "The name of the repository."
},
"owner": {
"$ref": "#/components/schemas/simple-user"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"description": "The GraphQL identifier of the repository."
},
"private": {
"type": "boolean",
"description": "Whether the repository is private."
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World",
"description": "The URL to view the repository on GitHub.com."
},
"keys_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
"description": "A template for the API URL to get information about deploy keys on the repository."
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/tags",
"description": "The API URL to get information about tags on the repository."
},
"blobs_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
"description": "A template for the API URL to create or retrieve a raw Git blob in the repository."
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/forks",
"description": "The API URL to list the forks of the repository."
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World",
"description": "The full, globally unique, name of the repository."
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/hooks",
"description": "The API URL to list the hooks on the repository."
},
"pulls_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
"description": "A template for the API URL to get information about pull requests on the repository."
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/teams",
"description": "The API URL to list the teams on the repository."
},
"trees_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
"description": "A template for the API URL to create or retrieve a raw Git tree of the repository."
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/events",
"description": "The API URL to list the events of the repository."
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
"description": "A template for the API URL to get information about issues on the repository."
},
"labels_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
"description": "A template for the API URL to get information about labels of the repository."
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/merges",
"description": "The API URL to merge branches in the repository."
},
"archive_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
"description": "A template for the API URL to download the repository as an archive."
},
"commits_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
"description": "A template for the API URL to get information about commits on the repository."
},
"compare_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
"description": "A template for the API URL to compare two commits or refs."
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true,
"description": "The repository description."
},
"branches_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
"description": "A template for the API URL to get information about branches in the repository."
},
"comments_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
"description": "A template for the API URL to get information about comments on the repository."
},
"contents_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
"description": "A template for the API URL to get the contents of the repository."
},
"git_refs_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
"description": "A template for the API URL to get information about Git refs of the repository."
},
"git_tags_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
"description": "A template for the API URL to get information about Git tags of the repository."
},
"releases_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
"description": "A template for the API URL to get information about releases on the repository."
},
"statuses_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
"description": "A template for the API URL to get information about statuses of a commit."
},
"assignees_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
"description": "A template for the API URL to list the available assignees for issues in the repository."
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/downloads",
"description": "The API URL to list the downloads on the repository."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/languages",
"description": "The API URL to get information about the languages of the repository."
},
"milestones_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
"description": "A template for the API URL to get information about milestones of the repository."
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/stargazers",
"description": "The API URL to list the stargazers on the repository."
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/deployments",
"description": "The API URL to list the deployments of the repository."
},
"git_commits_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
"description": "A template for the API URL to get information about Git commits of the repository."
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/subscribers",
"description": "The API URL to list the subscribers on the repository."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/contributors",
"description": "A template for the API URL to list the contributors to the repository."
},
"issue_events_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
"description": "A template for the API URL to get information about issue events on the repository."
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/subscription",
"description": "The API URL to subscribe to notifications for this repository."
},
"collaborators_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
"description": "A template for the API URL to get information about collaborators of the repository."
},
"issue_comment_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
"description": "A template for the API URL to get information about issue comments on the repository."
},
"notifications_url": {
"type": "string",
"example": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
"description": "A template for the API URL to get information about notifications on the repository."
}
},
"description": "A GitHub repository."
}
simple-user
{
"type": "object",
"title": "Simple User",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:55Z\""
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
}
},
"description": "A GitHub user."
}
snapshot
{
"type": "object",
"title": "snapshot",
"required": [
"detector",
"version",
"ref",
"sha",
"job",
"scanned"
],
"properties": {
"job": {
"type": "object",
"required": [
"id",
"correlator"
],
"properties": {
"id": {
"type": "string",
"example": "5622a2b0-63f6-4732-8c34-a1ab27e102a11",
"description": "The external ID of the job."
},
"html_url": {
"type": "string",
"example": "http://example.com/build",
"description": "The url for the job."
},
"correlator": {
"type": "string",
"example": "yourworkflowname_yourjobname",
"description": "Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation."
}
},
"additionalProperties": false
},
"ref": {
"type": "string",
"example": "refs/heads/main",
"pattern": "^refs/",
"description": "The repository branch that triggered this snapshot."
},
"sha": {
"type": "string",
"example": "ddc951f4b1293222421f2c8df679786153acf689",
"maxLength": 40,
"minLength": 40,
"description": "The commit SHA associated with this dependency snapshot. Maximum length: 40 characters."
},
"scanned": {
"type": "string",
"format": "date-time",
"example": "2020-06-13T14:52:50-05:00",
"description": "The time at which the snapshot was scanned."
},
"version": {
"type": "integer",
"description": "The version of the repository snapshot submission."
},
"detector": {
"type": "object",
"required": [
"name",
"version",
"url"
],
"properties": {
"url": {
"type": "string",
"example": "http://example.com/docker-buildtimer-detector",
"description": "The url of the detector used."
},
"name": {
"type": "string",
"example": "docker buildtime detector",
"description": "The name of the detector used."
},
"version": {
"type": "string",
"example": "1.0.0",
"description": "The version of the detector used."
}
},
"description": "A description of the detector used.",
"additionalProperties": false
},
"metadata": {
"$ref": "#/components/schemas/metadata"
},
"manifests": {
"type": "object",
"description": "A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.",
"additionalProperties": {
"$ref": "#/components/schemas/manifest"
}
}
},
"description": "Create a new snapshot of a repository's dependencies.",
"additionalProperties": false
}
social-account
{
"type": "object",
"title": "Social account",
"required": [
"provider",
"url"
],
"properties": {
"url": {
"type": "string",
"example": "https://www.linkedin.com/company/github/"
},
"provider": {
"type": "string",
"example": "linkedin"
}
},
"description": "Social media account"
}
ssh-signing-key
{
"type": "object",
"title": "SSH Signing Key",
"required": [
"key",
"id",
"title",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"description": "A public SSH key used to sign Git commits"
}
stargazer
{
"type": "object",
"title": "Stargazer",
"required": [
"starred_at",
"user"
],
"properties": {
"user": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"starred_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Stargazer"
}
starred-repository
{
"type": "object",
"title": "Starred Repository",
"required": [
"starred_at",
"repo"
],
"properties": {
"repo": {
"$ref": "#/components/schemas/repository"
},
"starred_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Starred Repository"
}
state-change-issue-event
{
"type": "object",
"title": "State Change Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"state_reason": {
"type": "string",
"nullable": true
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "State Change Issue Event"
}
status
{
"type": "object",
"title": "Status",
"required": [
"url",
"avatar_url",
"id",
"node_id",
"state",
"description",
"target_url",
"context",
"created_at",
"updated_at",
"creator"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"state": {
"type": "string"
},
"context": {
"type": "string"
},
"creator": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"node_id": {
"type": "string"
},
"avatar_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"target_url": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
},
"description": "The status of a commit."
}
status-check-policy
{
"type": "object",
"title": "Status Check Policy",
"required": [
"url",
"contexts_url",
"strict",
"contexts",
"checks"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"context",
"app_id"
],
"properties": {
"app_id": {
"type": "integer",
"nullable": true
},
"context": {
"type": "string",
"example": "continuous-integration/travis-ci"
}
}
}
},
"strict": {
"type": "boolean",
"example": true
},
"contexts": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"continuous-integration/travis-ci"
]
},
"contexts_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contexts"
}
},
"description": "Status Check Policy"
}
sub-issues-summary
{
"type": "object",
"title": "Sub-issues Summary",
"required": [
"total",
"completed",
"percent_completed"
],
"properties": {
"total": {
"type": "integer"
},
"completed": {
"type": "integer"
},
"percent_completed": {
"type": "integer"
}
}
}
tag
{
"type": "object",
"title": "Tag",
"required": [
"name",
"node_id",
"commit",
"zipball_url",
"tarball_url"
],
"properties": {
"name": {
"type": "string",
"example": "v0.1"
},
"commit": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"tarball_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/tarball/v0.1"
},
"zipball_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/zipball/v0.1"
}
},
"description": "Tag"
}
team
{
"type": "object",
"title": "Team",
"required": [
"id",
"node_id",
"url",
"members_url",
"name",
"description",
"permission",
"html_url",
"repositories_url",
"slug",
"parent",
"type"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"parent": {
"$ref": "#/components/schemas/nullable-team-simple"
},
"node_id": {
"type": "string"
},
"privacy": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/rails/teams/core"
},
"permission": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"members_url": {
"type": "string"
},
"permissions": {
"type": "object",
"required": [
"pull",
"triage",
"push",
"maintain",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"type": "string"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
team-full
{
"type": "object",
"title": "Full Team",
"required": [
"id",
"node_id",
"url",
"members_url",
"name",
"description",
"permission",
"html_url",
"repositories_url",
"slug",
"type",
"created_at",
"updated_at",
"members_count",
"repos_count",
"organization"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1",
"description": "URL for the team"
},
"name": {
"type": "string",
"example": "Developers",
"description": "Name of the team"
},
"slug": {
"type": "string",
"example": "justice-league"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"parent": {
"$ref": "#/components/schemas/nullable-team-simple"
},
"ldap_dn": {
"$ref": "#/components/schemas/ldap-dn"
},
"node_id": {
"type": "string",
"example": "MDQ6VGVhbTE="
},
"privacy": {
"enum": [
"closed",
"secret"
],
"type": "string",
"example": "closed",
"description": "The level of privacy this team should have"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/rails/teams/core"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2017-07-14T16:53:42Z"
},
"permission": {
"type": "string",
"example": "push",
"description": "Permission that the team will have for its repositories"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2017-08-17T12:37:15Z"
},
"description": {
"type": "string",
"example": "A great team.",
"nullable": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/organizations/1/team/1/members{/member}"
},
"repos_count": {
"type": "integer",
"example": 10
},
"organization": {
"$ref": "#/components/schemas/team-organization"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"members_count": {
"type": "integer",
"example": 3
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1/repos"
},
"notification_setting": {
"enum": [
"notifications_enabled",
"notifications_disabled"
],
"type": "string",
"example": "notifications_enabled",
"description": "The notification setting the team has set"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
team-membership
{
"type": "object",
"title": "Team Membership",
"required": [
"role",
"state",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"role": {
"enum": [
"member",
"maintainer"
],
"type": "string",
"default": "member",
"example": "member",
"description": "The role of the user in the team."
},
"state": {
"enum": [
"active",
"pending"
],
"type": "string",
"description": "The state of the user's membership in the team."
}
},
"description": "Team Membership"
}
team-organization
{
"type": "object",
"title": "Team Organization",
"required": [
"login",
"url",
"id",
"node_id",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description",
"html_url",
"has_organization_projects",
"has_repository_projects",
"public_repos",
"public_gists",
"followers",
"following",
"type",
"created_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github"
},
"blog": {
"type": "string",
"format": "uri",
"example": "https://github.com/blog"
},
"name": {
"type": "string",
"example": "github"
},
"plan": {
"type": "object",
"required": [
"name",
"space",
"private_repos"
],
"properties": {
"name": {
"type": "string"
},
"seats": {
"type": "integer"
},
"space": {
"type": "integer"
},
"filled_seats": {
"type": "integer"
},
"private_repos": {
"type": "integer"
}
}
},
"type": {
"type": "string",
"example": "Organization"
},
"email": {
"type": "string",
"format": "email",
"example": "octocat@github.com"
},
"login": {
"type": "string",
"example": "github"
},
"company": {
"type": "string",
"example": "GitHub"
},
"node_id": {
"type": "string",
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"location": {
"type": "string",
"example": "San Francisco"
},
"followers": {
"type": "integer",
"example": 20
},
"following": {
"type": "integer",
"example": 0
},
"hooks_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/hooks"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/repos"
},
"avatar_url": {
"type": "string",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2008-01-14T04:33:35Z"
},
"disk_usage": {
"type": "integer",
"example": 10000,
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/orgs/github/events"
},
"issues_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/issues"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"archived_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"example": "A great organization",
"nullable": true
},
"is_verified": {
"type": "boolean",
"example": true
},
"members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/members{/member}"
},
"public_gists": {
"type": "integer",
"example": 1
},
"public_repos": {
"type": "integer",
"example": 2
},
"billing_email": {
"type": "string",
"format": "email",
"example": "org@example.com",
"nullable": true
},
"collaborators": {
"type": "integer",
"example": 8,
"nullable": true
},
"private_gists": {
"type": "integer",
"example": 81,
"nullable": true
},
"twitter_username": {
"type": "string",
"example": "github",
"nullable": true
},
"public_members_url": {
"type": "string",
"example": "https://api.github.com/orgs/github/public_members{/member}"
},
"owned_private_repos": {
"type": "integer",
"example": 100
},
"total_private_repos": {
"type": "integer",
"example": 100
},
"has_repository_projects": {
"type": "boolean",
"example": true
},
"members_can_create_pages": {
"type": "boolean",
"example": true
},
"has_organization_projects": {
"type": "boolean",
"example": true
},
"web_commit_signoff_required": {
"type": "boolean",
"example": false
},
"default_repository_permission": {
"type": "string",
"nullable": true
},
"two_factor_requirement_enabled": {
"type": "boolean",
"example": true,
"nullable": true
},
"members_can_create_public_pages": {
"type": "boolean",
"example": true
},
"members_can_create_repositories": {
"type": "boolean",
"example": true,
"nullable": true
},
"members_can_create_private_pages": {
"type": "boolean",
"example": true
},
"members_can_fork_private_repositories": {
"type": "boolean",
"example": false,
"nullable": true
},
"members_can_create_public_repositories": {
"type": "boolean",
"example": true
},
"members_can_create_private_repositories": {
"type": "boolean",
"example": true
},
"members_allowed_repository_creation_type": {
"type": "string",
"example": "all"
},
"members_can_create_internal_repositories": {
"type": "boolean",
"example": true
}
},
"description": "Team Organization"
}
team-repository
{
"type": "object",
"title": "Team Repository",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_downloads",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"example": "Team Environment",
"description": "The name of the repository."
},
"size": {
"type": "integer",
"example": 108
},
"forks": {
"type": "integer"
},
"owner": {
"$ref": "#/components/schemas/nullable-simple-user"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"example": "git:github.com/octocat/Hello-World.git"
},
"license": {
"$ref": "#/components/schemas/nullable-license-simple"
},
"node_id": {
"type": "string",
"example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
},
"private": {
"type": "boolean",
"default": false,
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string",
"example": "git@github.com:octocat/Hello-World.git"
},
"svn_url": {
"type": "string",
"format": "uri",
"example": "https://svn.github.com/octocat/Hello-World"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"format": "uri",
"example": "https://github.com",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World"
},
"keys_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/tags"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
},
"clone_url": {
"type": "string",
"example": "https://github.com/octocat/Hello-World.git"
},
"forks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/forks"
},
"full_name": {
"type": "string",
"example": "octocat/Hello-World"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/hooks"
},
"pulls_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
},
"pushed_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:06:43Z",
"nullable": true
},
"role_name": {
"type": "string",
"example": "admin"
},
"teams_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/teams"
},
"trees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:01:12Z",
"nullable": true
},
"events_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/events"
},
"has_issues": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
},
"labels_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
},
"merges_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/merges"
},
"mirror_url": {
"type": "string",
"format": "uri",
"example": "git:git.example.com/octocat/Hello-World",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-01-26T19:14:43Z",
"nullable": true
},
"visibility": {
"type": "string",
"default": "public",
"description": "The repository visibility: public, private, or internal."
},
"archive_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
},
"commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
},
"compare_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
},
"description": {
"type": "string",
"example": "This your first repo!",
"nullable": true
},
"forks_count": {
"type": "integer",
"example": 9
},
"is_template": {
"type": "boolean",
"default": false,
"example": true,
"description": "Whether this repository acts as a template that can be used to generate new repositories."
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"admin",
"pull",
"push"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
},
"comments_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
},
"contents_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
},
"git_refs_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
},
"git_tags_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
},
"has_projects": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether projects are enabled."
},
"releases_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
},
"statuses_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
},
"allow_forking": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow forking this repo"
},
"assignees_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
},
"downloads_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/downloads"
},
"has_downloads": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/languages"
},
"master_branch": {
"type": "string"
},
"network_count": {
"type": "integer"
},
"default_branch": {
"type": "string",
"example": "master",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
},
"stargazers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/stargazers"
},
"watchers_count": {
"type": "integer",
"example": 80
},
"deployments_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/deployments"
},
"git_commits_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
},
"subscribers_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscribers"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to allow Auto-merge to be used on pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/contributors"
},
"issue_events_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
},
"stargazers_count": {
"type": "integer",
"example": 80
},
"subscription_url": {
"type": "string",
"format": "uri",
"example": "http://api.github.com/repos/octocat/Hello-World/subscription"
},
"temp_clone_token": {
"type": "string"
},
"collaborators_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
},
"issue_comment_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
},
"notifications_url": {
"type": "string",
"example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
},
"open_issues_count": {
"type": "integer",
"example": 0
},
"subscribers_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"example": true,
"description": "Whether to allow squash merges for pull requests."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether to require contributors to sign off on web-based commits"
}
},
"description": "A team's access to a repository.",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"node_id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url",
"clone_url",
"default_branch",
"forks",
"forks_count",
"git_url",
"has_issues",
"has_projects",
"has_wiki",
"has_pages",
"homepage",
"language",
"archived",
"disabled",
"mirror_url",
"open_issues",
"open_issues_count",
"license",
"pushed_at",
"size",
"ssh_url",
"stargazers_count",
"svn_url",
"watchers",
"watchers_count",
"created_at",
"updated_at"
],
"properties": {
"has_downloads": null
}
},
"version": "2026-03-10",
"changeset": "remove_has_downloads"
}
]
}
team-role-assignment
{
"type": "object",
"title": "A Role Assignment for a Team",
"required": [
"id",
"node_id",
"url",
"members_url",
"name",
"description",
"permission",
"html_url",
"repositories_url",
"slug",
"type",
"parent"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"parent": {
"$ref": "#/components/schemas/nullable-team-simple"
},
"node_id": {
"type": "string"
},
"privacy": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/rails/teams/core"
},
"assignment": {
"enum": [
"direct",
"indirect",
"mixed"
],
"type": "string",
"example": "direct",
"description": "Determines if the team has a direct, indirect, or mixed relationship to a role"
},
"permission": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"members_url": {
"type": "string"
},
"permissions": {
"type": "object",
"required": [
"pull",
"triage",
"push",
"maintain",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"type": "string"
}
},
"description": "The Relationship a Team has with a role."
}
team-simple
{
"type": "object",
"title": "Team Simple",
"required": [
"id",
"node_id",
"url",
"members_url",
"name",
"description",
"permission",
"html_url",
"repositories_url",
"slug",
"type"
],
"properties": {
"id": {
"type": "integer",
"example": 1,
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1",
"description": "URL for the team"
},
"name": {
"type": "string",
"example": "Justice League",
"description": "Name of the team"
},
"slug": {
"type": "string",
"example": "justice-league"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"ldap_dn": {
"type": "string",
"example": "uid=example,ou=users,dc=github,dc=com",
"description": "Distinguished Name (DN) that team maps to within LDAP environment"
},
"node_id": {
"type": "string",
"example": "MDQ6VGVhbTE="
},
"privacy": {
"type": "string",
"example": "closed",
"description": "The level of privacy this team should have"
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/orgs/rails/teams/core"
},
"permission": {
"type": "string",
"example": "admin",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"example": "A great team.",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"example": "https://api.github.com/organizations/1/team/1/members{/member}"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/organizations/1/team/1/repos"
},
"notification_setting": {
"type": "string",
"example": "notifications_enabled",
"description": "The notification setting the team has set"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
thread
{
"type": "object",
"title": "Thread",
"required": [
"id",
"unread",
"reason",
"updated_at",
"last_read_at",
"subject",
"repository",
"url",
"subscription_url"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"reason": {
"type": "string"
},
"unread": {
"type": "boolean"
},
"subject": {
"type": "object",
"required": [
"title",
"url",
"latest_comment_url",
"type"
],
"properties": {
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"latest_comment_url": {
"type": "string"
}
}
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"updated_at": {
"type": "string"
},
"last_read_at": {
"type": "string",
"nullable": true
},
"subscription_url": {
"type": "string",
"example": "https://api.github.com/notifications/threads/2/subscription"
}
},
"description": "Thread"
}
thread-subscription
{
"type": "object",
"title": "Thread Subscription",
"required": [
"created_at",
"ignored",
"reason",
"url",
"subscribed"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/notifications/threads/1/subscription"
},
"reason": {
"type": "string",
"nullable": true
},
"ignored": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-10-06T21:34:12Z",
"nullable": true
},
"subscribed": {
"type": "boolean",
"example": true
},
"thread_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/notifications/threads/1"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/1"
}
},
"description": "Thread Subscription"
}
timeline-assigned-issue-event
{
"type": "object",
"title": "Timeline Assigned Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Timeline Assigned Issue Event"
}
timeline-comment-event
{
"type": "object",
"title": "Timeline Comment Event",
"required": [
"event",
"actor",
"id",
"node_id",
"html_url",
"issue_url",
"author_association",
"user",
"url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the issue comment"
},
"pin": {
"$ref": "#/components/schemas/nullable-pinned-issue-comment"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repositories/42/issues/comments/1",
"description": "URL for the issue comment"
},
"body": {
"type": "string",
"example": "What version of Safari were you using when you observed this bug?",
"description": "Contents of the issue comment"
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"reactions": {
"$ref": "#/components/schemas/reaction-rollup"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2011-04-14T16:00:49Z"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Timeline Comment Event"
}
timeline-commit-commented-event
{
"type": "object",
"title": "Timeline Commit Commented Event",
"properties": {
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"comments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/commit-comment"
}
},
"commit_id": {
"type": "string"
}
},
"description": "Timeline Commit Commented Event"
}
timeline-committed-event
{
"type": "object",
"title": "Timeline Committed Event",
"required": [
"sha",
"node_id",
"url",
"html_url",
"author",
"committer",
"tree",
"message",
"parents",
"verification"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"author": {
"type": "object",
"required": [
"email",
"name",
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
},
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the git user"
},
"email": {
"type": "string",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the user"
}
},
"description": "Identifying information for the git-user"
},
"message": {
"type": "string",
"example": "Fix #42",
"description": "Message describing the purpose of the commit"
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"required": [
"sha",
"url",
"html_url"
],
"properties": {
"sha": {
"type": "string",
"example": "7638417db6d59f3c431d3e1f261cc637155684cd",
"description": "SHA for the commit"
},
"url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
}
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"committer": {
"type": "object",
"required": [
"email",
"name",
"date"
],
"properties": {
"date": {
"type": "string",
"format": "date-time",
"example": "2014-08-09T08:02:04+12:00",
"description": "Timestamp of the commit"
},
"name": {
"type": "string",
"example": "Monalisa Octocat",
"description": "Name of the git user"
},
"email": {
"type": "string",
"example": "monalisa.octocat@example.com",
"description": "Git email address of the user"
}
},
"description": "Identifying information for the git-user"
},
"verification": {
"type": "object",
"required": [
"verified",
"reason",
"signature",
"payload",
"verified_at"
],
"properties": {
"reason": {
"type": "string"
},
"payload": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"signature": {
"type": "string",
"nullable": true
},
"verified_at": {
"type": "string",
"nullable": true
}
}
}
},
"description": "Timeline Committed Event"
}
timeline-cross-referenced-event
{
"type": "object",
"title": "Timeline Cross Referenced Event",
"required": [
"event",
"created_at",
"updated_at",
"source"
],
"properties": {
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"source": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"issue": {
"$ref": "#/components/schemas/issue"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"description": "Timeline Cross Referenced Event"
}
timeline-issue-events
{
"type": "object",
"anyOf": [
{
"$ref": "#/components/schemas/labeled-issue-event"
},
{
"$ref": "#/components/schemas/unlabeled-issue-event"
},
{
"$ref": "#/components/schemas/milestoned-issue-event"
},
{
"$ref": "#/components/schemas/demilestoned-issue-event"
},
{
"$ref": "#/components/schemas/renamed-issue-event"
},
{
"$ref": "#/components/schemas/review-requested-issue-event"
},
{
"$ref": "#/components/schemas/review-request-removed-issue-event"
},
{
"$ref": "#/components/schemas/review-dismissed-issue-event"
},
{
"$ref": "#/components/schemas/locked-issue-event"
},
{
"$ref": "#/components/schemas/added-to-project-issue-event"
},
{
"$ref": "#/components/schemas/moved-column-in-project-issue-event"
},
{
"$ref": "#/components/schemas/removed-from-project-issue-event"
},
{
"$ref": "#/components/schemas/converted-note-to-issue-issue-event"
},
{
"$ref": "#/components/schemas/timeline-comment-event"
},
{
"$ref": "#/components/schemas/timeline-cross-referenced-event"
},
{
"$ref": "#/components/schemas/timeline-committed-event"
},
{
"$ref": "#/components/schemas/timeline-reviewed-event"
},
{
"$ref": "#/components/schemas/timeline-line-commented-event"
},
{
"$ref": "#/components/schemas/timeline-commit-commented-event"
},
{
"$ref": "#/components/schemas/timeline-assigned-issue-event"
},
{
"$ref": "#/components/schemas/timeline-unassigned-issue-event"
},
{
"$ref": "#/components/schemas/state-change-issue-event"
}
],
"title": "Timeline Event",
"description": "Timeline Event"
}
timeline-line-commented-event
{
"type": "object",
"title": "Timeline Line Commented Event",
"properties": {
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"comments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-review-comment"
}
}
},
"description": "Timeline Line Commented Event"
}
timeline-reviewed-event
{
"type": "object",
"title": "Timeline Reviewed Event",
"required": [
"event",
"id",
"node_id",
"user",
"body",
"state",
"commit_id",
"html_url",
"pull_request_url",
"_links",
"author_association"
],
"properties": {
"id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the review"
},
"body": {
"type": "string",
"example": "This looks great.",
"nullable": true,
"description": "The text of the review."
},
"user": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"state": {
"type": "string",
"example": "CHANGES_REQUESTED"
},
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
},
"pull_request": {
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"type": "string"
}
}
}
}
},
"node_id": {
"type": "string",
"example": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
},
"body_html": {
"type": "string"
},
"body_text": {
"type": "string"
},
"commit_id": {
"type": "string",
"example": "54bb654c9e6025347f57900a4a5c2313a96b8035",
"description": "A commit SHA for the review."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"submitted_at": {
"type": "string",
"format": "date-time"
},
"pull_request_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
},
"author_association": {
"$ref": "#/components/schemas/author-association"
}
},
"description": "Timeline Reviewed Event"
}
timeline-unassigned-issue-event
{
"type": "object",
"title": "Timeline Unassigned Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Timeline Unassigned Issue Event"
}
topic
{
"type": "object",
"title": "Topic",
"required": [
"names"
],
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "A topic aggregates entities that are related to a subject."
}
topic-search-result-item
{
"type": "object",
"title": "Topic Search Result Item",
"required": [
"name",
"display_name",
"short_description",
"description",
"created_by",
"released",
"created_at",
"updated_at",
"featured",
"curated",
"score"
],
"properties": {
"name": {
"type": "string"
},
"score": {
"type": "number"
},
"aliases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"topic_relation": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"topic_id": {
"type": "integer"
},
"relation_type": {
"type": "string"
}
}
}
}
},
"nullable": true
},
"curated": {
"type": "boolean"
},
"related": {
"type": "array",
"items": {
"type": "object",
"properties": {
"topic_relation": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"topic_id": {
"type": "integer"
},
"relation_type": {
"type": "string"
}
}
}
}
},
"nullable": true
},
"featured": {
"type": "boolean"
},
"logo_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"released": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"created_by": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"display_name": {
"type": "string",
"nullable": true
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
},
"repository_count": {
"type": "integer",
"nullable": true
},
"short_description": {
"type": "string",
"nullable": true
}
},
"description": "Topic Search Result Item"
}
traffic
{
"type": "object",
"title": "Traffic",
"required": [
"timestamp",
"uniques",
"count"
],
"properties": {
"count": {
"type": "integer"
},
"uniques": {
"type": "integer"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}
unassigned-issue-event
{
"type": "object",
"title": "Unassigned Issue Event",
"required": [
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app",
"assignee",
"assigner"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"node_id": {
"type": "string"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"assigner": {
"$ref": "#/components/schemas/simple-user"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Unassigned Issue Event"
}
unlabeled-issue-event
{
"type": "object",
"title": "Unlabeled Issue Event",
"required": [
"label",
"id",
"node_id",
"url",
"actor",
"event",
"commit_id",
"commit_url",
"created_at",
"performed_via_github_app"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string"
},
"label": {
"type": "object",
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string"
},
"color": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"commit_id": {
"type": "string",
"nullable": true
},
"commit_url": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "Unlabeled Issue Event"
}
user-marketplace-purchase
{
"type": "object",
"title": "User Marketplace Purchase",
"required": [
"billing_cycle",
"next_billing_date",
"unit_count",
"updated_at",
"on_free_trial",
"free_trial_ends_on",
"account",
"plan"
],
"properties": {
"plan": {
"$ref": "#/components/schemas/marketplace-listing-plan"
},
"account": {
"$ref": "#/components/schemas/marketplace-account"
},
"unit_count": {
"type": "integer",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2017-11-02T01:12:12Z",
"nullable": true
},
"billing_cycle": {
"type": "string",
"example": "monthly"
},
"on_free_trial": {
"type": "boolean",
"example": true
},
"next_billing_date": {
"type": "string",
"format": "date-time",
"example": "2017-11-11T00:00:00Z",
"nullable": true
},
"free_trial_ends_on": {
"type": "string",
"format": "date-time",
"example": "2017-11-11T00:00:00Z",
"nullable": true
}
},
"description": "User Marketplace Purchase"
}
user-role-assignment
{
"type": "object",
"title": "A Role Assignment for a User",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url"
],
"properties": {
"id": {
"type": "integer",
"example": 1
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat"
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"example": "User"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"example": "octocat"
},
"node_id": {
"type": "string",
"example": "MDQ6VXNlcjE="
},
"html_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/octocat"
},
"gists_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
},
"repos_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/repos"
},
"assignment": {
"enum": [
"direct",
"indirect",
"mixed"
],
"type": "string",
"example": "direct",
"description": "Determines if the user has a direct, indirect, or mixed relationship to a role"
},
"avatar_url": {
"type": "string",
"format": "uri",
"example": "https://github.com/images/error/octocat_happy.gif"
},
"events_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/events{/privacy}"
},
"site_admin": {
"type": "boolean"
},
"starred_at": {
"type": "string",
"example": "\"2020-07-09T00:17:55Z\""
},
"gravatar_id": {
"type": "string",
"example": "41d064eb2195891e12d0413f63227ea7",
"nullable": true
},
"starred_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
},
"followers_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/followers"
},
"following_url": {
"type": "string",
"example": "https://api.github.com/users/octocat/following{/other_user}"
},
"inherited_from": {
"type": "array",
"items": {
"$ref": "#/components/schemas/team-simple"
},
"description": "Team the user has gotten the role through"
},
"user_view_type": {
"type": "string",
"example": "public"
},
"organizations_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/orgs"
},
"subscriptions_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/subscriptions"
},
"received_events_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/users/octocat/received_events"
}
},
"description": "The Relationship a User has with a role."
}
user-search-result-item
{
"type": "object",
"title": "User Search Result Item",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"node_id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url",
"score"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"bio": {
"type": "string",
"nullable": true
},
"url": {
"type": "string",
"format": "uri"
},
"blog": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"type": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"login": {
"type": "string"
},
"score": {
"type": "number"
},
"company": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"hireable": {
"type": "boolean",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"location": {
"type": "string",
"nullable": true
},
"followers": {
"type": "integer"
},
"following": {
"type": "integer"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"gravatar_id": {
"type": "string",
"nullable": true
},
"starred_url": {
"type": "string"
},
"public_gists": {
"type": "integer"
},
"public_repos": {
"type": "integer"
},
"suspended_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"text_matches": {
"$ref": "#/components/schemas/search-result-text-matches"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
},
"description": "User Search Result Item"
}
validation-error
{
"type": "object",
"title": "Validation Error",
"required": [
"message",
"documentation_url"
],
"properties": {
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
},
"field": {
"type": "string"
},
"index": {
"type": "integer"
},
"value": {
"oneOf": [
{
"type": "string",
"nullable": true
},
{
"type": "integer",
"nullable": true
},
{
"type": "array",
"items": {
"type": "string"
},
"nullable": true
}
]
},
"message": {
"type": "string"
},
"resource": {
"type": "string"
}
}
}
},
"message": {
"type": "string"
},
"documentation_url": {
"type": "string"
}
},
"description": "Validation Error"
}
validation-error-simple
{
"type": "object",
"title": "Validation Error Simple",
"required": [
"message",
"documentation_url"
],
"properties": {
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"message": {
"type": "string"
},
"documentation_url": {
"type": "string"
}
},
"description": "Validation Error Simple"
}
verification
{
"type": "object",
"title": "Verification",
"required": [
"verified",
"reason",
"payload",
"signature",
"verified_at"
],
"properties": {
"reason": {
"type": "string"
},
"payload": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"signature": {
"type": "string",
"nullable": true
},
"verified_at": {
"type": "string",
"nullable": true
}
}
}
view-traffic
{
"type": "object",
"title": "View Traffic",
"required": [
"uniques",
"count",
"views"
],
"properties": {
"count": {
"type": "integer",
"example": 14850
},
"views": {
"type": "array",
"items": {
"$ref": "#/components/schemas/traffic"
}
},
"uniques": {
"type": "integer",
"example": 3782
}
},
"description": "View Traffic"
}
vulnerability
{
"type": "object",
"required": [
"package",
"vulnerable_version_range",
"first_patched_version",
"vulnerable_functions"
],
"properties": {
"package": {
"type": "object",
"nullable": true,
"required": [
"ecosystem",
"name"
],
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The unique package name within its ecosystem."
},
"ecosystem": {
"$ref": "#/components/schemas/security-advisory-ecosystems"
}
},
"description": "The name of the package affected by the vulnerability."
},
"vulnerable_functions": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"readOnly": true,
"description": "The functions in the package that are affected by the vulnerability."
},
"first_patched_version": {
"type": "string",
"nullable": true,
"description": "The package version that resolves the vulnerability."
},
"vulnerable_version_range": {
"type": "string",
"nullable": true,
"description": "The range of the package versions affected by the vulnerability."
}
},
"description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory."
}
wait-timer
{
"type": "integer",
"example": 30,
"description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
}
watch-event
{
"type": "object",
"title": "WatchEvent",
"required": [
"action"
],
"properties": {
"action": {
"type": "string"
}
}
}
webhook-branch-protection-configuration-disabled
{
"type": "object",
"title": "branch protection configuration disabled event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"disabled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-branch-protection-configuration-enabled
{
"type": "object",
"title": "branch protection configuration enabled event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"enabled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-branch-protection-rule-created
{
"type": "object",
"title": "branch protection rule created event",
"required": [
"action",
"rule",
"repository",
"sender"
],
"properties": {
"rule": {
"$ref": "#/components/schemas/webhooks_rule"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-branch-protection-rule-deleted
{
"type": "object",
"title": "branch protection rule deleted event",
"required": [
"action",
"rule",
"repository",
"sender"
],
"properties": {
"rule": {
"$ref": "#/components/schemas/webhooks_rule"
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-branch-protection-rule-edited
{
"type": "object",
"title": "branch protection rule edited event",
"required": [
"action",
"rule",
"repository",
"sender"
],
"properties": {
"rule": {
"$ref": "#/components/schemas/webhooks_rule"
},
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"admin_enforced": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "boolean",
"nullable": true
}
}
},
"lock_allows_fork_sync": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "boolean",
"nullable": true
}
}
},
"authorized_actor_names": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"authorized_actors_only": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "boolean",
"nullable": true
}
}
},
"required_status_checks": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"require_last_push_approval": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "boolean",
"nullable": true
}
}
},
"lock_branch_enforcement_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
}
}
},
"authorized_dismissal_actors_only": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "boolean",
"nullable": true
}
}
},
"pull_request_reviews_enforcement_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
}
}
},
"required_status_checks_enforcement_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
}
}
},
"linear_history_requirement_enforcement_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
}
}
}
},
"description": "If the action was `edited`, the changes to the rule."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-run-completed
{
"type": "object",
"title": "Check Run Completed Event",
"required": [
"check_run",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"completed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"check_run": {
"$ref": "#/components/schemas/check-run-with-simple-check-suite"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-run-completed-form-encoded
{
"type": "object",
"title": "Check Run Completed Event",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object."
}
},
"description": "The check_run.completed webhook encoded with URL encoding"
}
webhook-check-run-created
{
"type": "object",
"title": "Check Run Created Event",
"required": [
"check_run",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"check_run": {
"$ref": "#/components/schemas/check-run-with-simple-check-suite"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-run-created-form-encoded
{
"type": "object",
"title": "Check Run Created Event",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object."
}
},
"description": "The check_run.created webhook encoded with URL encoding"
}
webhook-check-run-requested-action
{
"type": "object",
"title": "Check Run Requested Action Event",
"required": [
"action",
"check_run",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"requested_action"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"check_run": {
"$ref": "#/components/schemas/check-run-with-simple-check-suite"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"requested_action": {
"type": "object",
"properties": {
"identifier": {
"type": "string",
"description": "The integrator reference of the action requested by the user."
}
},
"description": "The action requested by the user."
}
}
}
webhook-check-run-requested-action-form-encoded
{
"type": "object",
"title": "Check Run Requested Action Event",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object."
}
},
"description": "The check_run.requested_action webhook encoded with URL encoding"
}
webhook-check-run-rerequested
{
"type": "object",
"title": "Check Run Re-Requested Event",
"required": [
"check_run",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"rerequested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"check_run": {
"$ref": "#/components/schemas/check-run-with-simple-check-suite"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-run-rerequested-form-encoded
{
"type": "object",
"title": "Check Run Re-Requested Event",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object."
}
},
"description": "The check_run.rerequested webhook encoded with URL encoding"
}
webhook-check-suite-completed
{
"type": "object",
"title": "check_suite completed event",
"required": [
"action",
"check_suite",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"completed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"check_suite": {
"type": "object",
"required": [
"id",
"node_id",
"head_branch",
"head_sha",
"status",
"conclusion",
"url",
"before",
"after",
"pull_requests",
"app",
"created_at",
"updated_at",
"latest_check_runs_count",
"check_runs_url",
"head_commit"
],
"properties": {
"id": {
"type": "integer"
},
"app": {
"type": "object",
"title": "App",
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"merge_group",
"pull_request_review_thread",
"workflow_job",
"merge_queue_entry",
"security_and_analysis",
"projects_v2_item",
"secret_scanning_alert_location"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"client_id": {
"type": "string",
"nullable": true,
"description": "The client ID of the GitHub app"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the check suite API resource."
},
"after": {
"type": "string",
"nullable": true
},
"before": {
"type": "string",
"nullable": true
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
null,
"pending"
],
"type": "string",
"nullable": true,
"description": "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string",
"description": "The SHA of the head commit that is being checked."
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null,
"skipped",
"startup_failure"
],
"type": "string",
"nullable": true,
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The head branch name the changes are on."
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
},
"description": "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."
},
"rerequestable": {
"type": "boolean"
},
"check_runs_url": {
"type": "string",
"format": "uri"
},
"runs_rerequestable": {
"type": "boolean"
},
"latest_check_runs_count": {
"type": "integer"
}
},
"description": "The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-suite-requested
{
"type": "object",
"title": "check_suite requested event",
"required": [
"action",
"check_suite",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"requested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"check_suite": {
"type": "object",
"required": [
"id",
"node_id",
"head_branch",
"head_sha",
"status",
"conclusion",
"url",
"before",
"after",
"pull_requests",
"app",
"created_at",
"updated_at",
"latest_check_runs_count",
"check_runs_url",
"head_commit"
],
"properties": {
"id": {
"type": "integer"
},
"app": {
"type": "object",
"title": "App",
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"pull_request_review_thread",
"workflow_job",
"merge_queue_entry",
"security_and_analysis",
"secret_scanning_alert_location",
"projects_v2_item",
"merge_group",
"repository_import"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"client_id": {
"type": "string",
"nullable": true,
"description": "Client ID of the GitHub app"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"models": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"attestations": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"merge_queues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"copilot_requests": {
"enum": [
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"artifact_metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the check suite API resource."
},
"after": {
"type": "string",
"nullable": true
},
"before": {
"type": "string",
"nullable": true
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
null
],
"type": "string",
"nullable": true,
"description": "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string",
"description": "The SHA of the head commit that is being checked."
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null,
"skipped"
],
"type": "string",
"nullable": true,
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The head branch name the changes are on."
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
},
"description": "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."
},
"rerequestable": {
"type": "boolean"
},
"check_runs_url": {
"type": "string",
"format": "uri"
},
"runs_rerequestable": {
"type": "boolean"
},
"latest_check_runs_count": {
"type": "integer"
}
},
"description": "The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-check-suite-rerequested
{
"type": "object",
"title": "check_suite rerequested event",
"required": [
"action",
"check_suite",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"rerequested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"check_suite": {
"type": "object",
"required": [
"id",
"node_id",
"head_branch",
"head_sha",
"status",
"conclusion",
"url",
"before",
"after",
"pull_requests",
"app",
"created_at",
"updated_at",
"latest_check_runs_count",
"check_runs_url",
"head_commit"
],
"properties": {
"id": {
"type": "integer"
},
"app": {
"type": "object",
"title": "App",
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"pull_request_review_thread",
"merge_queue_entry",
"workflow_job"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"client_id": {
"type": "string",
"nullable": true,
"description": "The Client ID for the GitHub app"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"models": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"attestations": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"merge_queues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"copilot_requests": {
"enum": [
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"artifact_metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the check suite API resource."
},
"after": {
"type": "string",
"nullable": true
},
"before": {
"type": "string",
"nullable": true
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
null
],
"type": "string",
"nullable": true,
"description": "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string",
"description": "The SHA of the head commit that is being checked."
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null
],
"type": "string",
"nullable": true,
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The head branch name the changes are on."
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
},
"description": "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."
},
"rerequestable": {
"type": "boolean"
},
"check_runs_url": {
"type": "string",
"format": "uri"
},
"runs_rerequestable": {
"type": "boolean"
},
"latest_check_runs_count": {
"type": "integer"
}
},
"description": "The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-appeared-in-branch
{
"type": "object",
"title": "code_scanning_alert appeared_in_branch event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_code_scanning_ref"
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"dismissed_reason": {
"enum": [
"false positive",
"won't fix",
"used in tests",
null
],
"type": "string",
"nullable": true,
"description": "The reason for dismissing or closing the alert."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"appeared_in_branch"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"$ref": "#/components/schemas/webhooks_code_scanning_commit_oid"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-closed-by-user
{
"type": "object",
"title": "code_scanning_alert closed_by_user event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_code_scanning_ref"
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string"
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"guid": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"dismissed_reason": {
"enum": [
"false positive",
"won't fix",
"used in tests",
null
],
"type": "string",
"nullable": true,
"description": "The reason for dismissing or closing the alert."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"dismissal_approved_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"closed_by_user"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"$ref": "#/components/schemas/webhooks_code_scanning_commit_oid"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-created
{
"type": "object",
"title": "code_scanning_alert created event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_code_scanning_ref"
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string"
}
}
},
"tool": {
"type": "object",
"nullable": true,
"required": [
"name",
"version"
],
"properties": {
"guid": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"open",
"dismissed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"updated_at": {
"type": "string",
"nullable": true
},
"dismissed_at": {
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"nullable": true
},
"instances_url": {
"type": "string"
},
"dismissed_reason": {
"nullable": true,
"description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"dismissal_approved_by": {
"nullable": true
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"$ref": "#/components/schemas/webhooks_code_scanning_commit_oid"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-fixed
{
"type": "object",
"title": "code_scanning_alert fixed event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_code_scanning_ref"
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string"
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"guid": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"instances_url": {
"type": "string",
"format": "uri"
},
"dismissed_reason": {
"enum": [
"false positive",
"won't fix",
"used in tests",
null
],
"type": "string",
"nullable": true,
"description": "The reason for dismissing or closing the alert."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"fixed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"$ref": "#/components/schemas/webhooks_code_scanning_commit_oid"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-reopened
{
"type": "object",
"title": "code_scanning_alert reopened event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"type": "string",
"nullable": true,
"description": "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"help": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"help_uri": {
"type": "string",
"nullable": true,
"description": "A link to the documentation for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
},
"full_description": {
"type": "string"
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"guid": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"updated_at": {
"type": "string",
"nullable": true
},
"dismissed_at": {
"type": "string",
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"type": "object",
"nullable": true
},
"instances_url": {
"type": "string"
},
"dismissed_reason": {
"type": "string",
"nullable": true,
"description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"dismissal_approved_by": {
"nullable": true
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"type": "string",
"nullable": true,
"description": "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-reopened-by-user
{
"type": "object",
"title": "code_scanning_alert reopened_by_user event",
"required": [
"action",
"alert",
"ref",
"commit_oid",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_code_scanning_ref"
},
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"open",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"dismissed_at": {
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"nullable": true
},
"dismissed_reason": {
"nullable": true,
"description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"reopened_by_user"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commit_oid": {
"$ref": "#/components/schemas/webhooks_code_scanning_commit_oid"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-code-scanning-alert-updated-assignment
{
"type": "object",
"title": "code_scanning_alert updated_assignment event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"type": "object",
"required": [
"number",
"created_at",
"url",
"html_url",
"state",
"dismissed_by",
"dismissed_at",
"dismissed_reason",
"rule",
"tool"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"rule": {
"type": "object",
"required": [
"id",
"severity",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the rule used to detect the alert."
},
"severity": {
"enum": [
"none",
"note",
"warning",
"error",
null
],
"type": "string",
"nullable": true,
"description": "The severity of the alert."
},
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
}
}
},
"tool": {
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the tool used to generate the code scanning analysis alert."
},
"version": {
"type": "string",
"nullable": true,
"description": "The version of the tool used to detect the alert."
}
}
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"nullable": true,
"description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
},
"number": {
"type": "integer",
"description": "The code scanning alert number."
},
"fixed_at": {
"nullable": true,
"description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "The GitHub URL of the alert resource."
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-user"
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"dismissed_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"dismissed_reason": {
"enum": [
"false positive",
"won't fix",
"used in tests",
null
],
"type": "string",
"nullable": true,
"description": "The reason for dismissing or closing the alert."
},
"dismissed_comment": {
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
},
"most_recent_instance": {
"type": "object",
"title": "Alert Instance",
"nullable": true,
"required": [
"ref",
"analysis_key",
"environment",
"state"
],
"properties": {
"ref": {
"type": "string",
"description": "The full Git reference, formatted as `refs/heads/<branch name>`."
},
"state": {
"enum": [
"open",
"dismissed",
"fixed"
],
"type": "string",
"description": "State of a code scanning alert."
},
"message": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
}
},
"category": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed."
},
"location": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"end_line": {
"type": "integer"
},
"end_column": {
"type": "integer"
},
"start_line": {
"type": "integer"
},
"start_column": {
"type": "integer"
}
}
},
"commit_sha": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."
},
"analysis_key": {
"type": "string",
"description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
},
"classifications": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"description": "The code scanning alert involved in the event."
},
"action": {
"enum": [
"updated_assignment"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-commit-comment-created
{
"type": "object",
"title": "commit_comment created event",
"required": [
"action",
"comment",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string",
"description": "The action performed. Can be `created`."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"type": "object",
"required": [
"url",
"html_url",
"id",
"node_id",
"user",
"position",
"line",
"path",
"commit_id",
"created_at",
"updated_at",
"author_association",
"body"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the commit comment."
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"nullable": true,
"description": "The relative path of the file to which the comment applies."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string",
"description": "The node ID of the commit comment."
},
"html_url": {
"type": "string",
"format": "uri"
},
"position": {
"type": "integer",
"nullable": true,
"description": "The line index in the diff to which the comment applies."
},
"commit_id": {
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
}
},
"description": "The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-config
{
"type": "object",
"title": "Webhook Configuration",
"properties": {
"url": {
"$ref": "#/components/schemas/webhook-config-url"
},
"secret": {
"$ref": "#/components/schemas/webhook-config-secret"
},
"content_type": {
"$ref": "#/components/schemas/webhook-config-content-type"
},
"insecure_ssl": {
"$ref": "#/components/schemas/webhook-config-insecure-ssl"
}
},
"description": "Configuration object of the webhook"
}
webhook-config-content-type
{
"type": "string",
"example": "\"json\"",
"description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`."
}
webhook-config-insecure-ssl
{
"oneOf": [
{
"type": "string",
"example": "\"0\"",
"description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**"
},
{
"type": "number"
}
]
}
webhook-config-secret
{
"type": "string",
"example": "\"********\"",
"description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers)."
}
webhook-config-url
{
"type": "string",
"format": "uri",
"example": "https://example.com/webhook",
"description": "The URL to which the payloads will be delivered."
}
webhook-create
{
"type": "object",
"title": "create event",
"required": [
"ref",
"ref_type",
"master_branch",
"description",
"pusher_type",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_ref_0"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"ref_type": {
"enum": [
"tag",
"branch"
],
"type": "string",
"description": "The type of Git ref object created in the repository."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"description": {
"type": "string",
"nullable": true,
"description": "The repository's current description."
},
"pusher_type": {
"$ref": "#/components/schemas/webhooks_deploy_pusher_type"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"master_branch": {
"type": "string",
"description": "The name of the repository's default branch (usually `main`)."
}
}
}
webhook-custom-property-created
{
"type": "object",
"title": "custom property created event",
"required": [
"action",
"definition"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"definition": {
"$ref": "#/components/schemas/custom-property"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-custom-property-deleted
{
"type": "object",
"title": "custom property deleted event",
"required": [
"action",
"definition"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"definition": {
"type": "object",
"required": [
"property_name"
],
"properties": {
"property_name": {
"type": "string",
"description": "The name of the property that was deleted."
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-custom-property-promoted-to-enterprise
{
"type": "object",
"title": "custom property promoted to business event",
"required": [
"action",
"definition"
],
"properties": {
"action": {
"enum": [
"promote_to_enterprise"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"definition": {
"$ref": "#/components/schemas/custom-property"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-custom-property-updated
{
"type": "object",
"title": "custom property updated event",
"required": [
"action",
"definition"
],
"properties": {
"action": {
"enum": [
"updated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"definition": {
"$ref": "#/components/schemas/custom-property"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-custom-property-values-updated
{
"type": "object",
"title": "Custom property values updated event",
"required": [
"action",
"repository",
"organization",
"new_property_values",
"old_property_values"
],
"properties": {
"action": {
"enum": [
"updated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"new_property_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/custom-property-value"
},
"description": "The new custom property values for the repository."
},
"old_property_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/custom-property-value"
},
"description": "The old custom property values for the repository."
}
}
}
webhook-delete
{
"type": "object",
"title": "delete event",
"required": [
"ref",
"ref_type",
"pusher_type",
"repository",
"sender"
],
"properties": {
"ref": {
"$ref": "#/components/schemas/webhooks_ref_0"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"ref_type": {
"enum": [
"tag",
"branch"
],
"type": "string",
"description": "The type of Git ref object deleted in the repository."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"pusher_type": {
"$ref": "#/components/schemas/webhooks_deploy_pusher_type"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-assignees-changed
{
"type": "object",
"title": "Dependabot alert assignees changed event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"assignees_changed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-auto-dismissed
{
"type": "object",
"title": "Dependabot alert auto-dismissed event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"auto_dismissed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-auto-reopened
{
"type": "object",
"title": "Dependabot alert auto-reopened event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"auto_reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-created
{
"type": "object",
"title": "Dependabot alert created event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-dismissed
{
"type": "object",
"title": "Dependabot alert dismissed event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"dismissed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-fixed
{
"type": "object",
"title": "Dependabot alert fixed event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"fixed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-reintroduced
{
"type": "object",
"title": "Dependabot alert reintroduced event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"reintroduced"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-dependabot-alert-reopened
{
"type": "object",
"title": "Dependabot alert reopened event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/dependabot-alert"
},
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-deploy-key-created
{
"type": "object",
"title": "deploy_key created event",
"required": [
"action",
"key",
"repository",
"sender"
],
"properties": {
"key": {
"$ref": "#/components/schemas/webhooks_deploy_key"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-deploy-key-deleted
{
"type": "object",
"title": "deploy_key deleted event",
"required": [
"action",
"key",
"repository",
"sender"
],
"properties": {
"key": {
"$ref": "#/components/schemas/webhooks_deploy_key"
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-deployment-created
{
"type": "object",
"title": "deployment created event",
"required": [
"action",
"deployment",
"workflow",
"workflow_run",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"$ref": "#/components/schemas/webhooks_workflow"
},
"deployment": {
"type": "object",
"title": "Deployment",
"required": [
"url",
"id",
"node_id",
"sha",
"ref",
"task",
"payload",
"original_environment",
"environment",
"description",
"creator",
"created_at",
"updated_at",
"statuses_url",
"repository_url"
],
"properties": {
"id": {
"type": "integer"
},
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"task": {
"type": "string"
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"payload": {
"oneOf": [
{
"type": "object"
},
{
"type": "string"
}
]
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"environment": {
"type": "string"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"original_environment": {
"type": "string"
},
"transient_environment": {
"type": "boolean"
},
"production_environment": {
"type": "boolean"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"workflow_job",
"pull_request_review_thread",
"merge_queue_entry",
"secret_scanning_alert_location",
"merge_group"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
}
},
"description": "The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments)."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Deployment Workflow Run",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_branch",
"head_sha",
"run_number",
"event",
"status",
"conclusion",
"workflow_id",
"check_suite_id",
"check_suite_node_id",
"url",
"html_url",
"path",
"pull_requests",
"created_at",
"updated_at",
"actor",
"run_attempt",
"run_started_at",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting",
"pending"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string"
},
"logs_url": {
"type": "string"
},
"rerun_url": {
"type": "string"
},
"cancel_url": {
"type": "string"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"nullable": true
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string"
},
"artifacts_url": {
"type": "string"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string"
},
"head_repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
}
}
}
webhook-deployment-protection-rule-requested
{
"type": "object",
"title": "deployment protection rule requested event",
"properties": {
"ref": {
"type": "string",
"description": "The ref (branch or tag) that triggered the workflow. Always populated from the check suite, regardless of whether a deployment is created."
},
"sha": {
"type": "string",
"description": "The commit SHA that triggered the workflow. Always populated from the check suite, regardless of whether a deployment is created."
},
"event": {
"type": "string",
"description": "The event that triggered the deployment protection rule."
},
"action": {
"enum": [
"requested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"deployment": {
"$ref": "#/components/schemas/nullable-deployment"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"environment": {
"type": "string",
"description": "The name of the environment that has the deployment protection rule."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request"
}
},
"deployment_callback_url": {
"type": "string",
"format": "uri",
"description": "The URL to review the deployment protection rule."
}
}
}
webhook-deployment-review-approved
{
"type": "object",
"required": [
"action",
"workflow_run",
"since",
"repository",
"organization",
"sender"
],
"properties": {
"since": {
"type": "string"
},
"action": {
"enum": [
"approved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"type": "string"
},
"approver": {
"$ref": "#/components/schemas/webhooks_approver"
},
"reviewers": {
"$ref": "#/components/schemas/webhooks_reviewers"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Deployment Workflow Run",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_branch",
"head_sha",
"run_number",
"event",
"status",
"conclusion",
"workflow_id",
"check_suite_id",
"check_suite_node_id",
"url",
"html_url",
"path",
"pull_requests",
"created_at",
"updated_at",
"actor",
"triggering_actor",
"run_attempt",
"run_started_at",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting",
"pending"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string"
},
"logs_url": {
"type": "string"
},
"rerun_url": {
"type": "string"
},
"cancel_url": {
"type": "string"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"type": "object",
"nullable": true
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string"
},
"artifacts_url": {
"type": "string"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string"
},
"head_repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
},
"workflow_job_run": {
"$ref": "#/components/schemas/webhooks_workflow_job_run"
},
"workflow_job_runs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string",
"nullable": true
},
"status": {
"type": "string"
},
"html_url": {
"type": "string"
},
"conclusion": {
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"environment": {
"type": "string"
}
}
}
}
}
}
webhook-deployment-review-rejected
{
"type": "object",
"required": [
"action",
"workflow_run",
"since",
"repository",
"organization",
"sender"
],
"properties": {
"since": {
"type": "string"
},
"action": {
"enum": [
"rejected"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"type": "string"
},
"approver": {
"$ref": "#/components/schemas/webhooks_approver"
},
"reviewers": {
"$ref": "#/components/schemas/webhooks_reviewers"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Deployment Workflow Run",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_branch",
"head_sha",
"run_number",
"event",
"status",
"conclusion",
"workflow_id",
"check_suite_id",
"check_suite_node_id",
"url",
"html_url",
"path",
"pull_requests",
"created_at",
"updated_at",
"actor",
"triggering_actor",
"run_attempt",
"run_started_at",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string"
},
"logs_url": {
"type": "string"
},
"rerun_url": {
"type": "string"
},
"cancel_url": {
"type": "string"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"type": "object",
"nullable": true
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string"
},
"artifacts_url": {
"type": "string"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string"
},
"head_repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
},
"workflow_job_run": {
"$ref": "#/components/schemas/webhooks_workflow_job_run"
},
"workflow_job_runs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string",
"nullable": true
},
"status": {
"type": "string"
},
"html_url": {
"type": "string"
},
"conclusion": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"environment": {
"type": "string"
}
}
}
}
}
}
webhook-deployment-review-requested
{
"type": "object",
"required": [
"action",
"workflow_run",
"since",
"workflow_job_run",
"environment",
"reviewers",
"requestor",
"repository",
"organization",
"sender"
],
"properties": {
"since": {
"type": "string"
},
"action": {
"enum": [
"requested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requestor": {
"$ref": "#/components/schemas/webhooks_user"
},
"reviewers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"enum": [
"User",
"Team"
],
"type": "string"
},
"reviewer": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"environment": {
"type": "string"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Deployment Workflow Run",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_branch",
"head_sha",
"run_number",
"event",
"status",
"conclusion",
"workflow_id",
"check_suite_id",
"check_suite_node_id",
"url",
"html_url",
"path",
"pull_requests",
"created_at",
"updated_at",
"actor",
"triggering_actor",
"run_attempt",
"run_started_at",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting",
"pending"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string"
},
"logs_url": {
"type": "string"
},
"rerun_url": {
"type": "string"
},
"cancel_url": {
"type": "string"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"type": "object",
"nullable": true
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string"
},
"artifacts_url": {
"type": "string"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string"
},
"head_repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
},
"workflow_job_run": {
"type": "object",
"required": [
"id",
"name",
"status",
"conclusion",
"html_url",
"created_at",
"updated_at",
"environment"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string",
"nullable": true
},
"status": {
"type": "string"
},
"html_url": {
"type": "string"
},
"conclusion": {
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"environment": {
"type": "string"
}
}
}
}
}
webhook-deployment-status-created
{
"type": "object",
"title": "deployment_status created event",
"required": [
"action",
"deployment_status",
"deployment",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"$ref": "#/components/schemas/webhooks_workflow"
},
"check_run": {
"type": "object",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_sha",
"external_id",
"url",
"html_url",
"details_url",
"status",
"conclusion",
"started_at",
"completed_at"
],
"properties": {
"id": {
"type": "integer",
"description": "The id of the check."
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"description": "The name of the check run."
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting",
"pending"
],
"type": "string",
"description": "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string",
"description": "The SHA of the commit that is being checked."
},
"html_url": {
"type": "string",
"format": "uri"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
"skipped",
null
],
"type": "string",
"nullable": true,
"description": "The result of the completed check run. This value will be `null` until the check run has completed."
},
"started_at": {
"type": "string",
"format": "date-time"
},
"details_url": {
"type": "string",
"format": "uri"
},
"external_id": {
"type": "string"
},
"completed_at": {
"type": "string",
"format": "date-time",
"nullable": true
}
}
},
"deployment": {
"type": "object",
"title": "Deployment",
"required": [
"url",
"id",
"node_id",
"sha",
"ref",
"task",
"payload",
"original_environment",
"environment",
"description",
"creator",
"created_at",
"updated_at",
"statuses_url",
"repository_url"
],
"properties": {
"id": {
"type": "integer"
},
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"task": {
"type": "string"
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"payload": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"environment": {
"type": "string"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"original_environment": {
"type": "string"
},
"transient_environment": {
"type": "boolean"
},
"production_environment": {
"type": "boolean"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"merge_queue_entry",
"workflow_job",
"pull_request_review_thread",
"secret_scanning_alert_location",
"merge_group"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
}
},
"description": "The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments)."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Deployment Workflow Run",
"nullable": true,
"required": [
"id",
"name",
"node_id",
"head_branch",
"head_sha",
"run_number",
"event",
"status",
"conclusion",
"workflow_id",
"check_suite_id",
"check_suite_node_id",
"url",
"html_url",
"path",
"pull_requests",
"created_at",
"updated_at",
"actor",
"triggering_actor",
"run_attempt",
"run_started_at",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting",
"pending"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string"
},
"logs_url": {
"type": "string"
},
"rerun_url": {
"type": "string"
},
"cancel_url": {
"type": "string"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null,
"startup_failure"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"nullable": true
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string"
},
"artifacts_url": {
"type": "string"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"title": "Check Run Pull Request",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "integer"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string"
},
"head_repository": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"tags_url": {
"type": "string"
},
"blobs_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"nullable": true
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"languages_url": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
},
"deployment_status": {
"type": "object",
"required": [
"url",
"id",
"node_id",
"state",
"creator",
"description",
"environment",
"target_url",
"created_at",
"updated_at",
"deployment_url",
"repository_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"type": "string",
"description": "The new state. Can be `pending`, `success`, `failure`, or `error`."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"log_url": {
"type": "string",
"format": "uri"
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"target_url": {
"type": "string",
"description": "The optional link added to the status."
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"description": "The optional human-readable description added to the status."
},
"environment": {
"type": "string"
},
"deployment_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"environment_url": {
"type": "string",
"format": "uri"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"pull_request_review_thread",
"merge_queue_entry",
"workflow_job",
"merge_group",
"secret_scanning_alert_location"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
}
},
"description": "The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)."
}
}
}
webhook-discussion-answered
{
"type": "object",
"title": "discussion answered event",
"required": [
"action",
"discussion",
"answer",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"answered"
],
"type": "string"
},
"answer": {
"$ref": "#/components/schemas/webhooks_answer"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-category-changed
{
"type": "object",
"title": "discussion category changed event",
"required": [
"action",
"changes",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"category_changed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"category"
],
"properties": {
"category": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"required": [
"id",
"repository_id",
"emoji",
"name",
"description",
"created_at",
"updated_at",
"slug",
"is_answerable"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"emoji": {
"type": "string"
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"is_answerable": {
"type": "boolean"
},
"repository_id": {
"type": "integer"
}
}
}
}
}
}
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-closed
{
"type": "object",
"title": "discussion closed event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"closed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-comment-created
{
"type": "object",
"title": "discussion_comment created event",
"required": [
"action",
"comment",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_comment"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-comment-deleted
{
"type": "object",
"title": "discussion_comment deleted event",
"required": [
"action",
"comment",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_comment"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-comment-edited
{
"type": "object",
"title": "discussion_comment edited event",
"required": [
"action",
"changes",
"comment",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"comment": {
"$ref": "#/components/schemas/webhooks_comment"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-created
{
"type": "object",
"title": "discussion created event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-deleted
{
"type": "object",
"title": "discussion deleted event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-edited
{
"type": "object",
"title": "discussion edited event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
},
"title": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-labeled
{
"type": "object",
"title": "discussion labeled event",
"required": [
"action",
"discussion",
"label",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"labeled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-locked
{
"type": "object",
"title": "discussion locked event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"locked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-pinned
{
"type": "object",
"title": "discussion pinned event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"pinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-reopened
{
"type": "object",
"title": "discussion reopened event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-transferred
{
"type": "object",
"title": "discussion transferred event",
"required": [
"action",
"changes",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"transferred"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"new_discussion",
"new_repository"
],
"properties": {
"new_discussion": {
"$ref": "#/components/schemas/discussion"
},
"new_repository": {
"$ref": "#/components/schemas/repository-webhooks"
}
}
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-unanswered
{
"type": "object",
"title": "discussion unanswered event",
"required": [
"action",
"discussion",
"old_answer",
"repository"
],
"properties": {
"action": {
"enum": [
"unanswered"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"old_answer": {
"$ref": "#/components/schemas/webhooks_answer"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-unlabeled
{
"type": "object",
"title": "discussion unlabeled event",
"required": [
"action",
"discussion",
"label",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"unlabeled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-unlocked
{
"type": "object",
"title": "discussion unlocked event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"unlocked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-discussion-unpinned
{
"type": "object",
"title": "discussion unpinned event",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"unpinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"discussion": {
"$ref": "#/components/schemas/discussion"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-fork
{
"type": "object",
"title": "fork event",
"required": [
"forkee",
"repository",
"sender"
],
"properties": {
"forkee": {
"allOf": [
{
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
}
},
"description": "A git repository"
},
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"fork": {
"enum": [
true
],
"type": "boolean"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"nullable": true
}
},
"git_url": {
"type": "string"
},
"license": {
"type": "object",
"nullable": true
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean"
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"has_wiki": {
"type": "boolean"
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string"
},
"keys_url": {
"type": "string"
},
"language": {
"nullable": true
},
"tags_url": {
"type": "string"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string"
},
"clone_url": {
"type": "string"
},
"forks_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string"
},
"pulls_url": {
"type": "string"
},
"pushed_at": {
"type": "string"
},
"teams_url": {
"type": "string"
},
"trees_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"has_issues": {
"type": "boolean"
},
"issues_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"merges_url": {
"type": "string"
},
"mirror_url": {
"nullable": true
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
},
"archive_url": {
"type": "string"
},
"commits_url": {
"type": "string"
},
"compare_url": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"branches_url": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"contents_url": {
"type": "string"
},
"git_refs_url": {
"type": "string"
},
"git_tags_url": {
"type": "string"
},
"has_projects": {
"type": "boolean"
},
"releases_url": {
"type": "string"
},
"statuses_url": {
"type": "string"
},
"allow_forking": {
"type": "boolean"
},
"assignees_url": {
"type": "string"
},
"downloads_url": {
"type": "string"
},
"has_downloads": {
"type": "boolean"
},
"languages_url": {
"type": "string"
},
"default_branch": {
"type": "string"
},
"milestones_url": {
"type": "string"
},
"stargazers_url": {
"type": "string"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string"
},
"git_commits_url": {
"type": "string"
},
"subscribers_url": {
"type": "string"
},
"contributors_url": {
"type": "string"
},
"issue_events_url": {
"type": "string"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string"
},
"collaborators_url": {
"type": "string"
},
"issue_comment_url": {
"type": "string"
},
"notifications_url": {
"type": "string"
},
"open_issues_count": {
"type": "integer"
}
}
}
],
"description": "The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
},
"description": "A user forks a repository."
}
webhook-github-app-authorization-revoked
{
"type": "object",
"title": "github_app_authorization revoked event",
"required": [
"action",
"sender"
],
"properties": {
"action": {
"enum": [
"revoked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
}
}
}
webhook-gollum
{
"type": "object",
"title": "gollum event",
"required": [
"pages",
"repository",
"sender"
],
"properties": {
"pages": {
"type": "array",
"items": {
"type": "object",
"required": [
"page_name",
"title",
"summary",
"action",
"sha",
"html_url"
],
"properties": {
"sha": {
"type": "string",
"description": "The latest commit SHA of the page."
},
"title": {
"type": "string",
"description": "The current page title."
},
"action": {
"enum": [
"created",
"edited"
],
"type": "string",
"description": "The action that was performed on the page. Can be `created` or `edited`."
},
"summary": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri",
"description": "Points to the HTML wiki page."
},
"page_name": {
"type": "string",
"description": "The name of the page."
}
}
},
"description": "The pages that were updated."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-installation-created
{
"type": "object",
"title": "installation created event",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"$ref": "#/components/schemas/webhooks_user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories": {
"$ref": "#/components/schemas/webhooks_repositories"
}
}
}
webhook-installation-deleted
{
"type": "object",
"title": "installation deleted event",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"nullable": true
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories": {
"$ref": "#/components/schemas/webhooks_repositories"
}
}
}
webhook-installation-new-permissions-accepted
{
"type": "object",
"title": "installation new_permissions_accepted event",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"enum": [
"new_permissions_accepted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"nullable": true
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories": {
"$ref": "#/components/schemas/webhooks_repositories"
}
}
}
webhook-installation-repositories-added
{
"type": "object",
"title": "installation_repositories added event",
"required": [
"action",
"installation",
"repository_selection",
"repositories_added",
"repositories_removed",
"requester",
"sender"
],
"properties": {
"action": {
"enum": [
"added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"$ref": "#/components/schemas/webhooks_user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories_added": {
"$ref": "#/components/schemas/webhooks_repositories_added"
},
"repositories_removed": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"full_name": {
"type": "string"
}
}
},
"description": "An array of repository objects, which were removed from the installation."
},
"repository_selection": {
"$ref": "#/components/schemas/webhooks_repository_selection"
}
}
}
webhook-installation-repositories-removed
{
"type": "object",
"title": "installation_repositories removed event",
"required": [
"action",
"installation",
"repository_selection",
"repositories_added",
"repositories_removed",
"requester",
"sender"
],
"properties": {
"action": {
"enum": [
"removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"$ref": "#/components/schemas/webhooks_user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories_added": {
"$ref": "#/components/schemas/webhooks_repositories_added"
},
"repositories_removed": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"name",
"full_name",
"private"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"full_name": {
"type": "string"
}
}
},
"description": "An array of repository objects, which were removed from the installation."
},
"repository_selection": {
"$ref": "#/components/schemas/webhooks_repository_selection"
}
}
}
webhook-installation-suspend
{
"type": "object",
"title": "installation suspend event",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"enum": [
"suspend"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"nullable": true
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories": {
"$ref": "#/components/schemas/webhooks_repositories"
}
}
}
webhook-installation-target-renamed
{
"type": "object",
"required": [
"action",
"target_type",
"account",
"changes",
"installation"
],
"properties": {
"action": {
"enum": [
"renamed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"account": {
"type": "object",
"required": [
"id",
"node_id",
"avatar_url",
"html_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"followers": {
"type": "integer"
},
"following": {
"type": "integer"
},
"gists_url": {
"type": "string"
},
"hooks_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"issues_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"updated_at": {
"type": "string"
},
"archived_at": {
"type": "string",
"nullable": true
},
"description": {
"nullable": true
},
"gravatar_id": {
"type": "string"
},
"is_verified": {
"type": "boolean"
},
"members_url": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"website_url": {
"nullable": true
},
"public_gists": {
"type": "integer"
},
"public_repos": {
"type": "integer"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"public_members_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
},
"has_repository_projects": {
"type": "boolean"
},
"has_organization_projects": {
"type": "boolean"
}
}
},
"changes": {
"type": "object",
"properties": {
"slug": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
},
"login": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"target_type": {
"type": "string"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-installation-unsuspend
{
"type": "object",
"title": "installation unsuspend event",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"enum": [
"unsuspend"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"requester": {
"nullable": true
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repositories": {
"$ref": "#/components/schemas/webhooks_repositories"
}
}
}
webhook-issue-comment-created
{
"type": "object",
"title": "issue_comment created event",
"required": [
"action",
"issue",
"comment",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder",
"pull_request_review_thread"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"labels",
"state",
"locked",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to."
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"type": "object",
"title": "issue comment",
"required": [
"url",
"html_url",
"issue_url",
"id",
"node_id",
"user",
"created_at",
"updated_at",
"author_association",
"performed_via_github_app",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the issue comment"
},
"pin": {
"$ref": "#/components/schemas/nullable-pinned-issue-comment"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue comment"
},
"body": {
"type": "string",
"description": "Contents of the issue comment"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
}
},
"description": "The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issue-comment-deleted
{
"type": "object",
"title": "issue_comment deleted event",
"required": [
"action",
"issue",
"comment",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"labels",
"state",
"locked",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to."
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_issue_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issue-comment-edited
{
"type": "object",
"title": "issue_comment edited event",
"required": [
"action",
"changes",
"issue",
"comment",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder",
"pull_request_review_thread"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"labels",
"state",
"locked",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to."
},
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_changes"
},
"comment": {
"$ref": "#/components/schemas/webhooks_issue_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issue-comment-pinned
{
"type": "object",
"title": "issue_comment pinned event",
"required": [
"action",
"issue",
"comment",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"team_discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"labels",
"state",
"locked",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to."
},
"action": {
"enum": [
"pinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_issue_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issue-comment-unpinned
{
"type": "object",
"title": "issue_comment unpinned event",
"required": [
"action",
"issue",
"comment",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"team_discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"labels",
"state",
"locked",
"assignee"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to."
},
"action": {
"enum": [
"unpinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_issue_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issue-dependencies-blocked-by-added
{
"type": "object",
"title": "blocked by issue added event",
"required": [
"action",
"organization",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"blocked_by_added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"blocked_issue": {
"$ref": "#/components/schemas/issue"
},
"blocking_issue": {
"$ref": "#/components/schemas/issue"
},
"blocked_issue_id": {
"type": "number",
"description": "The ID of the blocked issue."
},
"blocking_issue_id": {
"type": "number",
"description": "The ID of the blocking issue."
},
"blocking_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-issue-dependencies-blocked-by-removed
{
"type": "object",
"title": "blocked by issue removed event",
"required": [
"action",
"organization",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"blocked_by_removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"blocked_issue": {
"$ref": "#/components/schemas/issue"
},
"blocking_issue": {
"$ref": "#/components/schemas/issue"
},
"blocked_issue_id": {
"type": "number",
"description": "The ID of the blocked issue."
},
"blocking_issue_id": {
"type": "number",
"description": "The ID of the blocking issue."
},
"blocking_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-issue-dependencies-blocking-added
{
"type": "object",
"title": "blocking issue added event",
"required": [
"action",
"organization",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"blocking_added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"blocked_issue": {
"$ref": "#/components/schemas/issue"
},
"blocking_issue": {
"$ref": "#/components/schemas/issue"
},
"blocked_issue_id": {
"type": "number",
"description": "The ID of the blocked issue."
},
"blocking_issue_id": {
"type": "number",
"description": "The ID of the blocking issue."
},
"blocked_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-issue-dependencies-blocking-removed
{
"type": "object",
"title": "blocking issue removed event",
"required": [
"action",
"organization",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"blocking_removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"blocked_issue": {
"$ref": "#/components/schemas/issue"
},
"blocking_issue": {
"$ref": "#/components/schemas/issue"
},
"blocked_issue_id": {
"type": "number",
"description": "The ID of the blocked issue."
},
"blocking_issue_id": {
"type": "number",
"description": "The ID of the blocking issue."
},
"blocked_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-issues-assigned
{
"type": "object",
"title": "issues assigned event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue"
},
"action": {
"enum": [
"assigned"
],
"type": "string",
"description": "The action that was performed."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/webhooks_user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-closed
{
"type": "object",
"title": "issues closed event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"allOf": [
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"security_and_analysis",
"reminder",
"pull_request_review_thread"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
{
"type": "object",
"required": [
"state",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"body": {
"type": "string",
"nullable": true
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"state": {
"enum": [
"closed",
"open"
],
"type": "string"
},
"title": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"nullable": true
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"nullable": true
},
"reactions": {
"type": "object",
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"events_url": {
"type": "string"
},
"labels_url": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"comments_url": {
"type": "string"
},
"timeline_url": {
"type": "string"
},
"repository_url": {
"type": "string"
},
"active_lock_reason": {
"type": "string",
"nullable": true
},
"author_association": {
"type": "string"
},
"performed_via_github_app": {
"type": "object",
"nullable": true
}
}
}
],
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"closed"
],
"type": "string",
"description": "The action that was performed."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-deleted
{
"type": "object",
"title": "issues deleted event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-demilestoned
{
"type": "object",
"title": "issues demilestoned event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"active_lock_reason",
"assignees",
"author_association",
"body",
"closed_at",
"comments",
"comments_url",
"created_at",
"events_url",
"html_url",
"id",
"labels_url",
"milestone",
"node_id",
"number",
"reactions",
"repository_url",
"title",
"updated_at",
"url",
"user"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"demilestoned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-edited
{
"type": "object",
"title": "issues edited event",
"required": [
"action",
"changes",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"security_and_analysis",
"pull_request_review_thread",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body."
}
}
},
"title": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the title."
}
}
}
},
"description": "The changes to the issue."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-labeled
{
"type": "object",
"title": "issues labeled event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"pull_request_review_thread",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"labeled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-locked
{
"type": "object",
"title": "issues locked event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"active_lock_reason",
"assignees",
"author_association",
"body",
"closed_at",
"comments",
"comments_url",
"created_at",
"events_url",
"html_url",
"id",
"labels_url",
"locked",
"milestone",
"node_id",
"number",
"reactions",
"repository_url",
"title",
"updated_at",
"url",
"user"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"enum": [
true
],
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder",
"security_and_analysis"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"locked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-milestoned
{
"type": "object",
"title": "issues milestoned event",
"required": [
"action",
"issue",
"milestone",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"active_lock_reason",
"assignees",
"author_association",
"body",
"closed_at",
"comments",
"comments_url",
"created_at",
"events_url",
"html_url",
"id",
"labels_url",
"milestone",
"node_id",
"number",
"reactions",
"repository_url",
"title",
"updated_at",
"url",
"user"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"milestoned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-opened
{
"type": "object",
"title": "issues opened event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"security_and_analysis",
"pull_request_review_thread",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"opened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"old_issue",
"old_repository"
],
"properties": {
"old_issue": {
"type": "object",
"title": "Issue",
"nullable": true,
"required": [
"id",
"number"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"old_repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"description": "Whether the repository has discussions enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require commit signoff."
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-pinned
{
"type": "object",
"title": "issues pinned event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue_2"
},
"action": {
"enum": [
"pinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-reopened
{
"type": "object",
"title": "issues reopened event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"active_lock_reason",
"assignees",
"author_association",
"body",
"closed_at",
"comments",
"comments_url",
"created_at",
"events_url",
"html_url",
"id",
"labels_url",
"milestone",
"node_id",
"number",
"reactions",
"repository_url",
"state",
"title",
"updated_at",
"url",
"user"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"pull_request_review_thread",
"reminder"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-transferred
{
"type": "object",
"title": "issues transferred event",
"required": [
"action",
"changes",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue_2"
},
"action": {
"enum": [
"transferred"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"new_issue",
"new_repository"
],
"properties": {
"new_issue": {
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"new_repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-typed
{
"type": "object",
"title": "issues typed event",
"required": [
"action",
"issue",
"type",
"repository",
"sender"
],
"properties": {
"type": {
"$ref": "#/components/schemas/issue-type"
},
"issue": {
"$ref": "#/components/schemas/webhooks_issue"
},
"action": {
"enum": [
"typed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-unassigned
{
"type": "object",
"title": "issues unassigned event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue"
},
"action": {
"enum": [
"unassigned"
],
"type": "string",
"description": "The action that was performed."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/webhooks_user_mannequin"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-unlabeled
{
"type": "object",
"title": "issues unlabeled event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue"
},
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"unlabeled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-unlocked
{
"type": "object",
"title": "issues unlocked event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"type": "object",
"title": "Issue",
"required": [
"active_lock_reason",
"assignees",
"author_association",
"body",
"closed_at",
"comments",
"comments_url",
"created_at",
"events_url",
"html_url",
"id",
"labels_url",
"locked",
"milestone",
"node_id",
"number",
"reactions",
"repository_url",
"title",
"updated_at",
"url",
"user"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"nullable": true,
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"enum": [
false
],
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
},
"action": {
"enum": [
"unlocked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-unpinned
{
"type": "object",
"title": "issues unpinned event",
"required": [
"action",
"issue",
"repository",
"sender"
],
"properties": {
"issue": {
"$ref": "#/components/schemas/webhooks_issue_2"
},
"action": {
"enum": [
"unpinned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-issues-untyped
{
"type": "object",
"title": "issues untyped event",
"required": [
"action",
"issue",
"type",
"repository",
"sender"
],
"properties": {
"type": {
"$ref": "#/components/schemas/issue-type"
},
"issue": {
"$ref": "#/components/schemas/webhooks_issue"
},
"action": {
"enum": [
"untyped"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-label-created
{
"type": "object",
"title": "label created event",
"required": [
"action",
"label",
"repository"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-label-deleted
{
"type": "object",
"title": "label deleted event",
"required": [
"action",
"label",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-label-edited
{
"type": "object",
"title": "label edited event",
"required": [
"action",
"label",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the name if the action was `edited`."
}
}
},
"color": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the color if the action was `edited`."
}
}
},
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the description if the action was `edited`."
}
}
}
},
"description": "The changes to the label if the action was `edited`."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-marketplace-purchase-cancelled
{
"type": "object",
"title": "marketplace_purchase cancelled event",
"required": [
"action",
"effective_date",
"sender",
"marketplace_purchase"
],
"properties": {
"action": {
"enum": [
"cancelled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"type": "string"
},
"marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_marketplace_purchase"
},
"previous_marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_previous_marketplace_purchase"
}
}
}
webhook-marketplace-purchase-changed
{
"type": "object",
"title": "marketplace_purchase changed event",
"required": [
"action",
"effective_date",
"sender",
"marketplace_purchase"
],
"properties": {
"action": {
"enum": [
"changed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"type": "string"
},
"marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_marketplace_purchase"
},
"previous_marketplace_purchase": {
"type": "object",
"title": "Marketplace Purchase",
"required": [
"account",
"billing_cycle",
"unit_count",
"on_free_trial",
"free_trial_ends_on",
"plan"
],
"properties": {
"plan": {
"type": "object",
"required": [
"id",
"name",
"description",
"monthly_price_in_cents",
"yearly_price_in_cents",
"price_model",
"has_free_trial",
"unit_name",
"bullets"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string"
}
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"yearly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
}
}
},
"account": {
"type": "object",
"required": [
"type",
"id",
"node_id",
"login",
"organization_billing_email"
],
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"nullable": true
}
}
},
"unit_count": {
"type": "integer"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean",
"nullable": true
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"type": "string",
"nullable": true
}
}
}
}
}
webhook-marketplace-purchase-pending-change
{
"type": "object",
"title": "marketplace_purchase pending_change event",
"required": [
"action",
"effective_date",
"sender",
"marketplace_purchase"
],
"properties": {
"action": {
"enum": [
"pending_change"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"type": "string"
},
"marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_marketplace_purchase"
},
"previous_marketplace_purchase": {
"type": "object",
"title": "Marketplace Purchase",
"required": [
"account",
"billing_cycle",
"unit_count",
"on_free_trial",
"free_trial_ends_on",
"plan"
],
"properties": {
"plan": {
"type": "object",
"required": [
"id",
"name",
"description",
"monthly_price_in_cents",
"yearly_price_in_cents",
"price_model",
"has_free_trial",
"unit_name",
"bullets"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string"
}
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"yearly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
}
}
},
"account": {
"type": "object",
"required": [
"type",
"id",
"node_id",
"login",
"organization_billing_email"
],
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"nullable": true
}
}
},
"unit_count": {
"type": "integer"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"type": "string",
"nullable": true
}
}
}
}
}
webhook-marketplace-purchase-pending-change-cancelled
{
"type": "object",
"title": "marketplace_purchase pending_change_cancelled event",
"required": [
"action",
"effective_date",
"sender",
"marketplace_purchase"
],
"properties": {
"action": {
"enum": [
"pending_change_cancelled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"type": "string"
},
"marketplace_purchase": {
"type": "object",
"title": "Marketplace Purchase",
"required": [
"account",
"billing_cycle",
"free_trial_ends_on",
"next_billing_date",
"on_free_trial",
"plan",
"unit_count"
],
"properties": {
"plan": {
"type": "object",
"required": [
"id",
"name",
"description",
"monthly_price_in_cents",
"yearly_price_in_cents",
"price_model",
"has_free_trial",
"unit_name",
"bullets"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string"
}
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"yearly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
}
}
},
"account": {
"type": "object",
"required": [
"type",
"id",
"node_id",
"login",
"organization_billing_email"
],
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"nullable": true
}
}
},
"unit_count": {
"type": "integer"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"nullable": true
}
}
},
"previous_marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_previous_marketplace_purchase"
}
}
}
webhook-marketplace-purchase-purchased
{
"type": "object",
"title": "marketplace_purchase purchased event",
"required": [
"action",
"effective_date",
"sender",
"marketplace_purchase"
],
"properties": {
"action": {
"enum": [
"purchased"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"type": "string"
},
"marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_marketplace_purchase"
},
"previous_marketplace_purchase": {
"$ref": "#/components/schemas/webhooks_previous_marketplace_purchase"
}
}
}
webhook-member-added
{
"type": "object",
"title": "member added event",
"required": [
"action",
"member",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"added"
],
"type": "string"
},
"member": {
"$ref": "#/components/schemas/webhooks_user"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"role_name": {
"type": "object",
"required": [
"to"
],
"properties": {
"to": {
"type": "string"
}
},
"description": "The role assigned to the collaborator."
},
"permission": {
"type": "object",
"required": [
"to"
],
"properties": {
"to": {
"enum": [
"write",
"admin",
"read"
],
"type": "string"
}
},
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles."
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-member-edited
{
"type": "object",
"title": "member edited event",
"required": [
"action",
"changes",
"member",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"member": {
"$ref": "#/components/schemas/webhooks_user"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"permission": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
},
"old_permission": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous permissions of the collaborator if the action was edited."
}
}
}
},
"description": "The changes to the collaborator permissions"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-member-removed
{
"type": "object",
"title": "member removed event",
"required": [
"action",
"member",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"removed"
],
"type": "string"
},
"member": {
"$ref": "#/components/schemas/webhooks_user"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-membership-added
{
"type": "object",
"title": "membership added event",
"required": [
"action",
"scope",
"member",
"sender",
"team",
"organization"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team"
},
"scope": {
"enum": [
"team"
],
"type": "string",
"description": "The scope of the membership. Currently, can only be `team`."
},
"action": {
"enum": [
"added"
],
"type": "string"
},
"member": {
"$ref": "#/components/schemas/webhooks_user"
},
"sender": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-membership-removed
{
"type": "object",
"title": "membership removed event",
"required": [
"action",
"scope",
"member",
"sender",
"team",
"organization"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team"
},
"scope": {
"enum": [
"team",
"organization"
],
"type": "string",
"description": "The scope of the membership. Currently, can only be `team`."
},
"action": {
"enum": [
"removed"
],
"type": "string"
},
"member": {
"$ref": "#/components/schemas/webhooks_user"
},
"sender": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-merge-group-checks-requested
{
"type": "object",
"required": [
"action",
"merge_group"
],
"properties": {
"action": {
"enum": [
"checks_requested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"merge_group": {
"$ref": "#/components/schemas/merge-group"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-merge-group-destroyed
{
"type": "object",
"required": [
"action",
"merge_group"
],
"properties": {
"action": {
"enum": [
"destroyed"
],
"type": "string"
},
"reason": {
"enum": [
"merged",
"invalidated",
"dequeued"
],
"type": "string",
"description": "Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated)."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"merge_group": {
"$ref": "#/components/schemas/merge-group"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-meta-deleted
{
"type": "object",
"title": "meta deleted event",
"required": [
"action",
"hook_id",
"hook"
],
"properties": {
"hook": {
"type": "object",
"required": [
"type",
"id",
"name",
"active",
"events",
"config",
"updated_at",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"active": {
"type": "boolean"
},
"config": {
"type": "object",
"required": [
"content_type",
"insecure_ssl",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"secret": {
"type": "string"
},
"content_type": {
"enum": [
"json",
"form"
],
"type": "string"
},
"insecure_ssl": {
"type": "string"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"*",
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"create",
"delete",
"deployment",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"meta",
"milestone",
"organization",
"org_block",
"package",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"pull_request_review_thread",
"push",
"registry_package",
"release",
"repository",
"repository_import",
"repository_vulnerability_alert",
"secret_scanning_alert",
"secret_scanning_alert_location",
"security_and_analysis",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_job",
"workflow_run",
"repository_dispatch",
"projects_v2_item"
],
"type": "string",
"minItems": 1
},
"description": ""
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"description": "The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace."
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"hook_id": {
"type": "integer",
"description": "The id of the modified webhook."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/nullable-repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-milestone-closed
{
"type": "object",
"title": "milestone closed event",
"required": [
"action",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"closed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-milestone-created
{
"type": "object",
"title": "milestone created event",
"required": [
"action",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone_3"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-milestone-deleted
{
"type": "object",
"title": "milestone deleted event",
"required": [
"action",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-milestone-edited
{
"type": "object",
"title": "milestone edited event",
"required": [
"action",
"changes",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"title": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the title if the action was `edited`."
}
}
},
"due_on": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the due date if the action was `edited`."
}
}
},
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the description if the action was `edited`."
}
}
}
},
"description": "The changes to the milestone if the action was `edited`."
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-milestone-opened
{
"type": "object",
"title": "milestone opened event",
"required": [
"action",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"opened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/webhooks_milestone_3"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-org-block-blocked
{
"type": "object",
"title": "org_block blocked event",
"required": [
"action",
"blocked_user",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"blocked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"blocked_user": {
"$ref": "#/components/schemas/webhooks_user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-org-block-unblocked
{
"type": "object",
"title": "org_block unblocked event",
"required": [
"action",
"blocked_user",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"unblocked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"blocked_user": {
"$ref": "#/components/schemas/webhooks_user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-organization-deleted
{
"type": "object",
"title": "organization deleted event",
"required": [
"action",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"membership": {
"$ref": "#/components/schemas/webhooks_membership"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-organization-member-added
{
"type": "object",
"title": "organization member_added event",
"required": [
"action",
"membership",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"member_added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"membership": {
"$ref": "#/components/schemas/webhooks_membership"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-organization-member-invited
{
"type": "object",
"title": "organization member_invited event",
"required": [
"action",
"invitation",
"organization",
"sender"
],
"properties": {
"user": {
"$ref": "#/components/schemas/webhooks_user"
},
"action": {
"enum": [
"member_invited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"invitation": {
"type": "object",
"required": [
"id",
"node_id",
"login",
"email",
"role",
"created_at",
"failed_at",
"failed_reason",
"inviter",
"team_count",
"invitation_teams_url"
],
"properties": {
"id": {
"type": "number"
},
"role": {
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string",
"nullable": true
},
"inviter": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"failed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"team_count": {
"type": "number"
},
"failed_reason": {
"type": "string",
"nullable": true
},
"invitation_source": {
"type": "string"
},
"invitation_teams_url": {
"type": "string",
"format": "uri"
}
},
"description": "The invitation for the user or email if the action is `member_invited`."
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-organization-member-removed
{
"type": "object",
"title": "organization member_removed event",
"required": [
"action",
"membership",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"member_removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"membership": {
"$ref": "#/components/schemas/webhooks_membership"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-organization-renamed
{
"type": "object",
"title": "organization renamed event",
"required": [
"action",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"renamed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"login": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"membership": {
"$ref": "#/components/schemas/webhooks_membership"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-package-published
{
"type": "object",
"title": "package published event",
"required": [
"action",
"package",
"sender"
],
"properties": {
"action": {
"enum": [
"published"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"package": {
"type": "object",
"required": [
"id",
"name",
"namespace",
"description",
"ecosystem",
"package_type",
"html_url",
"created_at",
"updated_at",
"owner",
"package_version",
"registry"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"registry": {
"type": "object",
"nullable": true,
"required": [
"about_url",
"name",
"type",
"url",
"vendor"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"vendor": {
"type": "string"
},
"about_url": {
"type": "string",
"format": "uri"
}
}
},
"ecosystem": {
"type": "string"
},
"namespace": {
"type": "string"
},
"created_at": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"package_type": {
"type": "string"
},
"package_version": {
"type": "object",
"nullable": true,
"required": [
"id",
"version",
"summary",
"name",
"description",
"html_url",
"metadata",
"package_files",
"installation_command"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"release": {
"type": "object",
"required": [
"url",
"html_url",
"id",
"tag_name",
"target_commitish",
"name",
"draft",
"author",
"prerelease",
"created_at",
"published_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"target_commitish": {
"type": "string"
}
}
},
"summary": {
"type": "string"
},
"version": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"manifest": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"tag_name": {
"type": "string"
},
"body_html": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"source_url": {
"type": "string"
},
"target_oid": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"package_url": {
"type": "string"
},
"npm_metadata": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "string"
},
"os": {
"type": "array",
"items": {
"type": "string"
}
},
"bin": {
"type": "object"
},
"cpu": {
"type": "array",
"items": {
"type": "string"
}
},
"man": {
"type": "object"
},
"bugs": {
"type": "object",
"nullable": true
},
"dist": {
"type": "object",
"nullable": true
},
"main": {
"type": "string"
},
"name": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "string"
}
},
"author": {
"type": "object",
"nullable": true
},
"readme": {
"type": "string"
},
"engines": {
"type": "object"
},
"license": {
"type": "string"
},
"scripts": {
"type": "object"
},
"version": {
"type": "string"
},
"git_head": {
"type": "string"
},
"homepage": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"npm_user": {
"type": "string"
},
"commit_oid": {
"type": "string"
},
"release_id": {
"type": "integer"
},
"repository": {
"type": "object",
"nullable": true
},
"description": {
"type": "string"
},
"directories": {
"type": "object",
"nullable": true
},
"maintainers": {
"type": "array",
"items": {
"type": "object"
}
},
"npm_version": {
"type": "string"
},
"contributors": {
"type": "array",
"items": {
"type": "object"
}
},
"dependencies": {
"type": "object"
},
"node_version": {
"type": "string"
},
"deleted_by_id": {
"type": "integer"
},
"has_shrinkwrap": {
"type": "boolean"
},
"dev_dependencies": {
"type": "object"
},
"peer_dependencies": {
"type": "object"
},
"installation_command": {
"type": "string"
},
"optional_dependencies": {
"type": "object"
},
"published_via_actions": {
"type": "boolean"
}
}
},
"package_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"download_url",
"id",
"name",
"sha256",
"sha1",
"md5",
"content_type",
"state",
"size",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"md5": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"sha1": {
"type": "string",
"nullable": true
},
"size": {
"type": "integer"
},
"state": {
"type": "string",
"nullable": true
},
"sha256": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"content_type": {
"type": "string"
},
"download_url": {
"type": "string",
"format": "uri"
}
}
}
},
"nuget_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"name": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"branch": {
"type": "string"
},
"commit": {
"type": "string"
}
}
}
]
}
}
},
"nullable": true
},
"docker_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"target_commitish": {
"type": "string"
},
"rubygems_metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/webhook-rubygems-metadata"
}
},
"container_metadata": {
"type": "object",
"nullable": true,
"properties": {
"tag": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"digest": {
"type": "string"
}
}
},
"labels": {
"type": "object",
"nullable": true
},
"manifest": {
"type": "object",
"nullable": true
}
}
},
"installation_command": {
"type": "string"
}
}
}
},
"description": "Information about the package."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-package-updated
{
"type": "object",
"title": "package updated event",
"required": [
"action",
"package",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"updated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"package": {
"type": "object",
"required": [
"id",
"name",
"namespace",
"description",
"ecosystem",
"package_type",
"html_url",
"created_at",
"updated_at",
"owner",
"package_version",
"registry"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"registry": {
"type": "object",
"nullable": true,
"required": [
"about_url",
"name",
"type",
"url",
"vendor"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"vendor": {
"type": "string"
},
"about_url": {
"type": "string",
"format": "uri"
}
}
},
"ecosystem": {
"type": "string"
},
"namespace": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"package_type": {
"type": "string"
},
"package_version": {
"type": "object",
"required": [
"id",
"version",
"summary",
"name",
"description",
"body",
"body_html",
"html_url",
"target_commitish",
"target_oid",
"created_at",
"updated_at",
"metadata",
"package_files",
"author",
"installation_command"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"release": {
"type": "object",
"required": [
"url",
"html_url",
"id",
"tag_name",
"target_commitish",
"name",
"draft",
"author",
"prerelease",
"created_at",
"published_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"target_commitish": {
"type": "string"
}
}
},
"summary": {
"type": "string"
},
"version": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"manifest": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"tag_name": {
"type": "string"
},
"body_html": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"source_url": {
"type": "string",
"format": "uri"
},
"target_oid": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"package_url": {
"type": "string"
},
"package_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"download_url",
"id",
"name",
"sha256",
"sha1",
"md5",
"content_type",
"state",
"size",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"md5": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"sha1": {
"type": "string",
"nullable": true
},
"size": {
"type": "integer"
},
"state": {
"type": "string"
},
"sha256": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"content_type": {
"type": "string"
},
"download_url": {
"type": "string",
"format": "uri"
}
}
}
},
"docker_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"target_commitish": {
"type": "string"
},
"rubygems_metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/webhook-rubygems-metadata"
}
},
"installation_command": {
"type": "string"
}
}
}
},
"description": "Information about the package."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-page-build
{
"type": "object",
"title": "page_build event",
"required": [
"id",
"build",
"repository",
"sender"
],
"properties": {
"id": {
"type": "integer"
},
"build": {
"type": "object",
"required": [
"url",
"status",
"error",
"pusher",
"commit",
"duration",
"created_at",
"updated_at"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string",
"nullable": true
}
}
},
"commit": {
"type": "string",
"nullable": true
},
"pusher": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"status": {
"type": "string"
},
"duration": {
"type": "integer"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"description": "The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-personal-access-token-request-approved
{
"type": "object",
"title": "personal_access_token_request approved event",
"required": [
"action",
"personal_access_token_request",
"organization",
"sender",
"installation"
],
"properties": {
"action": {
"enum": [
"approved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"personal_access_token_request": {
"$ref": "#/components/schemas/personal-access-token-request"
}
}
}
webhook-personal-access-token-request-cancelled
{
"type": "object",
"title": "personal_access_token_request cancelled event",
"required": [
"action",
"personal_access_token_request",
"organization",
"sender",
"installation"
],
"properties": {
"action": {
"enum": [
"cancelled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"personal_access_token_request": {
"$ref": "#/components/schemas/personal-access-token-request"
}
}
}
webhook-personal-access-token-request-created
{
"type": "object",
"title": "personal_access_token_request created event",
"required": [
"action",
"personal_access_token_request",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"personal_access_token_request": {
"$ref": "#/components/schemas/personal-access-token-request"
}
}
}
webhook-personal-access-token-request-denied
{
"type": "object",
"title": "personal_access_token_request denied event",
"required": [
"action",
"personal_access_token_request",
"organization",
"sender",
"installation"
],
"properties": {
"action": {
"enum": [
"denied"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"personal_access_token_request": {
"$ref": "#/components/schemas/personal-access-token-request"
}
}
}
webhook-ping
{
"type": "object",
"properties": {
"zen": {
"type": "string",
"description": "Random string of GitHub zen."
},
"hook": {
"type": "object",
"title": "Webhook",
"required": [
"id",
"type",
"name",
"active",
"events",
"config",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the webhook."
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"enum": [
"web"
],
"type": "string",
"description": "The type of webhook. The only valid value is 'web'."
},
"type": {
"type": "string"
},
"active": {
"type": "boolean",
"description": "Determines whether the hook is actually triggered for the events it subscribes to."
},
"app_id": {
"type": "integer",
"description": "Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app."
},
"config": {
"type": "object",
"properties": {
"url": {
"$ref": "#/components/schemas/webhook-config-url"
},
"secret": {
"$ref": "#/components/schemas/webhook-config-secret"
},
"content_type": {
"$ref": "#/components/schemas/webhook-config-content-type"
},
"insecure_ssl": {
"$ref": "#/components/schemas/webhook-config-insecure-ssl"
}
}
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"description": "Determines what events the hook is triggered for. Default: ['push']."
},
"ping_url": {
"type": "string",
"format": "uri"
},
"test_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"last_response": {
"$ref": "#/components/schemas/hook-response"
},
"deliveries_url": {
"type": "string",
"format": "uri"
}
},
"description": "The webhook that is being pinged"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"hook_id": {
"type": "integer",
"description": "The ID of the webhook that triggered the ping."
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-ping-form-encoded
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object."
}
},
"description": "The webhooks ping payload encoded with URL encoding."
}
webhook-project-card-converted
{
"type": "object",
"title": "project_card converted event",
"required": [
"action",
"changes",
"project_card",
"sender"
],
"properties": {
"action": {
"enum": [
"converted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"note"
],
"properties": {
"note": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_card": {
"$ref": "#/components/schemas/webhooks_project_card"
}
}
}
webhook-project-card-created
{
"type": "object",
"title": "project_card created event",
"required": [
"action",
"project_card",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_card": {
"$ref": "#/components/schemas/webhooks_project_card"
}
}
}
webhook-project-card-deleted
{
"type": "object",
"title": "project_card deleted event",
"required": [
"action",
"project_card",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/nullable-repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_card": {
"type": "object",
"title": "Project Card",
"required": [
"url",
"project_url",
"column_url",
"column_id",
"id",
"node_id",
"note",
"archived",
"creator",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"description": "The project card's ID"
},
"url": {
"type": "string",
"format": "uri"
},
"note": {
"type": "string",
"nullable": true
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"after_id": {
"type": "integer",
"nullable": true
},
"archived": {
"type": "boolean",
"description": "Whether or not the card is archived"
},
"column_id": {
"type": "integer",
"nullable": true
},
"column_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_url": {
"type": "string",
"format": "uri"
},
"project_url": {
"type": "string",
"format": "uri"
}
}
}
}
}
webhook-project-card-edited
{
"type": "object",
"title": "project_card edited event",
"required": [
"action",
"changes",
"project_card",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"note"
],
"properties": {
"note": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"nullable": true
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_card": {
"$ref": "#/components/schemas/webhooks_project_card"
}
}
}
webhook-project-card-moved
{
"type": "object",
"title": "project_card moved event",
"required": [
"action",
"project_card",
"sender"
],
"properties": {
"action": {
"enum": [
"moved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"column_id"
],
"properties": {
"column_id": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "integer"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_card": {
"allOf": [
{
"type": "object",
"title": "Project Card",
"required": [
"url",
"project_url",
"column_url",
"column_id",
"id",
"node_id",
"note",
"archived",
"creator",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"description": "The project card's ID"
},
"url": {
"type": "string",
"format": "uri"
},
"note": {
"type": "string",
"nullable": true
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"after_id": {
"type": "integer",
"nullable": true
},
"archived": {
"type": "boolean",
"description": "Whether or not the card is archived"
},
"column_id": {
"type": "integer"
},
"column_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_url": {
"type": "string",
"format": "uri"
},
"project_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"required": [
"after_id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"note": {
"type": "string",
"nullable": true
},
"creator": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"after_id": {
"type": "number",
"nullable": true
},
"archived": {
"type": "boolean"
},
"column_id": {
"type": "integer"
},
"column_url": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"project_url": {
"type": "string"
}
}
}
]
}
}
}
webhook-project-closed
{
"type": "object",
"title": "project closed event",
"required": [
"action",
"project",
"sender"
],
"properties": {
"action": {
"enum": [
"closed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"project": {
"$ref": "#/components/schemas/webhooks_project"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-project-column-created
{
"type": "object",
"title": "project_column created event",
"required": [
"action",
"project_column"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_column": {
"$ref": "#/components/schemas/webhooks_project_column"
}
}
}
webhook-project-column-deleted
{
"type": "object",
"title": "project_column deleted event",
"required": [
"action",
"project_column"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/nullable-repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_column": {
"$ref": "#/components/schemas/webhooks_project_column"
}
}
}
webhook-project-column-edited
{
"type": "object",
"title": "project_column edited event",
"required": [
"action",
"changes",
"project_column"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_column": {
"$ref": "#/components/schemas/webhooks_project_column"
}
}
}
webhook-project-column-moved
{
"type": "object",
"title": "project_column moved event",
"required": [
"action",
"project_column",
"sender"
],
"properties": {
"action": {
"enum": [
"moved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"project_column": {
"$ref": "#/components/schemas/webhooks_project_column"
}
}
}
webhook-project-created
{
"type": "object",
"title": "project created event",
"required": [
"action",
"project",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"project": {
"$ref": "#/components/schemas/webhooks_project"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-project-deleted
{
"type": "object",
"title": "project deleted event",
"required": [
"action",
"project"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"project": {
"$ref": "#/components/schemas/webhooks_project"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/nullable-repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-project-edited
{
"type": "object",
"title": "project edited event",
"required": [
"action",
"project"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body if the action was `edited`."
}
}
},
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The changes to the project if the action was `edited`."
}
}
}
},
"description": "The changes to the project if the action was `edited`."
},
"project": {
"$ref": "#/components/schemas/webhooks_project"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-project-reopened
{
"type": "object",
"title": "project reopened event",
"required": [
"action",
"project",
"sender"
],
"properties": {
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"project": {
"$ref": "#/components/schemas/webhooks_project"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-projects-v2-item-archived
{
"type": "object",
"title": "Projects v2 Item Archived Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender",
"changes"
],
"properties": {
"action": {
"enum": [
"archived"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_project_changes"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-converted
{
"type": "object",
"title": "Projects v2 Item Converted Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender",
"changes"
],
"properties": {
"action": {
"enum": [
"converted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"content_type": {
"type": "object",
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string",
"nullable": true
}
}
}
}
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-created
{
"type": "object",
"title": "Projects v2 Item Created Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-deleted
{
"type": "object",
"title": "Projects v2 Item Deleted Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-edited
{
"type": "object",
"title": "Projects v2 Item Edited Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"oneOf": [
{
"type": "object",
"required": [
"field_value"
],
"properties": {
"field_value": {
"type": "object",
"properties": {
"to": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"$ref": "#/components/schemas/projects-v2-single-select-option"
},
{
"$ref": "#/components/schemas/projects-v2-iteration-setting"
}
],
"nullable": true
},
"from": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"$ref": "#/components/schemas/projects-v2-single-select-option"
},
{
"$ref": "#/components/schemas/projects-v2-iteration-setting"
}
],
"nullable": true
},
"field_name": {
"type": "string"
},
"field_type": {
"type": "string"
},
"field_node_id": {
"type": "string"
},
"project_number": {
"type": "integer"
}
}
}
}
},
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
}
}
}
],
"description": "The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-reordered
{
"type": "object",
"title": "Projects v2 Item Reordered Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender",
"changes"
],
"properties": {
"action": {
"enum": [
"reordered"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"previous_projects_v2_item_node_id": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
}
}
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-item-restored
{
"type": "object",
"title": "Projects v2 Item Restored Event",
"required": [
"action",
"projects_v2_item",
"organization",
"sender",
"changes"
],
"properties": {
"action": {
"enum": [
"restored"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_project_changes"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_item": {
"$ref": "#/components/schemas/projects-v2-item"
}
}
}
webhook-projects-v2-project-closed
{
"type": "object",
"title": "Projects v2 Project Closed Event",
"required": [
"action",
"projects_v2",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"closed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"projects_v2": {
"$ref": "#/components/schemas/projects-v2"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-projects-v2-project-created
{
"type": "object",
"required": [
"action",
"projects_v2",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"projects_v2": {
"$ref": "#/components/schemas/projects-v2"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
},
"description": "A project was created"
}
webhook-projects-v2-project-deleted
{
"type": "object",
"title": "Projects v2 Project Deleted Event",
"required": [
"action",
"projects_v2",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"projects_v2": {
"$ref": "#/components/schemas/projects-v2"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-projects-v2-project-edited
{
"type": "object",
"title": "Projects v2 Project Edited Event",
"required": [
"action",
"projects_v2",
"organization",
"sender",
"changes"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"title": {
"type": "object",
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
}
}
},
"public": {
"type": "object",
"properties": {
"to": {
"type": "boolean"
},
"from": {
"type": "boolean"
}
}
},
"description": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
},
"short_description": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
}
}
},
"projects_v2": {
"$ref": "#/components/schemas/projects-v2"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-projects-v2-project-reopened
{
"type": "object",
"title": "Projects v2 Project Reopened Event",
"required": [
"action",
"projects_v2",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"projects_v2": {
"$ref": "#/components/schemas/projects-v2"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-projects-v2-status-update-created
{
"type": "object",
"title": "Projects v2 Status Update Created Event",
"required": [
"action",
"projects_v2_status_update",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_status_update": {
"$ref": "#/components/schemas/projects-v2-status-update"
}
}
}
webhook-projects-v2-status-update-deleted
{
"type": "object",
"title": "Projects v2 Status Update Deleted Event",
"required": [
"action",
"projects_v2_status_update",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_status_update": {
"$ref": "#/components/schemas/projects-v2-status-update"
}
}
}
webhook-projects-v2-status-update-edited
{
"type": "object",
"title": "Projects v2 Status Update Edited Event",
"required": [
"action",
"projects_v2_status_update",
"organization",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"properties": {
"to": {
"type": "string",
"nullable": true
},
"from": {
"type": "string",
"nullable": true
}
}
},
"status": {
"type": "object",
"properties": {
"to": {
"enum": [
"INACTIVE",
"ON_TRACK",
"AT_RISK",
"OFF_TRACK",
"COMPLETE"
],
"type": "string",
"nullable": true
},
"from": {
"enum": [
"INACTIVE",
"ON_TRACK",
"AT_RISK",
"OFF_TRACK",
"COMPLETE"
],
"type": "string",
"nullable": true
}
}
},
"start_date": {
"type": "object",
"properties": {
"to": {
"type": "string",
"format": "date",
"nullable": true
},
"from": {
"type": "string",
"format": "date",
"nullable": true
}
}
},
"target_date": {
"type": "object",
"properties": {
"to": {
"type": "string",
"format": "date",
"nullable": true
},
"from": {
"type": "string",
"format": "date",
"nullable": true
}
}
}
}
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"projects_v2_status_update": {
"$ref": "#/components/schemas/projects-v2-status-update"
}
}
}
webhook-public
{
"type": "object",
"title": "public event",
"required": [
"repository",
"sender"
],
"properties": {
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-pull-request-assigned
{
"type": "object",
"title": "pull_request assigned event",
"required": [
"action",
"number",
"pull_request",
"assignee",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"assigned"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/webhooks_user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-auto-merge-disabled
{
"type": "object",
"title": "pull_request auto_merge_disabled event",
"required": [
"action",
"number",
"pull_request",
"reason",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"auto_merge_disabled"
],
"type": "string"
},
"number": {
"type": "integer"
},
"reason": {
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-auto-merge-enabled
{
"type": "object",
"title": "pull_request auto_merge_enabled event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"auto_merge_enabled"
],
"type": "string"
},
"number": {
"type": "integer"
},
"reason": {
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-closed
{
"type": "object",
"title": "pull_request closed event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"closed"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-converted-to-draft
{
"type": "object",
"title": "pull_request converted_to_draft event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"converted_to_draft"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-demilestoned
{
"type": "object",
"title": "pull_request demilestoned event",
"required": [
"action",
"number",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"demilestoned"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/webhooks_pull_request_5"
}
}
}
webhook-pull-request-dequeued
{
"type": "object",
"title": "pull_request dequeued event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender",
"reason"
],
"properties": {
"action": {
"enum": [
"dequeued"
],
"type": "string"
},
"number": {
"type": "integer"
},
"reason": {
"enum": [
"UNKNOWN_REMOVAL_REASON",
"MANUAL",
"MERGE",
"MERGE_CONFLICT",
"CI_FAILURE",
"CI_TIMEOUT",
"ALREADY_MERGED",
"QUEUE_CLEARED",
"ROLL_BACK",
"BRANCH_PROTECTIONS",
"GIT_TREE_INVALID",
"INVALID_MERGE_COMMIT"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-edited
{
"type": "object",
"title": "pull_request edited event",
"required": [
"action",
"changes",
"number",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"base": {
"type": "object",
"required": [
"ref",
"sha"
],
"properties": {
"ref": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
},
"sha": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body if the action was `edited`."
}
}
},
"title": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the title if the action was `edited`."
}
}
}
},
"description": "The changes to the comment if the action was `edited`."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-enqueued
{
"type": "object",
"title": "pull_request enqueued event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"enqueued"
],
"type": "string"
},
"number": {
"type": "integer"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_discussions",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-labeled
{
"type": "object",
"title": "pull_request labeled event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"labeled"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-locked
{
"type": "object",
"title": "pull_request locked event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"locked"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-milestoned
{
"type": "object",
"title": "pull_request milestoned event",
"required": [
"action",
"number",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"milestoned"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"milestone": {
"$ref": "#/components/schemas/milestone"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/webhooks_pull_request_5"
}
}
}
webhook-pull-request-opened
{
"type": "object",
"title": "pull_request opened event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"opened"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-ready-for-review
{
"type": "object",
"title": "pull_request ready_for_review event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"ready_for_review"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-reopened
{
"type": "object",
"title": "pull_request reopened event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"$ref": "#/components/schemas/pull-request-webhook"
}
}
}
webhook-pull-request-review-comment-created
{
"type": "object",
"title": "pull_request_review_comment created event",
"required": [
"action",
"comment",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"type": "object",
"title": "Pull Request Review Comment",
"required": [
"url",
"pull_request_review_id",
"id",
"node_id",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"author_association",
"_links",
"start_line",
"original_start_line",
"original_line",
"line",
"start_side",
"side",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the pull request review comment."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request review comment"
},
"body": {
"type": "string",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"description": "The relative path of the file to which the comment applies."
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"description": "The side of the first line of the range for a multi-line comment."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string",
"description": "The node ID of the pull request review comment."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "HTML URL for the pull request review comment."
},
"position": {
"type": "integer",
"nullable": true,
"description": "The line index in the diff to which the comment applies."
},
"commit_id": {
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"diff_hunk": {
"type": "string",
"description": "The diff of the line that the comment refers to."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT",
null
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"description": "The comment ID to reply to."
},
"pull_request_url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request that the review comment belongs to."
},
"original_position": {
"type": "integer",
"description": "The index of the original line in the diff to which the comment applies."
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"original_commit_id": {
"type": "string",
"description": "The SHA of the original commit to which the comment applies."
},
"original_start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the pull request review to which the comment belongs."
}
},
"description": "The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-comment-deleted
{
"type": "object",
"title": "pull_request_review_comment deleted event",
"required": [
"action",
"comment",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"comment": {
"$ref": "#/components/schemas/webhooks_review_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-comment-edited
{
"type": "object",
"title": "pull_request_review_comment edited event",
"required": [
"action",
"changes",
"comment",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_changes"
},
"comment": {
"$ref": "#/components/schemas/webhooks_review_comment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-dismissed
{
"type": "object",
"title": "pull_request_review dismissed event",
"required": [
"action",
"review",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"dismissed"
],
"type": "string"
},
"review": {
"type": "object",
"required": [
"id",
"node_id",
"user",
"body",
"commit_id",
"submitted_at",
"state",
"html_url",
"pull_request_url",
"author_association",
"_links"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the review"
},
"body": {
"type": "string",
"nullable": true,
"description": "The text of the review."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"state": {
"enum": [
"dismissed",
"approved",
"changes_requested"
],
"type": "string"
},
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"commit_id": {
"type": "string",
"description": "A commit SHA for the review."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"submitted_at": {
"type": "string",
"format": "date-time"
},
"pull_request_url": {
"type": "string",
"format": "uri"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
}
},
"description": "The review that was affected."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Simple Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-edited
{
"type": "object",
"title": "pull_request_review edited event",
"required": [
"action",
"changes",
"review",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"review": {
"$ref": "#/components/schemas/webhooks_review"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body if the action was `edited`."
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Simple Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-request-removed
{
"oneOf": [
{
"type": "object",
"required": [
"requested_reviewer",
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"review_request_removed"
],
"type": "string"
},
"number": {
"type": "integer",
"description": "The pull request number."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
},
"requested_reviewer": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
}
},
{
"type": "object",
"required": [
"requested_team",
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"review_request_removed"
],
"type": "string"
},
"number": {
"type": "integer",
"description": "The pull request number."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
},
"requested_team": {
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
}
}
],
"title": "pull_request review_request_removed event",
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/required/17"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-requested
{
"oneOf": [
{
"type": "object",
"required": [
"requested_reviewer",
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"review_requested"
],
"type": "string"
},
"number": {
"type": "integer",
"description": "The pull request number."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
},
"requested_reviewer": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
}
},
{
"type": "object",
"required": [
"requested_team",
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"review_requested"
],
"type": "string"
},
"number": {
"type": "integer",
"description": "The pull request number."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
},
"requested_team": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
}
}
],
"title": "pull_request review_requested event",
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/oneOf/0/properties/pull_request/required/17"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/oneOf/1/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-submitted
{
"type": "object",
"title": "pull_request_review submitted event",
"required": [
"action",
"review",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"submitted"
],
"type": "string"
},
"review": {
"$ref": "#/components/schemas/webhooks_review"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Simple Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-thread-resolved
{
"type": "object",
"title": "pull_request_review_thread resolved event",
"required": [
"action",
"thread",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"resolved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"thread": {
"type": "object",
"required": [
"node_id",
"comments"
],
"properties": {
"node_id": {
"type": "string"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"title": "Pull Request Review Comment",
"required": [
"url",
"pull_request_review_id",
"id",
"node_id",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"author_association",
"_links",
"start_line",
"original_start_line",
"original_line",
"line",
"start_side",
"side",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the pull request review comment."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request review comment"
},
"body": {
"type": "string",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"description": "The relative path of the file to which the comment applies."
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"description": "The side of the first line of the range for a multi-line comment."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string",
"description": "The node ID of the pull request review comment."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "HTML URL for the pull request review comment."
},
"position": {
"type": "integer",
"nullable": true,
"description": "The line index in the diff to which the comment applies."
},
"commit_id": {
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"diff_hunk": {
"type": "string",
"description": "The diff of the line that the comment refers to."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT",
null
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"description": "The comment ID to reply to."
},
"pull_request_url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request that the review comment belongs to."
},
"original_position": {
"type": "integer",
"description": "The index of the original line in the diff to which the comment applies."
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"original_commit_id": {
"type": "string",
"description": "The SHA of the original commit to which the comment applies."
},
"original_start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the pull request review to which the comment belongs."
}
},
"description": "The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself."
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Simple Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-review-thread-unresolved
{
"type": "object",
"title": "pull_request_review_thread unresolved event",
"required": [
"action",
"thread",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"unresolved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"thread": {
"type": "object",
"required": [
"node_id",
"comments"
],
"properties": {
"node_id": {
"type": "string"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"title": "Pull Request Review Comment",
"required": [
"url",
"pull_request_review_id",
"id",
"node_id",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"author_association",
"_links",
"start_line",
"original_start_line",
"original_line",
"line",
"start_side",
"side",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the pull request review comment."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request review comment"
},
"body": {
"type": "string",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"description": "The relative path of the file to which the comment applies."
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"description": "The side of the first line of the range for a multi-line comment."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string",
"description": "The node ID of the pull request review comment."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "HTML URL for the pull request review comment."
},
"position": {
"type": "integer",
"nullable": true,
"description": "The line index in the diff to which the comment applies."
},
"commit_id": {
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"diff_hunk": {
"type": "string",
"description": "The diff of the line that the comment refers to."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT",
null
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"description": "The comment ID to reply to."
},
"pull_request_url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request that the review comment belongs to."
},
"original_position": {
"type": "integer",
"description": "The index of the original line in the diff to which the comment applies."
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"original_commit_id": {
"type": "string",
"description": "The SHA of the original commit to which the comment applies."
},
"original_start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the pull request review to which the comment belongs."
}
},
"description": "The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself."
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Simple Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string"
},
"title": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"nullable": true
},
"issue_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-synchronize
{
"type": "object",
"title": "pull_request synchronize event",
"required": [
"action",
"number",
"before",
"after",
"pull_request",
"repository",
"sender"
],
"properties": {
"after": {
"type": "string"
},
"action": {
"enum": [
"synchronize"
],
"type": "string"
},
"before": {
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit message title."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-unassigned
{
"type": "object",
"title": "pull_request unassigned event",
"required": [
"action",
"number",
"pull_request",
"repository"
],
"properties": {
"action": {
"enum": [
"unassigned"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/webhooks_user_mannequin"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-unlabeled
{
"type": "object",
"title": "pull_request unlabeled event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"label": {
"$ref": "#/components/schemas/webhooks_label"
},
"action": {
"enum": [
"unlabeled"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit message title."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string",
"nullable": true
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-pull-request-unlocked
{
"type": "object",
"title": "pull_request unlocked event",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"unlocked"
],
"type": "string"
},
"number": {
"$ref": "#/components/schemas/webhooks_number"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"pull_request": {
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"nullable": true,
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
}
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/base/properties/repo/properties/use_squash_pr_title_as_default"
},
{
"op": "remove",
"path": "/properties/pull_request/properties/head/properties/repo/properties/use_squash_pr_title_as_default"
}
],
"version": "2026-03-10",
"changeset": "remove_use_squash_pr_title_as_default"
},
{
"patch": [
{
"op": "remove",
"path": "/properties/pull_request/properties/merge_commit_sha"
},
{
"op": "remove",
"path": "/properties/pull_request/required/17"
}
],
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhook-push
{
"type": "object",
"title": "push event",
"required": [
"ref",
"before",
"after",
"created",
"deleted",
"forced",
"base_ref",
"compare",
"commits",
"head_commit",
"repository",
"pusher"
],
"properties": {
"ref": {
"type": "string",
"description": "The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`."
},
"after": {
"type": "string",
"description": "The SHA of the most recent commit on `ref` after the push."
},
"before": {
"type": "string",
"description": "The SHA of the most recent commit on `ref` before the push."
},
"forced": {
"type": "boolean",
"description": "Whether this push was a force push of the `ref`."
},
"pusher": {
"type": "object",
"title": "Committer",
"required": [
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"commits": {
"type": "array",
"items": {
"type": "object",
"title": "Commit",
"required": [
"id",
"tree_id",
"distinct",
"message",
"timestamp",
"url",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the commit API resource."
},
"added": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files added in the commit. A maximum of 3000 changed files will be reported per commit."
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string",
"description": "The commit message."
},
"removed": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit."
},
"tree_id": {
"type": "string"
},
"distinct": {
"type": "boolean",
"description": "Whether this commit is distinct from any that have been pushed before."
},
"modified": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit."
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The ISO 8601 timestamp of the commit."
}
}
},
"description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits."
},
"compare": {
"type": "string",
"description": "URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit."
},
"created": {
"type": "boolean",
"description": "Whether this push created the `ref`."
},
"deleted": {
"type": "boolean",
"description": "Whether this push deleted the `ref`."
},
"base_ref": {
"$ref": "#/components/schemas/webhooks_nullable_string"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
}
},
"description": "A git repository"
},
"head_commit": {
"type": "object",
"title": "Commit",
"nullable": true,
"required": [
"id",
"tree_id",
"distinct",
"message",
"timestamp",
"url",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the commit API resource."
},
"added": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files added in the commit."
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string",
"description": "The commit message."
},
"removed": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files removed in the commit."
},
"tree_id": {
"type": "string"
},
"distinct": {
"type": "boolean",
"description": "Whether this commit is distinct from any that have been pushed before."
},
"modified": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of files modified by the commit."
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The ISO 8601 timestamp of the commit."
}
}
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-registry-package-published
{
"type": "object",
"required": [
"action",
"registry_package",
"sender"
],
"properties": {
"action": {
"enum": [
"published"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"registry_package": {
"type": "object",
"required": [
"id",
"name",
"namespace",
"description",
"ecosystem",
"package_type",
"html_url",
"created_at",
"updated_at",
"owner",
"package_version",
"registry"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"required": [
"login",
"id",
"node_id",
"avatar_url",
"gravatar_id",
"url",
"html_url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"type",
"site_admin"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"html_url": {
"type": "string"
},
"registry": {
"type": "object",
"nullable": true,
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"vendor": {
"type": "string"
},
"about_url": {
"type": "string"
}
}
},
"ecosystem": {
"type": "string"
},
"namespace": {
"type": "string"
},
"created_at": {
"type": "string",
"nullable": true
},
"updated_at": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"package_type": {
"type": "string"
},
"package_version": {
"type": "object",
"nullable": true,
"required": [
"id",
"version",
"name",
"description",
"summary",
"html_url",
"metadata",
"package_files",
"installation_command",
"package_url"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"required": [
"login",
"id",
"node_id",
"avatar_url",
"gravatar_id",
"url",
"html_url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"type",
"site_admin"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"release": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"html_url": {
"type": "string"
},
"tag_name": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"target_commitish": {
"type": "string"
}
}
},
"summary": {
"type": "string"
},
"version": {
"type": "string"
},
"html_url": {
"type": "string"
},
"manifest": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"tag_name": {
"type": "string"
},
"body_html": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"target_oid": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"package_url": {
"type": "string"
},
"npm_metadata": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"type": "string"
},
"os": {
"type": "array",
"items": {
"type": "string"
}
},
"bin": {
"type": "object"
},
"cpu": {
"type": "array",
"items": {
"type": "string"
}
},
"man": {
"type": "object"
},
"bugs": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"dist": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"main": {
"type": "string"
},
"name": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "string"
}
},
"author": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"readme": {
"type": "string"
},
"engines": {
"type": "object"
},
"license": {
"type": "string"
},
"scripts": {
"type": "object"
},
"version": {
"type": "string"
},
"git_head": {
"type": "string"
},
"homepage": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"npm_user": {
"type": "string"
},
"commit_oid": {
"type": "string"
},
"release_id": {
"type": "integer"
},
"repository": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"description": {
"type": "string"
},
"directories": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"nullable": true
},
"maintainers": {
"type": "array",
"items": {
"type": "string"
}
},
"npm_version": {
"type": "string"
},
"contributors": {
"type": "array",
"items": {
"type": "string"
}
},
"dependencies": {
"type": "object"
},
"node_version": {
"type": "string"
},
"deleted_by_id": {
"type": "integer"
},
"has_shrinkwrap": {
"type": "boolean"
},
"dev_dependencies": {
"type": "object"
},
"peer_dependencies": {
"type": "object"
},
"installation_command": {
"type": "string"
},
"optional_dependencies": {
"type": "object"
},
"published_via_actions": {
"type": "boolean"
}
}
},
"package_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"download_url",
"id",
"name",
"sha256",
"sha1",
"md5",
"content_type",
"state",
"size",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"md5": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"sha1": {
"type": "string",
"nullable": true
},
"size": {
"type": "integer"
},
"state": {
"type": "string",
"nullable": true
},
"sha256": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"content_type": {
"type": "string"
},
"download_url": {
"type": "string"
}
}
}
},
"nuget_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
},
{
"type": "integer"
}
],
"nullable": true
},
"name": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"branch": {
"type": "string"
},
"commit": {
"type": "string"
}
}
}
]
}
}
},
"nullable": true
},
"docker_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"target_commitish": {
"type": "string"
},
"rubygems_metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/webhook-rubygems-metadata"
}
},
"container_metadata": {
"type": "object",
"properties": {
"tag": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"digest": {
"type": "string"
}
}
},
"labels": {
"type": "object",
"nullable": true
},
"manifest": {
"type": "object",
"nullable": true
}
}
},
"installation_command": {
"type": "string"
}
}
}
}
}
}
}
webhook-registry-package-updated
{
"type": "object",
"required": [
"action",
"registry_package",
"sender"
],
"properties": {
"action": {
"enum": [
"updated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"registry_package": {
"type": "object",
"required": [
"id",
"name",
"namespace",
"description",
"ecosystem",
"package_type",
"html_url",
"created_at",
"updated_at",
"owner",
"package_version",
"registry"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"owner": {
"type": "object",
"required": [
"login",
"id",
"node_id",
"avatar_url",
"gravatar_id",
"url",
"html_url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"type",
"site_admin"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"html_url": {
"type": "string"
},
"registry": {
"type": "object",
"nullable": true
},
"ecosystem": {
"type": "string"
},
"namespace": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"nullable": true
},
"package_type": {
"type": "string"
},
"package_version": {
"type": "object",
"required": [
"id",
"version",
"name",
"description",
"summary",
"body",
"body_html",
"html_url",
"target_commitish",
"target_oid",
"created_at",
"updated_at",
"metadata",
"package_files",
"author",
"installation_command",
"package_url"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"required": [
"login",
"id",
"node_id",
"avatar_url",
"gravatar_id",
"url",
"html_url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"type",
"site_admin"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"release": {
"type": "object",
"required": [
"url",
"html_url",
"id",
"tag_name",
"target_commitish",
"name",
"draft",
"author",
"prerelease",
"created_at",
"published_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"author": {
"type": "object",
"required": [
"login",
"id",
"node_id",
"avatar_url",
"gravatar_id",
"url",
"html_url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"type",
"site_admin"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"html_url": {
"type": "string"
},
"tag_name": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"target_commitish": {
"type": "string"
}
}
},
"summary": {
"type": "string"
},
"version": {
"type": "string"
},
"html_url": {
"type": "string"
},
"manifest": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"tag_name": {
"type": "string"
},
"body_html": {
"type": "string"
},
"created_at": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"target_oid": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"package_url": {
"type": "string"
},
"package_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"md5": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"sha1": {
"type": "string",
"nullable": true
},
"size": {
"type": "integer"
},
"state": {
"type": "string"
},
"sha256": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"content_type": {
"type": "string"
},
"download_url": {
"type": "string"
}
}
}
},
"docker_metadata": {
"type": "array",
"items": {
"type": "object",
"nullable": true,
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"target_commitish": {
"type": "string"
},
"rubygems_metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/webhook-rubygems-metadata"
}
},
"installation_command": {
"type": "string"
}
}
}
}
}
}
}
webhook-release-created
{
"type": "object",
"title": "release created event",
"required": [
"action",
"release",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"$ref": "#/components/schemas/webhooks_release"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-deleted
{
"type": "object",
"title": "release deleted event",
"required": [
"action",
"release",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"$ref": "#/components/schemas/webhooks_release"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-edited
{
"type": "object",
"title": "release edited event",
"required": [
"action",
"changes",
"release",
"repository"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body if the action was `edited`."
}
}
},
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the name if the action was `edited`."
}
}
},
"tag_name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the tag_name if the action was `edited`."
}
}
},
"make_latest": {
"type": "object",
"required": [
"to"
],
"properties": {
"to": {
"type": "boolean",
"description": "Whether this release was explicitly `edited` to be the latest."
}
}
}
}
},
"release": {
"$ref": "#/components/schemas/webhooks_release"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-prereleased
{
"type": "object",
"title": "release prereleased event",
"required": [
"action",
"release",
"repository"
],
"properties": {
"action": {
"enum": [
"prereleased"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"type": "object",
"title": "Release",
"required": [
"assets",
"assets_url",
"author",
"body",
"created_at",
"draft",
"html_url",
"id",
"immutable",
"name",
"node_id",
"prerelease",
"published_at",
"tag_name",
"tarball_url",
"target_commitish",
"updated_at",
"upload_url",
"url",
"zipball_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean",
"description": "Whether the release is a draft or published"
},
"assets": {
"type": "array",
"items": {
"type": "object",
"title": "Release Asset",
"nullable": true,
"required": [
"url",
"browser_download_url",
"id",
"node_id",
"name",
"label",
"state",
"digest",
"content_type",
"size",
"download_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"description": "The file name of the asset."
},
"size": {
"type": "integer"
},
"label": {
"type": "string",
"nullable": true
},
"state": {
"enum": [
"uploaded"
],
"type": "string",
"description": "State of the release asset."
},
"digest": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"uploader": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_type": {
"type": "string"
},
"download_count": {
"type": "integer"
},
"browser_download_url": {
"type": "string",
"format": "uri"
}
},
"description": "Data related to a release."
}
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string",
"description": "The name of the tag."
},
"immutable": {
"type": "boolean",
"description": "Whether or not the release is immutable."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"assets_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"prerelease": {
"enum": [
true
],
"type": "boolean",
"description": "Whether the release is identified as a prerelease or a full release."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"upload_url": {
"type": "string",
"format": "uri-template"
},
"tarball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"zipball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"published_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"discussion_url": {
"type": "string",
"format": "uri"
},
"target_commitish": {
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from."
}
},
"description": "The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-published
{
"type": "object",
"title": "release published event",
"required": [
"action",
"release",
"repository"
],
"properties": {
"action": {
"enum": [
"published"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"$ref": "#/components/schemas/webhooks_release_1"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-released
{
"type": "object",
"title": "release released event",
"required": [
"action",
"release",
"repository"
],
"properties": {
"action": {
"enum": [
"released"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"$ref": "#/components/schemas/webhooks_release"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-release-unpublished
{
"type": "object",
"title": "release unpublished event",
"required": [
"action",
"release",
"repository"
],
"properties": {
"action": {
"enum": [
"unpublished"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"release": {
"$ref": "#/components/schemas/webhooks_release_1"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-advisory-published
{
"type": "object",
"title": "Repository advisory published event",
"required": [
"action",
"repository",
"repository_advisory"
],
"properties": {
"action": {
"enum": [
"published"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository_advisory": {
"$ref": "#/components/schemas/repository-advisory"
}
}
}
webhook-repository-advisory-reported
{
"type": "object",
"title": "Repository advisory reported event",
"required": [
"action",
"repository",
"repository_advisory"
],
"properties": {
"action": {
"enum": [
"reported"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository_advisory": {
"$ref": "#/components/schemas/repository-advisory"
}
}
}
webhook-repository-archived
{
"type": "object",
"title": "repository archived event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"archived"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-created
{
"type": "object",
"title": "repository created event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-deleted
{
"type": "object",
"title": "repository deleted event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-dispatch-sample
{
"type": "object",
"title": "repository_dispatch event",
"required": [
"action",
"branch",
"client_payload",
"repository",
"sender",
"installation"
],
"properties": {
"action": {
"type": "string",
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
},
"branch": {
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"client_payload": {
"type": "object",
"nullable": true,
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
"additionalProperties": true
}
}
}
webhook-repository-edited
{
"type": "object",
"title": "repository edited event",
"required": [
"action",
"changes",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"topics": {
"type": "object",
"properties": {
"from": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
}
}
},
"homepage": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"nullable": true
}
}
},
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"nullable": true
}
}
},
"default_branch": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-import
{
"type": "object",
"title": "repository_import event",
"required": [
"status",
"repository",
"sender"
],
"properties": {
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"status": {
"enum": [
"success",
"cancelled",
"failure"
],
"type": "string"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-privatized
{
"type": "object",
"title": "repository privatized event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"privatized"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-publicized
{
"type": "object",
"title": "repository publicized event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"publicized"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-renamed
{
"type": "object",
"title": "repository renamed event",
"required": [
"action",
"changes",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"renamed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"repository"
],
"properties": {
"repository": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
}
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-ruleset-created
{
"type": "object",
"title": "repository ruleset created event",
"required": [
"action",
"repository_ruleset",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository_ruleset": {
"$ref": "#/components/schemas/repository-ruleset"
}
}
}
webhook-repository-ruleset-deleted
{
"type": "object",
"title": "repository ruleset deleted event",
"required": [
"action",
"repository_ruleset",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository_ruleset": {
"$ref": "#/components/schemas/repository-ruleset"
}
}
}
webhook-repository-ruleset-edited
{
"type": "object",
"title": "repository ruleset edited event",
"required": [
"action",
"repository_ruleset",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"name": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
},
"rules": {
"type": "object",
"properties": {
"added": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule"
}
},
"deleted": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-rule"
}
},
"updated": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rule": {
"$ref": "#/components/schemas/repository-rule"
},
"changes": {
"type": "object",
"properties": {
"pattern": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
},
"rule_type": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
},
"configuration": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"conditions": {
"type": "object",
"properties": {
"added": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-conditions"
}
},
"deleted": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repository-ruleset-conditions"
}
},
"updated": {
"type": "array",
"items": {
"type": "object",
"properties": {
"changes": {
"type": "object",
"properties": {
"target": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
},
"exclude": {
"type": "object",
"properties": {
"from": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"include": {
"type": "object",
"properties": {
"from": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"condition_type": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"condition": {
"$ref": "#/components/schemas/repository-ruleset-conditions"
}
}
}
}
}
},
"enforcement": {
"type": "object",
"properties": {
"from": {
"type": "string"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository_ruleset": {
"$ref": "#/components/schemas/repository-ruleset"
}
}
}
webhook-repository-transferred
{
"type": "object",
"title": "repository transferred event",
"required": [
"action",
"changes",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"transferred"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"required": [
"owner"
],
"properties": {
"owner": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"properties": {
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"organization": {
"type": "object",
"title": "Organization",
"required": [
"login",
"id",
"node_id",
"url",
"repos_url",
"events_url",
"hooks_url",
"issues_url",
"members_url",
"public_members_url",
"avatar_url",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri"
},
"description": {
"type": "string",
"nullable": true
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"public_members_url": {
"type": "string",
"format": "uri-template"
}
}
}
}
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-unarchived
{
"type": "object",
"title": "repository unarchived event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"unarchived"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-vulnerability-alert-create
{
"type": "object",
"title": "repository_vulnerability_alert create event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/webhooks_alert"
},
"action": {
"enum": [
"create"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-vulnerability-alert-dismiss
{
"type": "object",
"title": "repository_vulnerability_alert dismiss event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"type": "object",
"title": "Repository Vulnerability Alert Alert",
"required": [
"affected_package_name",
"affected_range",
"created_at",
"dismiss_reason",
"dismissed_at",
"dismisser",
"external_identifier",
"external_reference",
"ghsa_id",
"id",
"node_id",
"number",
"severity",
"state"
],
"properties": {
"id": {
"type": "integer"
},
"state": {
"enum": [
"dismissed"
],
"type": "string"
},
"number": {
"type": "integer"
},
"ghsa_id": {
"type": "string"
},
"node_id": {
"type": "string"
},
"fixed_at": {
"type": "string",
"format": "date-time"
},
"fixed_in": {
"type": "string"
},
"severity": {
"type": "string"
},
"dismisser": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string"
},
"fix_reason": {
"type": "string"
},
"dismissed_at": {
"type": "string"
},
"affected_range": {
"type": "string"
},
"dismiss_reason": {
"type": "string"
},
"dismiss_comment": {
"type": "string",
"nullable": true
},
"external_reference": {
"type": "string",
"format": "uri",
"nullable": true
},
"external_identifier": {
"type": "string"
},
"affected_package_name": {
"type": "string"
}
},
"description": "The security alert of the vulnerable dependency."
},
"action": {
"enum": [
"dismiss"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-vulnerability-alert-reopen
{
"type": "object",
"title": "repository_vulnerability_alert reopen event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/webhooks_alert"
},
"action": {
"enum": [
"reopen"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-repository-vulnerability-alert-resolve
{
"type": "object",
"title": "repository_vulnerability_alert resolve event",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"type": "object",
"title": "Repository Vulnerability Alert Alert",
"required": [
"affected_package_name",
"affected_range",
"created_at",
"external_identifier",
"external_reference",
"ghsa_id",
"id",
"node_id",
"number",
"severity",
"state"
],
"properties": {
"id": {
"type": "integer"
},
"state": {
"enum": [
"fixed",
"open"
],
"type": "string"
},
"number": {
"type": "integer"
},
"ghsa_id": {
"type": "string"
},
"node_id": {
"type": "string"
},
"fixed_at": {
"type": "string",
"format": "date-time"
},
"fixed_in": {
"type": "string"
},
"severity": {
"type": "string"
},
"dismisser": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string"
},
"fix_reason": {
"type": "string"
},
"dismissed_at": {
"type": "string"
},
"affected_range": {
"type": "string"
},
"dismiss_reason": {
"type": "string"
},
"external_reference": {
"type": "string",
"format": "uri",
"nullable": true
},
"external_identifier": {
"type": "string"
},
"affected_package_name": {
"type": "string"
}
},
"description": "The security alert of the vulnerable dependency."
},
"action": {
"enum": [
"resolve"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-rubygems-metadata
{
"type": "object",
"title": "Ruby Gems metadata",
"properties": {
"name": {
"type": "string"
},
"repo": {
"type": "string"
},
"readme": {
"type": "string"
},
"homepage": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"platform": {
"type": "string"
},
"commit_oid": {
"type": "string"
},
"description": {
"type": "string"
},
"dependencies": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"version_info": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
}
}
}
}
webhook-secret-scanning-alert-assigned
{
"type": "object",
"title": "secret_scanning_alert assigned event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"assigned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-created
{
"type": "object",
"title": "secret_scanning_alert created event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-location-created
{
"type": "object",
"title": "Secret Scanning Alert Location Created Event",
"required": [
"location",
"alert",
"repository",
"sender"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"location": {
"$ref": "#/components/schemas/secret-scanning-location"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-location-created-form-encoded
{
"type": "object",
"title": "Secret Scanning Alert Location Created Event",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string",
"description": "A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object."
}
}
}
webhook-secret-scanning-alert-publicly-leaked
{
"type": "object",
"title": "secret_scanning_alert publicly leaked event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"publicly_leaked"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-reopened
{
"type": "object",
"title": "secret_scanning_alert reopened event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"reopened"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-resolved
{
"type": "object",
"title": "secret_scanning_alert resolved event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"resolved"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-unassigned
{
"type": "object",
"title": "secret_scanning_alert unassigned event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"unassigned"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"assignee": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-alert-validated
{
"type": "object",
"title": "secret_scanning_alert validated event",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"alert": {
"$ref": "#/components/schemas/secret-scanning-alert-webhook"
},
"action": {
"enum": [
"validated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-secret-scanning-scan-completed
{
"type": "object",
"title": "secret_scanning_scan completed event",
"required": [
"action",
"source",
"type",
"started_at",
"completed_at"
],
"properties": {
"type": {
"enum": [
"backfill",
"custom-pattern-backfill",
"pattern-version-backfill"
],
"type": "string",
"description": "What type of scan was completed"
},
"action": {
"enum": [
"completed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"source": {
"enum": [
"git",
"issues",
"pull-requests",
"discussions",
"wiki"
],
"type": "string",
"description": "What type of content was scanned"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"started_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"secret_types": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates"
},
"custom_pattern_name": {
"type": "string",
"nullable": true,
"description": "If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated"
},
"custom_pattern_scope": {
"enum": [
"repository",
"organization",
"enterprise"
],
"type": "string",
"nullable": true,
"description": "If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated"
}
}
}
webhook-security-advisory-published
{
"type": "object",
"title": "security_advisory published event",
"required": [
"action",
"security_advisory"
],
"properties": {
"action": {
"enum": [
"published"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"security_advisory": {
"$ref": "#/components/schemas/webhooks_security_advisory"
}
}
}
webhook-security-advisory-updated
{
"type": "object",
"title": "security_advisory updated event",
"required": [
"action",
"security_advisory"
],
"properties": {
"action": {
"enum": [
"updated"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"security_advisory": {
"$ref": "#/components/schemas/webhooks_security_advisory"
}
}
}
webhook-security-advisory-withdrawn
{
"type": "object",
"title": "security_advisory withdrawn event",
"required": [
"action",
"security_advisory"
],
"properties": {
"action": {
"enum": [
"withdrawn"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"security_advisory": {
"type": "object",
"required": [
"cvss",
"cwes",
"ghsa_id",
"summary",
"description",
"severity",
"identifiers",
"references",
"published_at",
"updated_at",
"withdrawn_at",
"vulnerabilities"
],
"properties": {
"cvss": {
"type": "object",
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number"
},
"vector_string": {
"type": "string",
"nullable": true
}
}
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"name": {
"type": "string"
},
"cwe_id": {
"type": "string"
}
}
}
},
"ghsa_id": {
"type": "string"
},
"summary": {
"type": "string"
},
"severity": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
}
}
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"type"
],
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"published_at": {
"type": "string"
},
"withdrawn_at": {
"type": "string"
},
"cvss_severities": {
"$ref": "#/components/schemas/cvss-severities"
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"package",
"severity",
"vulnerable_version_range",
"first_patched_version"
],
"properties": {
"package": {
"type": "object",
"required": [
"ecosystem",
"name"
],
"properties": {
"name": {
"type": "string"
},
"ecosystem": {
"type": "string"
}
}
},
"severity": {
"type": "string"
},
"first_patched_version": {
"type": "object",
"nullable": true,
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string"
}
}
},
"vulnerable_version_range": {
"type": "string"
}
}
}
}
},
"description": "The details of the security advisory, including summary, description, and severity."
}
},
"x-github-breaking-changes": [
{
"patch": [
{
"op": "remove",
"path": "/properties/security_advisory/properties/cvss"
},
{
"op": "remove",
"path": "/properties/security_advisory/required/0"
}
],
"version": "2026-03-10",
"changeset": "deprecate_cvss"
}
]
}
webhook-security-and-analysis
{
"type": "object",
"title": "security_and_analysis event",
"required": [
"changes",
"repository"
],
"properties": {
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"from": {
"type": "object",
"properties": {
"security_and_analysis": {
"$ref": "#/components/schemas/security-and-analysis"
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/full-repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-sponsorship-cancelled
{
"type": "object",
"title": "sponsorship cancelled event",
"required": [
"action",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"cancelled"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-sponsorship-created
{
"type": "object",
"title": "sponsorship created event",
"required": [
"action",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-sponsorship-edited
{
"type": "object",
"title": "sponsorship edited event",
"required": [
"action",
"changes",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"privacy_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy."
}
}
}
}
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-sponsorship-pending-cancellation
{
"type": "object",
"title": "sponsorship pending_cancellation event",
"required": [
"action",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"pending_cancellation"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"$ref": "#/components/schemas/webhooks_effective_date"
}
}
}
webhook-sponsorship-pending-tier-change
{
"type": "object",
"title": "sponsorship pending_tier_change event",
"required": [
"action",
"changes",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"pending_tier_change"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_changes_8"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"effective_date": {
"$ref": "#/components/schemas/webhooks_effective_date"
}
}
}
webhook-sponsorship-tier-changed
{
"type": "object",
"title": "sponsorship tier_changed event",
"required": [
"action",
"changes",
"sponsorship",
"sender"
],
"properties": {
"action": {
"enum": [
"tier_changed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"$ref": "#/components/schemas/webhooks_changes_8"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sponsorship": {
"$ref": "#/components/schemas/webhooks_sponsorship"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-star-created
{
"type": "object",
"title": "star created event",
"required": [
"action",
"starred_at",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"starred_at": {
"type": "string",
"nullable": true,
"description": "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-star-deleted
{
"type": "object",
"title": "star deleted event",
"required": [
"action",
"starred_at",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"starred_at": {
"nullable": true,
"description": "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-status
{
"type": "object",
"title": "status event",
"required": [
"id",
"sha",
"name",
"target_url",
"context",
"description",
"state",
"commit",
"branches",
"created_at",
"updated_at",
"repository",
"sender"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the status."
},
"sha": {
"type": "string",
"description": "The Commit SHA."
},
"name": {
"type": "string"
},
"state": {
"enum": [
"pending",
"success",
"failure",
"error"
],
"type": "string",
"description": "The new state. Can be `pending`, `success`, `failure`, or `error`."
},
"commit": {
"type": "object",
"required": [
"sha",
"node_id",
"commit",
"url",
"html_url",
"comments_url",
"author",
"committer",
"parents"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit": {
"type": "object",
"required": [
"author",
"committer",
"message",
"tree",
"url",
"comment_count",
"verification"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"author": {
"allOf": [
{
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
}
]
},
"message": {
"type": "string"
},
"committer": {
"allOf": [
{
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
}
}
]
},
"verification": {
"type": "object",
"required": [
"verified",
"reason",
"signature",
"payload",
"verified_at"
],
"properties": {
"reason": {
"enum": [
"expired_key",
"not_signing_key",
"gpgverify_error",
"gpgverify_unavailable",
"unsigned",
"unknown_signature_type",
"no_user",
"unverified_email",
"bad_email",
"unknown_key",
"malformed_signature",
"invalid",
"valid",
"bad_cert",
"ocsp_pending"
],
"type": "string"
},
"payload": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"signature": {
"type": "string",
"nullable": true
},
"verified_at": {
"type": "string",
"nullable": true
}
}
},
"comment_count": {
"type": "integer"
}
}
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"required": [
"sha",
"url",
"html_url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
}
}
}
},
"html_url": {
"type": "string",
"format": "uri"
},
"committer": {
"type": "object",
"title": "User",
"nullable": true,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments_url": {
"type": "string",
"format": "uri"
}
}
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"context": {
"type": "string"
},
"branches": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"commit",
"protected"
],
"properties": {
"name": {
"type": "string"
},
"commit": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string",
"nullable": true
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
}
}
},
"protected": {
"type": "boolean"
}
}
},
"description": "An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches."
},
"avatar_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"created_at": {
"type": "string"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"target_url": {
"type": "string",
"nullable": true,
"description": "The optional link added to the status."
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true,
"description": "The optional human-readable description added to the status."
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-sub-issues-parent-issue-added
{
"type": "object",
"title": "parent issue added event",
"required": [
"action",
"parent_issue_id",
"parent_issue",
"parent_issue_repo",
"sub_issue_id",
"sub_issue"
],
"properties": {
"action": {
"enum": [
"parent_issue_added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"sub_issue": {
"$ref": "#/components/schemas/issue"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"parent_issue": {
"$ref": "#/components/schemas/issue"
},
"sub_issue_id": {
"type": "number",
"description": "The ID of the sub-issue."
},
"parent_issue_id": {
"type": "number",
"description": "The ID of the parent issue."
},
"parent_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-sub-issues-parent-issue-removed
{
"type": "object",
"title": "parent issue removed event",
"required": [
"action",
"parent_issue_id",
"parent_issue",
"parent_issue_repo",
"sub_issue_id",
"sub_issue"
],
"properties": {
"action": {
"enum": [
"parent_issue_removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"sub_issue": {
"$ref": "#/components/schemas/issue"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"parent_issue": {
"$ref": "#/components/schemas/issue"
},
"sub_issue_id": {
"type": "number",
"description": "The ID of the sub-issue."
},
"parent_issue_id": {
"type": "number",
"description": "The ID of the parent issue."
},
"parent_issue_repo": {
"$ref": "#/components/schemas/repository"
}
}
}
webhook-sub-issues-sub-issue-added
{
"type": "object",
"title": "sub-issue added event",
"required": [
"action",
"sub_issue_id",
"sub_issue",
"sub_issue_repo",
"parent_issue_id",
"parent_issue"
],
"properties": {
"action": {
"enum": [
"sub_issue_added"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"sub_issue": {
"$ref": "#/components/schemas/issue"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"parent_issue": {
"$ref": "#/components/schemas/issue"
},
"sub_issue_id": {
"type": "number",
"description": "The ID of the sub-issue."
},
"sub_issue_repo": {
"$ref": "#/components/schemas/repository"
},
"parent_issue_id": {
"type": "number",
"description": "The ID of the parent issue."
}
}
}
webhook-sub-issues-sub-issue-removed
{
"type": "object",
"title": "sub-issue removed event",
"required": [
"action",
"sub_issue_id",
"sub_issue",
"sub_issue_repo",
"parent_issue_id",
"parent_issue"
],
"properties": {
"action": {
"enum": [
"sub_issue_removed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"sub_issue": {
"$ref": "#/components/schemas/issue"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"parent_issue": {
"$ref": "#/components/schemas/issue"
},
"sub_issue_id": {
"type": "number",
"description": "The ID of the sub-issue."
},
"sub_issue_repo": {
"$ref": "#/components/schemas/repository"
},
"parent_issue_id": {
"type": "number",
"description": "The ID of the parent issue."
}
}
}
webhook-team-add
{
"type": "object",
"title": "team_add event",
"required": [
"team",
"repository",
"sender"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-team-added-to-repository
{
"type": "object",
"title": "team added_to_repository event",
"required": [
"action",
"team",
"organization"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"action": {
"enum": [
"added_to_repository"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-team-created
{
"type": "object",
"title": "team created event",
"required": [
"action",
"team",
"organization",
"sender"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"action": {
"enum": [
"created"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-team-deleted
{
"type": "object",
"title": "team deleted event",
"required": [
"action",
"team",
"organization"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"action": {
"enum": [
"deleted"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-team-edited
{
"type": "object",
"title": "team edited event",
"required": [
"action",
"changes",
"team",
"organization",
"sender"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"action": {
"enum": [
"edited"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"changes": {
"type": "object",
"properties": {
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the name if the action was `edited`."
}
}
},
"privacy": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the team's privacy if the action was `edited`."
}
}
},
"repository": {
"type": "object",
"required": [
"permissions"
],
"properties": {
"permissions": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"properties": {
"pull": {
"type": "boolean",
"description": "The previous version of the team member's `pull` permission on a repository, if the action was `edited`."
},
"push": {
"type": "boolean",
"description": "The previous version of the team member's `push` permission on a repository, if the action was `edited`."
},
"admin": {
"type": "boolean",
"description": "The previous version of the team member's `admin` permission on a repository, if the action was `edited`."
}
}
}
}
}
}
},
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the description if the action was `edited`."
}
}
},
"notification_setting": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the team's notification setting if the action was `edited`."
}
}
}
},
"description": "The changes to the team if the action was `edited`."
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-team-removed-from-repository
{
"type": "object",
"title": "team removed_from_repository event",
"required": [
"action",
"team",
"organization",
"sender"
],
"properties": {
"team": {
"$ref": "#/components/schemas/webhooks_team_1"
},
"action": {
"enum": [
"removed_from_repository"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"custom_properties": {
"type": "object",
"description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
"additionalProperties": true
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"allow_update_branch": {
"type": "boolean"
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
}
},
"description": "A git repository"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-watch-started
{
"type": "object",
"title": "watch started event",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"enum": [
"started"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-workflow-dispatch
{
"type": "object",
"title": "workflow_dispatch event",
"required": [
"inputs",
"ref",
"repository",
"sender",
"workflow"
],
"properties": {
"ref": {
"type": "string"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"type": "string"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
}
}
}
webhook-workflow-job-completed
{
"type": "object",
"title": "workflow_job completed event",
"required": [
"action",
"repository",
"sender",
"workflow_job"
],
"properties": {
"action": {
"enum": [
"completed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"deployment": {
"$ref": "#/components/schemas/deployment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_job": {
"allOf": [
{
"type": "object",
"title": "Workflow Job",
"required": [
"id",
"run_id",
"run_url",
"run_attempt",
"node_id",
"head_sha",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"name",
"steps",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name",
"workflow_name",
"head_branch",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"title": "Workflow Step",
"required": [
"name",
"status",
"conclusion",
"number",
"started_at",
"completed_at"
],
"properties": {
"name": {
"type": "string"
},
"number": {
"type": "integer"
},
"status": {
"enum": [
"in_progress",
"completed",
"queued"
],
"type": "string"
},
"conclusion": {
"enum": [
"failure",
"skipped",
"success",
"cancelled",
null
],
"type": "string",
"nullable": true
},
"started_at": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Custom labels for the job. Specified by the [`\"runs-on\"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML."
},
"run_id": {
"type": "number"
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting"
],
"type": "string",
"description": "The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`."
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string",
"format": "uri"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"runner_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"conclusion": {
"enum": [
"success",
"failure",
null,
"skipped",
"cancelled",
"action_required",
"neutral",
"timed_out"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true,
"description": "The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"completed_at": {
"type": "string",
"nullable": true
},
"check_run_url": {
"type": "string",
"format": "uri"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"runner_group_name": {
"type": "string",
"nullable": true,
"description": "The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
}
},
"description": "The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, and `started_at` are the same as those in a [`check_run`](#check_run) object."
},
{
"type": "object",
"required": [
"conclusion"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"nullable": true
}
},
"labels": {
"type": "array",
"items": {
"type": "string",
"nullable": true
}
},
"run_id": {
"type": "integer"
},
"status": {
"type": "string"
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string"
},
"runner_id": {
"type": "number",
"nullable": true
},
"conclusion": {
"enum": [
"success",
"failure",
"skipped",
"cancelled",
"action_required",
"neutral",
"timed_out"
],
"type": "string"
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string"
},
"check_run_url": {
"type": "string"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "number",
"nullable": true
},
"runner_group_name": {
"type": "string",
"nullable": true
}
}
}
]
}
}
}
webhook-workflow-job-in-progress
{
"type": "object",
"title": "workflow_job in_progress event",
"required": [
"action",
"repository",
"sender",
"workflow_job"
],
"properties": {
"action": {
"enum": [
"in_progress"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"deployment": {
"$ref": "#/components/schemas/deployment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_job": {
"allOf": [
{
"type": "object",
"title": "Workflow Job",
"required": [
"id",
"run_id",
"run_url",
"run_attempt",
"node_id",
"head_sha",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"name",
"steps",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name",
"workflow_name",
"head_branch",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"title": "Workflow Step",
"required": [
"name",
"status",
"conclusion",
"number",
"started_at",
"completed_at"
],
"properties": {
"name": {
"type": "string"
},
"number": {
"type": "integer"
},
"status": {
"enum": [
"in_progress",
"completed",
"queued",
"pending"
],
"type": "string"
},
"conclusion": {
"enum": [
"failure",
"skipped",
"success",
null,
"cancelled"
],
"type": "string",
"nullable": true
},
"started_at": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Custom labels for the job. Specified by the [`\"runs-on\"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML."
},
"run_id": {
"type": "number"
},
"status": {
"enum": [
"queued",
"in_progress",
"completed"
],
"type": "string",
"description": "The current status of the job. Can be `queued`, `in_progress`, or `completed`."
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string",
"format": "uri"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"runner_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"conclusion": {
"enum": [
"success",
"failure",
null,
"cancelled",
"neutral"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true,
"description": "The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"completed_at": {
"type": "string",
"nullable": true
},
"check_run_url": {
"type": "string",
"format": "uri"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"runner_group_name": {
"type": "string",
"nullable": true,
"description": "The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
}
},
"description": "The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, and `started_at` are the same as those in a [`check_run`](#check_run) object."
},
{
"type": "object",
"required": [
"status",
"steps"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"title": "Workflow Step",
"required": [
"name",
"status",
"conclusion",
"number",
"started_at",
"completed_at"
],
"properties": {
"name": {
"type": "string"
},
"number": {
"type": "integer"
},
"status": {
"enum": [
"in_progress",
"completed",
"pending",
"queued"
],
"type": "string"
},
"conclusion": {
"type": "string",
"nullable": true
},
"started_at": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"run_id": {
"type": "integer"
},
"status": {
"enum": [
"in_progress",
"completed",
"queued"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string"
},
"runner_id": {
"type": "number",
"nullable": true
},
"conclusion": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
},
"check_run_url": {
"type": "string"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "number",
"nullable": true
},
"runner_group_name": {
"type": "string",
"nullable": true
}
}
}
]
}
}
}
webhook-workflow-job-queued
{
"type": "object",
"title": "workflow_job queued event",
"required": [
"action",
"repository",
"sender",
"workflow_job"
],
"properties": {
"action": {
"enum": [
"queued"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"deployment": {
"$ref": "#/components/schemas/deployment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_job": {
"type": "object",
"required": [
"id",
"run_id",
"run_url",
"run_attempt",
"node_id",
"head_sha",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"name",
"steps",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name",
"workflow_name",
"head_branch",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"title": "Workflow Step",
"required": [
"name",
"status",
"conclusion",
"number",
"started_at",
"completed_at"
],
"properties": {
"name": {
"type": "string"
},
"number": {
"type": "integer"
},
"status": {
"enum": [
"completed",
"in_progress",
"queued",
"pending"
],
"type": "string"
},
"conclusion": {
"enum": [
"failure",
"skipped",
"success",
"cancelled",
null
],
"type": "string",
"nullable": true
},
"started_at": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"run_id": {
"type": "number"
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string",
"format": "uri"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"runner_id": {
"type": "integer",
"nullable": true
},
"conclusion": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
},
"check_run_url": {
"type": "string",
"format": "uri"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "integer",
"nullable": true
},
"runner_group_name": {
"type": "string",
"nullable": true
}
}
}
}
}
webhook-workflow-job-waiting
{
"type": "object",
"title": "workflow_job waiting event",
"required": [
"action",
"repository",
"sender",
"workflow_job"
],
"properties": {
"action": {
"enum": [
"waiting"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"deployment": {
"$ref": "#/components/schemas/deployment"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_job": {
"type": "object",
"required": [
"id",
"run_id",
"run_url",
"run_attempt",
"node_id",
"head_sha",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"name",
"steps",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name",
"workflow_name",
"head_branch",
"created_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"title": "Workflow Step",
"required": [
"name",
"status",
"conclusion",
"number",
"started_at",
"completed_at"
],
"properties": {
"name": {
"type": "string"
},
"number": {
"type": "integer"
},
"status": {
"enum": [
"completed",
"in_progress",
"queued",
"pending",
"waiting"
],
"type": "string"
},
"conclusion": {
"enum": [
"failure",
"skipped",
"success",
"cancelled",
null
],
"type": "string",
"nullable": true
},
"started_at": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"run_id": {
"type": "number"
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"waiting"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"run_url": {
"type": "string",
"format": "uri"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"runner_id": {
"type": "integer",
"nullable": true
},
"conclusion": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"description": "The time that the job created."
},
"started_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true,
"description": "The name of the current branch."
},
"run_attempt": {
"type": "integer"
},
"runner_name": {
"type": "string",
"nullable": true
},
"completed_at": {
"type": "string",
"nullable": true
},
"check_run_url": {
"type": "string",
"format": "uri"
},
"workflow_name": {
"type": "string",
"nullable": true,
"description": "The name of the workflow."
},
"runner_group_id": {
"type": "integer",
"nullable": true
},
"runner_group_name": {
"type": "string",
"nullable": true
}
}
}
}
}
webhook-workflow-run-completed
{
"type": "object",
"title": "workflow_run completed event",
"required": [
"action",
"repository",
"sender",
"workflow",
"workflow_run"
],
"properties": {
"action": {
"enum": [
"completed"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"$ref": "#/components/schemas/webhooks_workflow"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Workflow Run",
"required": [
"actor",
"artifacts_url",
"cancel_url",
"check_suite_id",
"check_suite_node_id",
"check_suite_url",
"conclusion",
"created_at",
"event",
"head_branch",
"head_commit",
"head_repository",
"head_sha",
"html_url",
"id",
"jobs_url",
"logs_url",
"name",
"node_id",
"path",
"previous_attempt_url",
"pull_requests",
"repository",
"rerun_url",
"run_attempt",
"run_number",
"run_started_at",
"status",
"triggering_actor",
"updated_at",
"url",
"workflow_id",
"workflow_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"nullable": true
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"pending",
"waiting"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string",
"format": "uri"
},
"logs_url": {
"type": "string",
"format": "uri"
},
"rerun_url": {
"type": "string",
"format": "uri"
},
"cancel_url": {
"type": "string",
"format": "uri"
},
"conclusion": {
"enum": [
"action_required",
"cancelled",
"failure",
"neutral",
"skipped",
"stale",
"success",
"timed_out",
"startup_failure"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string",
"format": "uri"
},
"artifacts_url": {
"type": "string",
"format": "uri"
},
"display_title": {
"type": "string",
"example": "Simple Workflow",
"description": "The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow."
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"nullable": true,
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "number"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "number"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string",
"format": "uri"
},
"head_repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
}
}
}
webhook-workflow-run-in-progress
{
"type": "object",
"title": "workflow_run in_progress event",
"required": [
"action",
"repository",
"sender",
"workflow",
"workflow_run"
],
"properties": {
"action": {
"enum": [
"in_progress"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"$ref": "#/components/schemas/webhooks_workflow"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Workflow Run",
"required": [
"actor",
"artifacts_url",
"cancel_url",
"check_suite_id",
"check_suite_node_id",
"check_suite_url",
"conclusion",
"created_at",
"event",
"head_branch",
"head_commit",
"head_repository",
"head_sha",
"html_url",
"id",
"jobs_url",
"logs_url",
"name",
"node_id",
"path",
"previous_attempt_url",
"pull_requests",
"repository",
"rerun_url",
"run_attempt",
"run_number",
"run_started_at",
"status",
"triggering_actor",
"updated_at",
"url",
"workflow_id",
"workflow_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"nullable": true
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"pending"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string",
"format": "uri"
},
"logs_url": {
"type": "string",
"format": "uri"
},
"rerun_url": {
"type": "string",
"format": "uri"
},
"cancel_url": {
"type": "string",
"format": "uri"
},
"conclusion": {
"enum": [
"action_required",
"cancelled",
"failure",
"neutral",
"skipped",
"stale",
"success",
"timed_out"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string",
"format": "uri"
},
"artifacts_url": {
"type": "string",
"format": "uri"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"nullable": true,
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "number"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "number"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string",
"format": "uri"
},
"head_repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"nullable": true,
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
}
}
}
webhook-workflow-run-requested
{
"type": "object",
"title": "workflow_run requested event",
"required": [
"action",
"repository",
"sender",
"workflow",
"workflow_run"
],
"properties": {
"action": {
"enum": [
"requested"
],
"type": "string"
},
"sender": {
"$ref": "#/components/schemas/simple-user"
},
"workflow": {
"$ref": "#/components/schemas/webhooks_workflow"
},
"enterprise": {
"$ref": "#/components/schemas/enterprise-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"installation": {
"$ref": "#/components/schemas/simple-installation"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"workflow_run": {
"type": "object",
"title": "Workflow Run",
"required": [
"artifacts_url",
"cancel_url",
"check_suite_url",
"check_suite_id",
"check_suite_node_id",
"conclusion",
"created_at",
"event",
"head_branch",
"head_commit",
"head_repository",
"head_sha",
"html_url",
"id",
"jobs_url",
"logs_url",
"node_id",
"name",
"path",
"pull_requests",
"repository",
"rerun_url",
"run_number",
"status",
"updated_at",
"url",
"workflow_id",
"workflow_url",
"run_attempt",
"run_started_at",
"previous_attempt_url",
"actor",
"triggering_actor",
"display_title"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"nullable": true
},
"path": {
"type": "string"
},
"actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"event": {
"type": "string"
},
"status": {
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"pending",
"waiting"
],
"type": "string"
},
"node_id": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"jobs_url": {
"type": "string",
"format": "uri"
},
"logs_url": {
"type": "string",
"format": "uri"
},
"rerun_url": {
"type": "string",
"format": "uri"
},
"cancel_url": {
"type": "string",
"format": "uri"
},
"conclusion": {
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
null,
"skipped",
"startup_failure"
],
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"run_number": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"nullable": true
},
"head_commit": {
"type": "object",
"title": "SimpleCommit",
"required": [
"id",
"tree_id",
"message",
"timestamp",
"author",
"committer"
],
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"message": {
"type": "string"
},
"tree_id": {
"type": "string"
},
"committer": {
"type": "object",
"title": "Committer",
"required": [
"email",
"name"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The git author's name."
},
"email": {
"type": "string",
"format": "email",
"nullable": true
},
"username": {
"type": "string"
}
},
"description": "Metaproperties for Git author/committer information."
},
"timestamp": {
"type": "string"
}
}
},
"run_attempt": {
"type": "integer"
},
"workflow_id": {
"type": "integer"
},
"workflow_url": {
"type": "string",
"format": "uri"
},
"artifacts_url": {
"type": "string",
"format": "uri"
},
"display_title": {
"type": "string"
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"required": [
"url",
"id",
"number",
"head",
"base"
],
"properties": {
"id": {
"type": "number"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"head": {
"type": "object",
"required": [
"ref",
"sha",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repo Ref",
"required": [
"id",
"url",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
}
}
}
}
},
"number": {
"type": "number"
}
}
}
},
"check_suite_id": {
"type": "integer"
},
"run_started_at": {
"type": "string",
"format": "date-time"
},
"check_suite_url": {
"type": "string",
"format": "uri"
},
"head_repository": {
"type": "object",
"title": "Repository Lite",
"required": [
"archive_url",
"assignees_url",
"blobs_url",
"branches_url",
"collaborators_url",
"comments_url",
"commits_url",
"compare_url",
"contents_url",
"contributors_url",
"deployments_url",
"description",
"downloads_url",
"events_url",
"fork",
"forks_url",
"full_name",
"git_commits_url",
"git_refs_url",
"git_tags_url",
"hooks_url",
"html_url",
"id",
"issue_comment_url",
"issue_events_url",
"issues_url",
"keys_url",
"labels_url",
"languages_url",
"merges_url",
"milestones_url",
"name",
"node_id",
"notifications_url",
"owner",
"private",
"pulls_url",
"releases_url",
"stargazers_url",
"statuses_url",
"subscribers_url",
"subscription_url",
"tags_url",
"teams_url",
"trees_url",
"url"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"tags_url": {
"type": "string",
"format": "uri"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"events_url": {
"type": "string",
"format": "uri"
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"languages_url": {
"type": "string",
"format": "uri"
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
}
}
},
"triggering_actor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"check_suite_node_id": {
"type": "string"
},
"previous_attempt_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"referenced_workflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"nullable": true
}
}
}
}
}
webhooks_alert
{
"type": "object",
"title": "Repository Vulnerability Alert Alert",
"required": [
"affected_package_name",
"affected_range",
"created_at",
"external_identifier",
"external_reference",
"ghsa_id",
"id",
"node_id",
"number",
"severity",
"state"
],
"properties": {
"id": {
"type": "integer"
},
"state": {
"enum": [
"auto_dismissed",
"open"
],
"type": "string"
},
"number": {
"type": "integer"
},
"ghsa_id": {
"type": "string"
},
"node_id": {
"type": "string"
},
"fixed_at": {
"type": "string",
"format": "date-time"
},
"fixed_in": {
"type": "string"
},
"severity": {
"type": "string"
},
"dismisser": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string"
},
"fix_reason": {
"type": "string"
},
"dismissed_at": {
"type": "string"
},
"affected_range": {
"type": "string"
},
"dismiss_reason": {
"type": "string"
},
"external_reference": {
"type": "string",
"format": "uri",
"nullable": true
},
"external_identifier": {
"type": "string"
},
"affected_package_name": {
"type": "string"
}
},
"description": "The security alert of the vulnerable dependency."
}
webhooks_answer
{
"type": "object",
"required": [
"id",
"node_id",
"html_url",
"parent_id",
"child_comment_count",
"repository_url",
"discussion_id",
"author_association",
"user",
"created_at",
"updated_at",
"body"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"parent_id": {
"nullable": true
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"discussion_id": {
"type": "integer"
},
"repository_url": {
"type": "string"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"child_comment_count": {
"type": "integer"
}
}
}
webhooks_approver
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
}
webhooks_changes
{
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string",
"description": "The previous version of the body."
}
}
}
},
"description": "The changes to the comment."
}
webhooks_changes_8
{
"type": "object",
"required": [
"tier"
],
"properties": {
"tier": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"title": "Sponsorship Tier",
"required": [
"node_id",
"created_at",
"description",
"monthly_price_in_cents",
"monthly_price_in_dollars",
"name",
"is_one_time"
],
"properties": {
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"description": {
"type": "string"
},
"is_one_time": {
"type": "boolean"
},
"is_custom_amount": {
"type": "boolean"
},
"is_custom_ammount": {
"type": "boolean"
},
"monthly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_dollars": {
"type": "integer"
}
},
"description": "The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload."
}
}
}
}
}
webhooks_code_scanning_commit_oid
{
"type": "string",
"description": "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."
}
webhooks_code_scanning_ref
{
"type": "string",
"description": "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."
}
webhooks_comment
{
"type": "object",
"required": [
"id",
"node_id",
"html_url",
"parent_id",
"child_comment_count",
"repository_url",
"discussion_id",
"author_association",
"user",
"created_at",
"updated_at",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer"
},
"body": {
"type": "string"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"parent_id": {
"type": "integer",
"nullable": true
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"discussion_id": {
"type": "integer"
},
"repository_url": {
"type": "string"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"child_comment_count": {
"type": "integer"
}
}
}
webhooks_deploy_key
{
"type": "object",
"required": [
"id",
"key",
"url",
"title",
"verified",
"created_at",
"read_only"
],
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"added_by": {
"type": "string",
"nullable": true
},
"verified": {
"type": "boolean"
},
"last_used": {
"type": "string",
"nullable": true
},
"read_only": {
"type": "boolean"
},
"created_at": {
"type": "string"
}
},
"description": "The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource."
}
webhooks_deploy_pusher_type
{
"type": "string",
"description": "The pusher type for the event. Can be either `user` or a deploy key."
}
webhooks_effective_date
{
"type": "string",
"description": "The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect."
}
webhooks_issue
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run",
"reminder",
"pull_request_review_thread"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write",
"admin"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
}
webhooks_issue_2
{
"type": "object",
"title": "Issue",
"required": [
"url",
"repository_url",
"labels_url",
"comments_url",
"events_url",
"html_url",
"id",
"node_id",
"number",
"title",
"user",
"assignees",
"milestone",
"comments",
"created_at",
"updated_at",
"closed_at",
"author_association",
"active_lock_reason",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue"
},
"body": {
"type": "string",
"nullable": true,
"description": "Contents of the issue"
},
"type": {
"$ref": "#/components/schemas/issue-type"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the issue; either 'open' or 'closed'"
},
"title": {
"type": "string",
"description": "Title of the issue"
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"number": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"html_url": {
"type": "string",
"format": "uri"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events_url": {
"type": "string",
"format": "uri"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"pull_request": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"patch_url": {
"type": "string",
"format": "uri"
}
}
},
"state_reason": {
"type": "string",
"nullable": true
},
"timeline_url": {
"type": "string",
"format": "uri"
},
"pinned_comment": {
"$ref": "#/components/schemas/nullable-issue-comment"
},
"repository_url": {
"type": "string",
"format": "uri"
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"issue_field_values": {
"type": "array",
"items": {
"$ref": "#/components/schemas/issue-field-value"
}
},
"sub_issues_summary": {
"$ref": "#/components/schemas/sub-issues-summary"
},
"performed_via_github_app": {
"type": "object",
"title": "App",
"nullable": true,
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier of the GitHub app"
},
"name": {
"type": "string",
"description": "The name of the GitHub app"
},
"slug": {
"type": "string",
"description": "The slug name of the GitHub app"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"events": {
"type": "array",
"items": {
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
],
"type": "string"
},
"description": "The list of events for the GitHub app"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"permissions": {
"type": "object",
"properties": {
"keys": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"checks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"emails": {
"enum": [
"read",
"write"
],
"type": "string"
},
"issues": {
"enum": [
"read",
"write"
],
"type": "string"
},
"actions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"members": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"contents": {
"enum": [
"read",
"write"
],
"type": "string"
},
"metadata": {
"enum": [
"read",
"write"
],
"type": "string"
},
"packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"statuses": {
"enum": [
"read",
"write"
],
"type": "string"
},
"workflows": {
"enum": [
"read",
"write"
],
"type": "string"
},
"deployments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"discussions": {
"enum": [
"read",
"write"
],
"type": "string"
},
"single_file": {
"enum": [
"read",
"write"
],
"type": "string"
},
"environments": {
"enum": [
"read",
"write"
],
"type": "string"
},
"pull_requests": {
"enum": [
"read",
"write"
],
"type": "string"
},
"administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_events": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_plan": {
"enum": [
"read",
"write"
],
"type": "string"
},
"content_references": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_hooks": {
"enum": [
"read",
"write"
],
"type": "string"
},
"repository_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_secrets": {
"enum": [
"read",
"write"
],
"type": "string"
},
"vulnerability_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_packages": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_projects": {
"enum": [
"read",
"write"
],
"type": "string"
},
"secret_scanning_alerts": {
"enum": [
"read",
"write"
],
"type": "string"
},
"security_scanning_alert": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_user_blocking": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_administration": {
"enum": [
"read",
"write"
],
"type": "string"
},
"organization_self_hosted_runners": {
"enum": [
"read",
"write"
],
"type": "string"
}
},
"description": "The set of permissions for the GitHub app"
},
"external_url": {
"type": "string",
"format": "uri",
"nullable": true
}
},
"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."
},
"issue_dependencies_summary": {
"$ref": "#/components/schemas/issue-dependencies-summary"
}
},
"description": "The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself."
}
webhooks_issue_comment
{
"type": "object",
"title": "issue comment",
"required": [
"url",
"html_url",
"issue_url",
"id",
"node_id",
"user",
"created_at",
"updated_at",
"author_association",
"performed_via_github_app",
"body",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the issue comment"
},
"pin": {
"$ref": "#/components/schemas/nullable-pinned-issue-comment"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the issue comment"
},
"body": {
"type": "string",
"description": "Contents of the issue comment"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"performed_via_github_app": {
"$ref": "#/components/schemas/integration"
}
},
"description": "The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself."
}
webhooks_label
{
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
webhooks_marketplace_purchase
{
"type": "object",
"title": "Marketplace Purchase",
"required": [
"account",
"billing_cycle",
"free_trial_ends_on",
"next_billing_date",
"on_free_trial",
"plan",
"unit_count"
],
"properties": {
"plan": {
"type": "object",
"required": [
"id",
"name",
"description",
"monthly_price_in_cents",
"yearly_price_in_cents",
"price_model",
"has_free_trial",
"unit_name",
"bullets"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string",
"nullable": true
}
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"yearly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
}
}
},
"account": {
"type": "object",
"required": [
"type",
"id",
"node_id",
"login",
"organization_billing_email"
],
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"nullable": true
}
}
},
"unit_count": {
"type": "integer"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"type": "string",
"nullable": true
}
}
}
webhooks_membership
{
"type": "object",
"title": "Membership",
"required": [
"url",
"state",
"role",
"organization_url",
"user"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"role": {
"type": "string"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"state": {
"type": "string"
},
"organization_url": {
"type": "string",
"format": "uri"
},
"direct_membership": {
"type": "boolean",
"example": true,
"description": "Whether the user has direct membership in the organization."
},
"enterprise_teams_providing_indirect_membership": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"ent:team-one",
"ent:team-two"
],
"maxItems": 100,
"description": "The slugs of the enterprise teams providing the user with indirect membership in the organization.\nA limit of 100 enterprise team slugs is returned."
}
},
"description": "The membership between the user and the organization. Not present when the action is `member_invited`."
}
webhooks_milestone
{
"type": "object",
"title": "Milestone",
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
}
webhooks_milestone_3
{
"type": "object",
"title": "Milestone",
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
}
webhooks_nullable_string
{
"type": "string",
"nullable": true
}
webhooks_number
{
"type": "integer",
"description": "The pull request number."
}
webhooks_previous_marketplace_purchase
{
"type": "object",
"title": "Marketplace Purchase",
"required": [
"account",
"billing_cycle",
"unit_count",
"on_free_trial",
"free_trial_ends_on",
"plan"
],
"properties": {
"plan": {
"type": "object",
"required": [
"id",
"name",
"description",
"monthly_price_in_cents",
"yearly_price_in_cents",
"price_model",
"has_free_trial",
"unit_name",
"bullets"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string"
}
},
"unit_name": {
"type": "string",
"nullable": true
},
"description": {
"type": "string"
},
"price_model": {
"enum": [
"FREE",
"FLAT_RATE",
"PER_UNIT"
],
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"yearly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
}
}
},
"account": {
"type": "object",
"required": [
"type",
"id",
"node_id",
"login",
"organization_billing_email"
],
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string",
"nullable": true
}
}
},
"unit_count": {
"type": "integer"
},
"billing_cycle": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"next_billing_date": {
"type": "string",
"nullable": true
},
"free_trial_ends_on": {
"nullable": true
}
}
}
webhooks_project
{
"type": "object",
"title": "Project",
"required": [
"owner_url",
"url",
"html_url",
"columns_url",
"id",
"node_id",
"name",
"body",
"number",
"state",
"creator",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"nullable": true,
"description": "Body of the project"
},
"name": {
"type": "string",
"description": "Name of the project"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of the project; either 'open' or 'closed'"
},
"number": {
"type": "integer"
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"owner_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"columns_url": {
"type": "string",
"format": "uri"
}
}
}
webhooks_project_card
{
"type": "object",
"title": "Project Card",
"required": [
"url",
"project_url",
"column_url",
"column_id",
"id",
"node_id",
"note",
"archived",
"creator",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"description": "The project card's ID"
},
"url": {
"type": "string",
"format": "uri"
},
"note": {
"type": "string",
"nullable": true
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"after_id": {
"type": "integer",
"nullable": true
},
"archived": {
"type": "boolean",
"description": "Whether or not the card is archived"
},
"column_id": {
"type": "integer"
},
"column_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_url": {
"type": "string",
"format": "uri"
},
"project_url": {
"type": "string",
"format": "uri"
}
}
}
webhooks_project_changes
{
"type": "object",
"properties": {
"archived_at": {
"type": "object",
"properties": {
"to": {
"type": "string",
"format": "date-time",
"nullable": true
},
"from": {
"type": "string",
"format": "date-time",
"nullable": true
}
}
}
}
}
webhooks_project_column
{
"type": "object",
"title": "Project Column",
"required": [
"url",
"project_url",
"cards_url",
"id",
"node_id",
"name",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"description": "The unique identifier of the project column"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"description": "Name of the project column"
},
"node_id": {
"type": "string"
},
"after_id": {
"type": "integer",
"nullable": true
},
"cards_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"project_url": {
"type": "string",
"format": "uri"
}
}
}
webhooks_pull_request_5
{
"type": "object",
"title": "Pull Request",
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"merge_commit_sha",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"base": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"body": {
"type": "string",
"nullable": true
},
"head": {
"type": "object",
"required": [
"label",
"ref",
"sha",
"user",
"repo"
],
"properties": {
"ref": {
"type": "string"
},
"sha": {
"type": "string"
},
"repo": {
"type": "object",
"title": "Repository",
"required": [
"id",
"node_id",
"name",
"full_name",
"private",
"owner",
"html_url",
"description",
"fork",
"url",
"forks_url",
"keys_url",
"collaborators_url",
"teams_url",
"hooks_url",
"issue_events_url",
"events_url",
"assignees_url",
"branches_url",
"tags_url",
"blobs_url",
"git_tags_url",
"git_refs_url",
"trees_url",
"statuses_url",
"languages_url",
"stargazers_url",
"contributors_url",
"subscribers_url",
"subscription_url",
"commits_url",
"git_commits_url",
"comments_url",
"issue_comment_url",
"contents_url",
"compare_url",
"merges_url",
"archive_url",
"downloads_url",
"issues_url",
"pulls_url",
"milestones_url",
"notifications_url",
"labels_url",
"releases_url",
"deployments_url",
"created_at",
"updated_at",
"pushed_at",
"git_url",
"ssh_url",
"clone_url",
"svn_url",
"homepage",
"size",
"stargazers_count",
"watchers_count",
"language",
"has_issues",
"has_projects",
"has_downloads",
"has_wiki",
"has_pages",
"has_discussions",
"forks_count",
"mirror_url",
"archived",
"open_issues_count",
"license",
"forks",
"open_issues",
"watchers",
"default_branch",
"topics",
"visibility"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "Unique identifier of the repository"
},
"url": {
"type": "string",
"format": "uri"
},
"fork": {
"type": "boolean"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"size": {
"type": "integer"
},
"forks": {
"type": "integer"
},
"owner": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"public": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"git_url": {
"type": "string",
"format": "uri"
},
"license": {
"type": "object",
"title": "License",
"nullable": true,
"required": [
"key",
"name",
"spdx_id",
"url",
"node_id"
],
"properties": {
"key": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"nullable": true
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"spdx_id": {
"type": "string"
}
}
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"ssh_url": {
"type": "string"
},
"svn_url": {
"type": "string",
"format": "uri"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Whether the repository is archived."
},
"disabled": {
"type": "boolean",
"description": "Returns whether or not this repository is disabled."
},
"has_wiki": {
"type": "boolean",
"default": true,
"description": "Whether the wiki is enabled."
},
"homepage": {
"type": "string",
"nullable": true
},
"html_url": {
"type": "string",
"format": "uri"
},
"keys_url": {
"type": "string",
"format": "uri-template"
},
"language": {
"type": "string",
"nullable": true
},
"tags_url": {
"type": "string",
"format": "uri"
},
"watchers": {
"type": "integer"
},
"blobs_url": {
"type": "string",
"format": "uri-template"
},
"clone_url": {
"type": "string",
"format": "uri"
},
"forks_url": {
"type": "string",
"format": "uri"
},
"full_name": {
"type": "string"
},
"has_pages": {
"type": "boolean"
},
"hooks_url": {
"type": "string",
"format": "uri"
},
"pulls_url": {
"type": "string",
"format": "uri-template"
},
"pushed_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
],
"nullable": true
},
"role_name": {
"type": "string",
"nullable": true
},
"teams_url": {
"type": "string",
"format": "uri"
},
"trees_url": {
"type": "string",
"format": "uri-template"
},
"created_at": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string",
"format": "date-time"
}
]
},
"events_url": {
"type": "string",
"format": "uri"
},
"has_issues": {
"type": "boolean",
"default": true,
"description": "Whether issues are enabled."
},
"issues_url": {
"type": "string",
"format": "uri-template"
},
"labels_url": {
"type": "string",
"format": "uri-template"
},
"merges_url": {
"type": "string",
"format": "uri"
},
"mirror_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"stargazers": {
"type": "integer"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"visibility": {
"enum": [
"public",
"private",
"internal"
],
"type": "string"
},
"archive_url": {
"type": "string",
"format": "uri-template"
},
"commits_url": {
"type": "string",
"format": "uri-template"
},
"compare_url": {
"type": "string",
"format": "uri-template"
},
"description": {
"type": "string",
"nullable": true
},
"forks_count": {
"type": "integer"
},
"is_template": {
"type": "boolean"
},
"open_issues": {
"type": "integer"
},
"permissions": {
"type": "object",
"required": [
"pull",
"push",
"admin"
],
"properties": {
"pull": {
"type": "boolean"
},
"push": {
"type": "boolean"
},
"admin": {
"type": "boolean"
},
"triage": {
"type": "boolean"
},
"maintain": {
"type": "boolean"
}
}
},
"branches_url": {
"type": "string",
"format": "uri-template"
},
"comments_url": {
"type": "string",
"format": "uri-template"
},
"contents_url": {
"type": "string",
"format": "uri-template"
},
"git_refs_url": {
"type": "string",
"format": "uri-template"
},
"git_tags_url": {
"type": "string",
"format": "uri-template"
},
"has_projects": {
"type": "boolean",
"default": true,
"description": "Whether projects are enabled."
},
"organization": {
"type": "string"
},
"releases_url": {
"type": "string",
"format": "uri-template"
},
"statuses_url": {
"type": "string",
"format": "uri-template"
},
"allow_forking": {
"type": "boolean",
"description": "Whether to allow private forks"
},
"assignees_url": {
"type": "string",
"format": "uri-template"
},
"downloads_url": {
"type": "string",
"format": "uri"
},
"has_downloads": {
"type": "boolean",
"default": true,
"description": "Whether downloads are enabled."
},
"languages_url": {
"type": "string",
"format": "uri"
},
"master_branch": {
"type": "string"
},
"default_branch": {
"type": "string",
"description": "The default branch of the repository."
},
"milestones_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_url": {
"type": "string",
"format": "uri"
},
"watchers_count": {
"type": "integer"
},
"deployments_url": {
"type": "string",
"format": "uri"
},
"git_commits_url": {
"type": "string",
"format": "uri-template"
},
"has_discussions": {
"type": "boolean",
"default": false,
"description": "Whether discussions are enabled."
},
"subscribers_url": {
"type": "string",
"format": "uri"
},
"allow_auto_merge": {
"type": "boolean",
"default": false,
"description": "Whether to allow auto-merge for pull requests."
},
"contributors_url": {
"type": "string",
"format": "uri"
},
"issue_events_url": {
"type": "string",
"format": "uri-template"
},
"stargazers_count": {
"type": "integer"
},
"subscription_url": {
"type": "string",
"format": "uri"
},
"collaborators_url": {
"type": "string",
"format": "uri-template"
},
"has_pull_requests": {
"type": "boolean",
"default": true,
"description": "Whether pull requests are enabled."
},
"issue_comment_url": {
"type": "string",
"format": "uri-template"
},
"notifications_url": {
"type": "string",
"format": "uri-template"
},
"open_issues_count": {
"type": "integer"
},
"allow_merge_commit": {
"type": "boolean",
"default": true,
"description": "Whether to allow merge commits for pull requests."
},
"allow_rebase_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow rebase merges for pull requests."
},
"allow_squash_merge": {
"type": "boolean",
"default": true,
"description": "Whether to allow squash merges for pull requests."
},
"merge_commit_title": {
"enum": [
"PR_TITLE",
"MERGE_MESSAGE"
],
"type": "string",
"description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
"allow_update_branch": {
"type": "boolean"
},
"merge_commit_message": {
"enum": [
"PR_BODY",
"PR_TITLE",
"BLANK"
],
"type": "string",
"description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
"delete_branch_on_merge": {
"type": "boolean",
"default": false,
"description": "Whether to delete head branches when pull requests are merged"
},
"squash_merge_commit_title": {
"enum": [
"PR_TITLE",
"COMMIT_OR_PR_TITLE"
],
"type": "string",
"description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
"squash_merge_commit_message": {
"enum": [
"PR_BODY",
"COMMIT_MESSAGES",
"BLANK"
],
"type": "string",
"description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
"web_commit_signoff_required": {
"type": "boolean",
"description": "Whether to require contributors to sign off on web-based commits"
},
"pull_request_creation_policy": {
"enum": [
"all",
"collaborators_only"
],
"type": "string",
"description": "The policy controlling who can create pull requests: all or collaborators_only."
},
"use_squash_pr_title_as_default": {
"type": "boolean",
"default": false,
"description": "Whether a squash merge commit can use the pull request title as default."
}
},
"description": "A git repository"
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"label": {
"type": "string"
}
}
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"draft": {
"type": "boolean",
"description": "Indicates whether or not the pull request is a draft."
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "State of this Pull Request. Either `open` or `closed`."
},
"title": {
"type": "string",
"description": "The title of the pull request."
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"issue",
"comments",
"review_comments",
"review_comment",
"commits",
"statuses"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"issue": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"commits": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"statuses": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comment": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"review_comments": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"labels": {
"type": "array",
"items": {
"type": "object",
"title": "Label",
"required": [
"id",
"node_id",
"url",
"name",
"color",
"default",
"description"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the label"
},
"name": {
"type": "string",
"description": "The name of the label."
},
"color": {
"type": "string",
"description": "6-character hex code, without the leading #, identifying the color"
},
"default": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
}
}
}
},
"locked": {
"type": "boolean"
},
"merged": {
"type": "boolean",
"nullable": true
},
"number": {
"type": "integer",
"description": "Number uniquely identifying the pull request within its repository."
},
"commits": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"assignee": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"comments": {
"type": "integer"
},
"diff_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"additions": {
"type": "integer"
},
"assignees": {
"type": "array",
"items": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"deletions": {
"type": "integer"
},
"issue_url": {
"type": "string",
"format": "uri"
},
"mergeable": {
"type": "boolean",
"nullable": true
},
"merged_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"merged_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"milestone": {
"type": "object",
"title": "Milestone",
"nullable": true,
"required": [
"url",
"html_url",
"labels_url",
"id",
"node_id",
"number",
"title",
"description",
"creator",
"open_issues",
"closed_issues",
"state",
"created_at",
"updated_at",
"due_on",
"closed_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"state": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "The state of the milestone."
},
"title": {
"type": "string",
"description": "The title of the milestone."
},
"due_on": {
"type": "string",
"format": "date-time",
"nullable": true
},
"number": {
"type": "integer",
"description": "The number of the milestone."
},
"creator": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"closed_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"labels_url": {
"type": "string",
"format": "uri"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string",
"nullable": true
},
"open_issues": {
"type": "integer"
},
"closed_issues": {
"type": "integer"
}
},
"description": "A collection of related issues and pull requests."
},
"patch_url": {
"type": "string",
"format": "uri"
},
"auto_merge": {
"type": "object",
"title": "PullRequestAutoMerge",
"nullable": true,
"required": [
"enabled_by",
"merge_method",
"commit_title",
"commit_message"
],
"properties": {
"enabled_by": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"commit_title": {
"type": "string",
"nullable": true,
"description": "Title for the merge commit message."
},
"merge_method": {
"enum": [
"merge",
"squash",
"rebase"
],
"type": "string",
"description": "The merge method to use."
},
"commit_message": {
"type": "string",
"nullable": true,
"description": "Commit message for the merge commit."
}
},
"description": "The status of auto merging a pull request."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"rebaseable": {
"type": "boolean",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"commits_url": {
"type": "string",
"format": "uri"
},
"comments_url": {
"type": "string",
"format": "uri"
},
"statuses_url": {
"type": "string",
"format": "uri"
},
"changed_files": {
"type": "integer"
},
"mergeable_state": {
"type": "string"
},
"requested_teams": {
"type": "array",
"items": {
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
},
"review_comments": {
"type": "integer"
},
"merge_commit_sha": {
"type": "string",
"nullable": true
},
"active_lock_reason": {
"enum": [
"resolved",
"off-topic",
"too heated",
"spam",
null
],
"type": "string",
"nullable": true
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"review_comment_url": {
"type": "string",
"format": "uri-template"
},
"requested_reviewers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"url",
"html_url",
"members_url",
"repositories_url",
"permission"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"repositories_url": {
"type": "string",
"format": "uri"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
]
}
},
"review_comments_url": {
"type": "string",
"format": "uri"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request."
}
},
"x-github-breaking-changes": [
{
"patch": {
"required": [
"url",
"id",
"node_id",
"html_url",
"diff_url",
"patch_url",
"issue_url",
"number",
"state",
"locked",
"title",
"user",
"body",
"created_at",
"updated_at",
"closed_at",
"merged_at",
"assignee",
"assignees",
"requested_reviewers",
"requested_teams",
"labels",
"milestone",
"commits_url",
"review_comments_url",
"review_comment_url",
"comments_url",
"statuses_url",
"head",
"base",
"_links",
"author_association",
"auto_merge",
"active_lock_reason",
"draft"
],
"properties": {
"merge_commit_sha": null
}
},
"version": "2026-03-10",
"changeset": "remove_pull_request_merge_commit_sha"
}
]
}
webhooks_ref_0
{
"type": "string",
"description": "The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource."
}
webhooks_release
{
"type": "object",
"title": "Release",
"required": [
"url",
"assets_url",
"upload_url",
"html_url",
"id",
"node_id",
"tag_name",
"target_commitish",
"name",
"draft",
"author",
"prerelease",
"immutable",
"created_at",
"published_at",
"assets",
"tarball_url",
"updated_at",
"zipball_url",
"body"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean",
"description": "Whether the release is a draft or published"
},
"assets": {
"type": "array",
"items": {
"type": "object",
"title": "Release Asset",
"required": [
"url",
"browser_download_url",
"id",
"node_id",
"name",
"label",
"state",
"digest",
"content_type",
"size",
"download_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"description": "The file name of the asset."
},
"size": {
"type": "integer"
},
"label": {
"type": "string",
"nullable": true
},
"state": {
"enum": [
"uploaded"
],
"type": "string",
"description": "State of the release asset."
},
"digest": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"uploader": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_type": {
"type": "string"
},
"download_count": {
"type": "integer"
},
"browser_download_url": {
"type": "string",
"format": "uri"
}
},
"description": "Data related to a release."
}
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string",
"description": "The name of the tag."
},
"immutable": {
"type": "boolean",
"description": "Whether or not the release is immutable."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"assets_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"prerelease": {
"type": "boolean",
"description": "Whether the release is identified as a prerelease or a full release."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"upload_url": {
"type": "string",
"format": "uri-template"
},
"tarball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"zipball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"published_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"discussion_url": {
"type": "string",
"format": "uri"
},
"target_commitish": {
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from."
}
},
"description": "The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object."
}
webhooks_release_1
{
"type": "object",
"title": "Release",
"required": [
"assets",
"assets_url",
"author",
"body",
"created_at",
"draft",
"html_url",
"id",
"name",
"node_id",
"prerelease",
"immutable",
"published_at",
"tag_name",
"tarball_url",
"target_commitish",
"updated_at",
"upload_url",
"url",
"zipball_url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"body": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"draft": {
"type": "boolean",
"description": "Whether the release is a draft or published"
},
"assets": {
"type": "array",
"items": {
"type": "object",
"title": "Release Asset",
"nullable": true,
"required": [
"url",
"browser_download_url",
"id",
"node_id",
"name",
"label",
"state",
"content_type",
"size",
"digest",
"download_count",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string",
"description": "The file name of the asset."
},
"size": {
"type": "integer"
},
"label": {
"type": "string",
"nullable": true
},
"state": {
"enum": [
"uploaded"
],
"type": "string",
"description": "State of the release asset."
},
"digest": {
"type": "string",
"nullable": true
},
"node_id": {
"type": "string"
},
"uploader": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"content_type": {
"type": "string"
},
"download_count": {
"type": "integer"
},
"browser_download_url": {
"type": "string",
"format": "uri"
}
},
"description": "Data related to a release."
}
},
"author": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"tag_name": {
"type": "string",
"description": "The name of the tag."
},
"immutable": {
"type": "boolean",
"description": "Whether or not the release is immutable."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"assets_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"prerelease": {
"type": "boolean",
"description": "Whether the release is identified as a prerelease or a full release."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"upload_url": {
"type": "string",
"format": "uri-template"
},
"tarball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"zipball_url": {
"type": "string",
"format": "uri",
"nullable": true
},
"published_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"discussion_url": {
"type": "string",
"format": "uri"
},
"target_commitish": {
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from."
}
},
"description": "The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object."
}
webhooks_repositories
{
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"name",
"full_name",
"private"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"full_name": {
"type": "string"
}
}
},
"description": "An array of repository objects that the installation can access."
}
webhooks_repositories_added
{
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"node_id",
"name",
"full_name",
"private"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
},
"name": {
"type": "string",
"description": "The name of the repository."
},
"node_id": {
"type": "string"
},
"private": {
"type": "boolean",
"description": "Whether the repository is private or public."
},
"full_name": {
"type": "string"
}
}
},
"description": "An array of repository objects, which were added to the installation."
}
webhooks_repository_selection
{
"enum": [
"all",
"selected"
],
"type": "string",
"description": "Describe whether all repositories have been selected or there's a selection involved"
}
webhooks_review
{
"type": "object",
"required": [
"id",
"node_id",
"user",
"body",
"commit_id",
"submitted_at",
"state",
"html_url",
"pull_request_url",
"author_association",
"_links"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the review"
},
"body": {
"type": "string",
"nullable": true,
"description": "The text of the review."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"state": {
"type": "string"
},
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"commit_id": {
"type": "string",
"description": "A commit SHA for the review."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"submitted_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"pull_request_url": {
"type": "string",
"format": "uri"
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
}
},
"description": "The review that was affected."
}
webhooks_review_comment
{
"type": "object",
"title": "Pull Request Review Comment",
"required": [
"url",
"pull_request_review_id",
"id",
"node_id",
"diff_hunk",
"path",
"position",
"original_position",
"commit_id",
"original_commit_id",
"user",
"body",
"created_at",
"updated_at",
"html_url",
"pull_request_url",
"author_association",
"_links",
"start_line",
"original_start_line",
"original_line",
"line",
"start_side",
"side",
"reactions"
],
"properties": {
"id": {
"type": "integer",
"description": "The ID of the pull request review comment."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request review comment"
},
"body": {
"type": "string",
"description": "The text of the comment."
},
"line": {
"type": "integer",
"nullable": true,
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"path": {
"type": "string",
"description": "The relative path of the file to which the comment applies."
},
"side": {
"enum": [
"LEFT",
"RIGHT"
],
"type": "string",
"description": "The side of the first line of the range for a multi-line comment."
},
"user": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"_links": {
"type": "object",
"required": [
"self",
"html",
"pull_request"
],
"properties": {
"html": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"self": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
},
"pull_request": {
"type": "object",
"title": "Link",
"required": [
"href"
],
"properties": {
"href": {
"type": "string",
"format": "uri-template"
}
}
}
}
},
"node_id": {
"type": "string",
"description": "The node ID of the pull request review comment."
},
"html_url": {
"type": "string",
"format": "uri",
"description": "HTML URL for the pull request review comment."
},
"position": {
"type": "integer",
"nullable": true,
"description": "The line index in the diff to which the comment applies."
},
"commit_id": {
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"diff_hunk": {
"type": "string",
"description": "The diff of the line that the comment refers to."
},
"reactions": {
"type": "object",
"title": "Reactions",
"required": [
"url",
"total_count",
"+1",
"-1",
"laugh",
"confused",
"heart",
"hooray",
"eyes",
"rocket"
],
"properties": {
"+1": {
"type": "integer"
},
"-1": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"eyes": {
"type": "integer"
},
"heart": {
"type": "integer"
},
"laugh": {
"type": "integer"
},
"hooray": {
"type": "integer"
},
"rocket": {
"type": "integer"
},
"confused": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"start_side": {
"enum": [
"LEFT",
"RIGHT",
null
],
"type": "string",
"default": "RIGHT",
"nullable": true,
"description": "The side of the first line of the range for a multi-line comment."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"subject_type": {
"enum": [
"line",
"file"
],
"type": "string",
"description": "The level at which the comment is targeted, can be a diff line or a file."
},
"original_line": {
"type": "integer",
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"
},
"in_reply_to_id": {
"type": "integer",
"description": "The comment ID to reply to."
},
"pull_request_url": {
"type": "string",
"format": "uri",
"description": "URL for the pull request that the review comment belongs to."
},
"original_position": {
"type": "integer",
"description": "The index of the original line in the diff to which the comment applies."
},
"author_association": {
"enum": [
"COLLABORATOR",
"CONTRIBUTOR",
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",
"MANNEQUIN",
"MEMBER",
"NONE",
"OWNER"
],
"type": "string",
"title": "AuthorAssociation",
"description": "How the author is associated with the repository."
},
"original_commit_id": {
"type": "string",
"description": "The SHA of the original commit to which the comment applies."
},
"original_start_line": {
"type": "integer",
"nullable": true,
"description": "The first line of the range for a multi-line comment."
},
"pull_request_review_id": {
"type": "integer",
"nullable": true,
"description": "The ID of the pull request review to which the comment belongs."
}
},
"description": "The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself."
}
webhooks_reviewers
{
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"enum": [
"User"
],
"type": "string"
},
"reviewer": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
}
}
}
webhooks_rule
{
"type": "object",
"title": "branch protection rule",
"required": [
"id",
"repository_id",
"name",
"created_at",
"updated_at",
"pull_request_reviews_enforcement_level",
"required_approving_review_count",
"dismiss_stale_reviews_on_push",
"require_code_owner_review",
"authorized_dismissal_actors_only",
"ignore_approvals_from_contributors",
"required_status_checks",
"required_status_checks_enforcement_level",
"strict_required_status_checks_policy",
"signature_requirement_enforcement_level",
"linear_history_requirement_enforcement_level",
"lock_branch_enforcement_level",
"admin_enforced",
"allow_force_pushes_enforcement_level",
"allow_deletions_enforcement_level",
"merge_queue_enforcement_level",
"required_deployments_enforcement_level",
"required_conversation_resolution_level",
"authorized_actors_only",
"authorized_actor_names"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"repository_id": {
"type": "integer"
},
"admin_enforced": {
"type": "boolean"
},
"create_protected": {
"type": "boolean"
},
"lock_allows_fork_sync": {
"type": "boolean",
"description": "Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks."
},
"authorized_actor_names": {
"type": "array",
"items": {
"type": "string"
}
},
"authorized_actors_only": {
"type": "boolean"
},
"required_status_checks": {
"type": "array",
"items": {
"type": "string"
}
},
"require_code_owner_review": {
"type": "boolean"
},
"require_last_push_approval": {
"type": "boolean",
"description": "Whether the most recent push must be approved by someone other than the person who pushed it"
},
"dismiss_stale_reviews_on_push": {
"type": "boolean"
},
"lock_branch_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string",
"description": "The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone."
},
"merge_queue_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"required_approving_review_count": {
"type": "integer"
},
"authorized_dismissal_actors_only": {
"type": "boolean"
},
"allow_deletions_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"ignore_approvals_from_contributors": {
"type": "boolean"
},
"allow_force_pushes_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"strict_required_status_checks_policy": {
"type": "boolean"
},
"pull_request_reviews_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"required_conversation_resolution_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"required_deployments_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"signature_requirement_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"required_status_checks_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
},
"linear_history_requirement_enforcement_level": {
"enum": [
"off",
"non_admins",
"everyone"
],
"type": "string"
}
},
"description": "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings."
}
webhooks_security_advisory
{
"type": "object",
"required": [
"cvss",
"cwes",
"ghsa_id",
"summary",
"description",
"severity",
"identifiers",
"references",
"published_at",
"updated_at",
"withdrawn_at",
"vulnerabilities"
],
"properties": {
"cvss": {
"type": "object",
"required": [
"vector_string",
"score"
],
"properties": {
"score": {
"type": "number"
},
"vector_string": {
"type": "string",
"nullable": true
}
}
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"name": {
"type": "string"
},
"cwe_id": {
"type": "string"
}
}
}
},
"ghsa_id": {
"type": "string"
},
"summary": {
"type": "string"
},
"severity": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
}
}
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"type"
],
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"published_at": {
"type": "string"
},
"withdrawn_at": {
"type": "string",
"nullable": true
},
"cvss_severities": {
"$ref": "#/components/schemas/cvss-severities"
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"package",
"severity",
"vulnerable_version_range",
"first_patched_version"
],
"properties": {
"package": {
"type": "object",
"required": [
"ecosystem",
"name"
],
"properties": {
"name": {
"type": "string"
},
"ecosystem": {
"type": "string"
}
}
},
"severity": {
"type": "string"
},
"first_patched_version": {
"type": "object",
"nullable": true,
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string"
}
}
},
"vulnerable_version_range": {
"type": "string"
}
}
}
}
},
"description": "The details of the security advisory, including summary, description, and severity.",
"x-github-breaking-changes": [
{
"patch": {
"required": [
"cwes",
"ghsa_id",
"summary",
"description",
"severity",
"identifiers",
"references",
"published_at",
"updated_at",
"withdrawn_at",
"vulnerabilities"
],
"properties": {
"cvss": null
}
},
"version": "2026-03-10",
"changeset": "deprecate_cvss"
}
]
}
webhooks_sponsorship
{
"type": "object",
"required": [
"node_id",
"created_at",
"sponsorable",
"sponsor",
"privacy_level",
"tier"
],
"properties": {
"tier": {
"type": "object",
"title": "Sponsorship Tier",
"required": [
"node_id",
"created_at",
"description",
"monthly_price_in_cents",
"monthly_price_in_dollars",
"name",
"is_one_time"
],
"properties": {
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"created_at": {
"type": "string"
},
"description": {
"type": "string"
},
"is_one_time": {
"type": "boolean"
},
"is_custom_amount": {
"type": "boolean"
},
"is_custom_ammount": {
"type": "boolean"
},
"monthly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_dollars": {
"type": "integer"
}
},
"description": "The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload."
},
"node_id": {
"type": "string"
},
"sponsor": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"created_at": {
"type": "string"
},
"maintainer": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"received_events_url": {
"type": "string"
}
}
},
"sponsorable": {
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
},
"privacy_level": {
"type": "string"
}
}
}
webhooks_team
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"notification_setting",
"url",
"html_url",
"members_url",
"repositories_url",
"permission",
"type"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"enum": [
"notifications_enabled",
"notifications_disabled"
],
"type": "string",
"description": "Whether team members will receive notifications when their team is @mentioned"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"enum": [
"notifications_enabled",
"notifications_disabled"
],
"type": "string"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
webhooks_team_1
{
"type": "object",
"title": "Team",
"required": [
"name",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"parent": {
"type": "object",
"nullable": true,
"required": [
"name",
"id",
"node_id",
"slug",
"description",
"privacy",
"notification_setting",
"url",
"html_url",
"members_url",
"repositories_url",
"permission",
"type"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the team"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL for the team"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"slug": {
"type": "string"
},
"type": {
"enum": [
"enterprise",
"organization"
],
"type": "string",
"description": "The ownership type of the team"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"enum": [
"notifications_enabled",
"notifications_disabled"
],
"type": "string",
"description": "Whether team members will receive notifications when their team is @mentioned"
}
}
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"privacy": {
"enum": [
"open",
"closed",
"secret"
],
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"permission": {
"type": "string",
"description": "Permission that the team will have for its repositories"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description of the team"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"enterprise_id": {
"type": "integer",
"example": 42,
"description": "Unique identifier of the enterprise to which this team belongs"
},
"organization_id": {
"type": "integer",
"example": 37,
"description": "Unique identifier of the organization to which this team belongs"
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"notification_setting": {
"enum": [
"notifications_enabled",
"notifications_disabled"
],
"type": "string",
"description": "Whether team members will receive notifications when their team is @mentioned"
}
},
"description": "Groups of organization members that gives permissions on specified repositories."
}
webhooks_user
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
webhooks_user_mannequin
{
"type": "object",
"title": "User",
"nullable": true,
"required": [
"login",
"id"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"email": {
"type": "string",
"nullable": true
},
"login": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"site_admin": {
"type": "boolean"
},
"gravatar_id": {
"type": "string"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"user_view_type": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
}
}
}
webhooks_workflow
{
"type": "object",
"title": "Workflow",
"nullable": true,
"required": [
"badge_url",
"created_at",
"html_url",
"id",
"name",
"node_id",
"path",
"state",
"updated_at",
"url"
],
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"state": {
"type": "string"
},
"node_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"badge_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
}
}
webhooks_workflow_job_run
{
"type": "object",
"required": [
"id",
"name",
"status",
"conclusion",
"html_url",
"created_at",
"updated_at",
"environment"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"nullable": true
},
"status": {
"type": "string"
},
"html_url": {
"type": "string"
},
"conclusion": {
"nullable": true
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"environment": {
"type": "string"
}
}
}
workflow
{
"type": "object",
"title": "Workflow",
"required": [
"id",
"node_id",
"name",
"path",
"state",
"url",
"html_url",
"badge_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "integer",
"example": 5
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/actions/setup-ruby/workflows/5"
},
"name": {
"type": "string",
"example": "CI"
},
"path": {
"type": "string",
"example": "ruby.yaml"
},
"state": {
"enum": [
"active",
"deleted",
"disabled_fork",
"disabled_inactivity",
"disabled_manually"
],
"type": "string",
"example": "active"
},
"node_id": {
"type": "string",
"example": "MDg6V29ya2Zsb3cxMg=="
},
"html_url": {
"type": "string",
"example": "https://github.com/actions/setup-ruby/blob/master/.github/workflows/ruby.yaml"
},
"badge_url": {
"type": "string",
"example": "https://github.com/actions/setup-ruby/workflows/CI/badge.svg"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2019-12-06T14:20:20.000Z"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"example": "2019-12-06T14:20:20.000Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2019-12-06T14:20:20.000Z"
}
},
"description": "A GitHub Actions workflow"
}
workflow-dispatch-response
{
"type": "object",
"title": "Workflow Dispatch Response",
"required": [
"workflow_run_id",
"run_url",
"html_url"
],
"properties": {
"run_url": {
"type": "string",
"format": "uri",
"description": "The URL to the workflow run."
},
"html_url": {
"type": "string",
"format": "uri"
},
"workflow_run_id": {
"$ref": "#/components/schemas/workflow-run-id"
}
},
"description": "Response containing the workflow run ID and URLs."
}
workflow-run
{
"type": "object",
"title": "Workflow Run",
"required": [
"id",
"node_id",
"head_branch",
"run_number",
"display_title",
"event",
"status",
"conclusion",
"head_sha",
"path",
"workflow_id",
"url",
"html_url",
"created_at",
"updated_at",
"head_commit",
"head_repository",
"repository",
"jobs_url",
"logs_url",
"check_suite_url",
"cancel_url",
"rerun_url",
"artifacts_url",
"workflow_url",
"pull_requests"
],
"properties": {
"id": {
"type": "integer",
"example": 5,
"description": "The ID of the workflow run."
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5",
"description": "The URL to the workflow run."
},
"name": {
"type": "string",
"example": "Build",
"nullable": true,
"description": "The name of the workflow run."
},
"path": {
"type": "string",
"example": "octocat/octo-repo/.github/workflows/ci.yml@main",
"description": "The full path of the workflow"
},
"actor": {
"$ref": "#/components/schemas/simple-user"
},
"event": {
"type": "string",
"example": "push"
},
"status": {
"type": "string",
"example": "completed",
"nullable": true
},
"node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU1"
},
"head_sha": {
"type": "string",
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"description": "The SHA of the head commit that points to the version of the workflow being run."
},
"html_url": {
"type": "string",
"example": "https://github.com/github/hello-world/suites/4"
},
"jobs_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/jobs",
"description": "The URL to the jobs for the workflow run."
},
"logs_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/logs",
"description": "The URL to download the logs for the workflow run."
},
"rerun_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/rerun",
"description": "The URL to rerun the workflow run."
},
"cancel_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/cancel",
"description": "The URL to cancel the workflow run."
},
"conclusion": {
"type": "string",
"example": "neutral",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time"
},
"repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"run_number": {
"type": "integer",
"example": 106,
"description": "The auto incrementing run number for the workflow run."
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"head_branch": {
"type": "string",
"example": "master",
"nullable": true
},
"head_commit": {
"$ref": "#/components/schemas/nullable-simple-commit"
},
"run_attempt": {
"type": "integer",
"example": 1,
"description": "Attempt number of the run, 1 for first attempt and higher if the workflow was re-run."
},
"workflow_id": {
"type": "integer",
"example": 5,
"description": "The ID of the parent workflow."
},
"workflow_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/workflows/main.yaml",
"description": "The URL to the workflow."
},
"artifacts_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/rerun/artifacts",
"description": "The URL to the artifacts for the workflow run."
},
"display_title": {
"type": "string",
"example": "Simple Workflow",
"description": "The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow."
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pull-request-minimal"
},
"nullable": true,
"description": "Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run."
},
"check_suite_id": {
"type": "integer",
"example": 42,
"description": "The ID of the associated check suite."
},
"run_started_at": {
"type": "string",
"format": "date-time",
"description": "The start time of the latest run. Resets on re-run."
},
"check_suite_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/check-suites/12",
"description": "The URL to the associated check suite."
},
"head_repository": {
"$ref": "#/components/schemas/minimal-repository"
},
"triggering_actor": {
"$ref": "#/components/schemas/simple-user"
},
"head_repository_id": {
"type": "integer",
"example": 5
},
"check_suite_node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU0Mg==",
"description": "The node ID of the associated check suite."
},
"previous_attempt_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/attempts/3",
"nullable": true,
"description": "The URL to the previous attempted run of this workflow, if one exists."
},
"referenced_workflows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/referenced-workflow"
},
"nullable": true
}
},
"description": "An invocation of a workflow"
}
workflow-run-id
{
"type": "integer",
"title": "Workflow Run ID",
"format": "int64",
"description": "The ID of the workflow run."
}
workflow-run-usage
{
"type": "object",
"title": "Workflow Run Usage",
"required": [
"billable"
],
"properties": {
"billable": {
"type": "object",
"properties": {
"MACOS": {
"type": "object",
"required": [
"total_ms",
"jobs"
],
"properties": {
"jobs": {
"type": "integer"
},
"job_runs": {
"type": "array",
"items": {
"type": "object",
"required": [
"job_id",
"duration_ms"
],
"properties": {
"job_id": {
"type": "integer"
},
"duration_ms": {
"type": "integer"
}
}
}
},
"total_ms": {
"type": "integer"
}
}
},
"UBUNTU": {
"type": "object",
"required": [
"total_ms",
"jobs"
],
"properties": {
"jobs": {
"type": "integer"
},
"job_runs": {
"type": "array",
"items": {
"type": "object",
"required": [
"job_id",
"duration_ms"
],
"properties": {
"job_id": {
"type": "integer"
},
"duration_ms": {
"type": "integer"
}
}
}
},
"total_ms": {
"type": "integer"
}
}
},
"WINDOWS": {
"type": "object",
"required": [
"total_ms",
"jobs"
],
"properties": {
"jobs": {
"type": "integer"
},
"job_runs": {
"type": "array",
"items": {
"type": "object",
"required": [
"job_id",
"duration_ms"
],
"properties": {
"job_id": {
"type": "integer"
},
"duration_ms": {
"type": "integer"
}
}
}
},
"total_ms": {
"type": "integer"
}
}
}
}
},
"run_duration_ms": {
"type": "integer"
}
},
"description": "Workflow Run Usage"
}
workflow-usage
{
"type": "object",
"title": "Workflow Usage",
"required": [
"billable"
],
"properties": {
"billable": {
"type": "object",
"properties": {
"MACOS": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
},
"UBUNTU": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
},
"WINDOWS": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
}
}
}
},
"description": "Workflow Usage"
}