@wolfy1339/openapi-webhooks
Version:
GitHub's official Webhooks OpenAPI spec with Octokit extensions
1,118 lines • 4.8 MB
JSON
{
"openapi": "3.1.0",
"info": {
"version": "5.2.1",
"title": "GitHub's official Webhooks OpenAPI spec + Octokit extension",
"description": "Webhooks OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
"termsOfService": "https://docs.github.com/articles/github-terms-of-service",
"contact": {
"name": "Support",
"url": "https://github.com/octokit/openapi"
},
"x-github-plan": "github.ae"
},
"tags": [
{
"name": "actions",
"description": "Endpoints to manage GitHub Actions using the REST API."
},
{
"name": "activity",
"description": "Activity APIs provide access to notifications, subscriptions, and timelines."
},
{
"name": "apps",
"description": "Information for integrations and installations."
},
{
"name": "billing",
"description": "Monitor charges and usage from Actions and Packages."
},
{
"name": "checks",
"description": "Rich interactions with checks run by your integrations."
},
{
"name": "code-scanning",
"description": "Retrieve code scanning alerts from a repository."
},
{
"name": "codes-of-conduct",
"description": "Insight into codes of conduct for your communities."
},
{
"name": "emojis",
"description": "List emojis available to use on GitHub."
},
{ "name": "dependabot", "description": "Endpoints to manage Dependabot." },
{
"name": "dependency-graph",
"description": "Endpoints to access Dependency Graph features."
},
{ "name": "gists", "description": "View, modify your gists." },
{ "name": "git", "description": "Raw Git functionality." },
{ "name": "gitignore", "description": "View gitignore templates" },
{ "name": "issues", "description": "Interact with GitHub Issues." },
{ "name": "licenses", "description": "View various OSS licenses." },
{ "name": "markdown", "description": "Render GitHub flavored markdown" },
{
"name": "merge-queue",
"description": "Interact with GitHub Merge Queues."
},
{
"name": "meta",
"description": "Endpoints that give information about the API."
},
{ "name": "migrations", "description": "Move projects to or from GitHub." },
{
"name": "oidc",
"description": "Endpoints to manage GitHub OIDC configuration using the REST API."
},
{ "name": "orgs", "description": "Interact with GitHub Orgs." },
{
"name": "packages",
"description": "Manage packages for authenticated users and organizations."
},
{ "name": "projects", "description": "Interact with GitHub Projects." },
{ "name": "pulls", "description": "Interact with GitHub Pull Requests." },
{
"name": "rate-limit",
"description": "Check your current rate limit status"
},
{
"name": "reactions",
"description": "Interact with reactions to various GitHub entities."
},
{ "name": "repos", "description": "Interact with GitHub Repos." },
{ "name": "search", "description": "Look for stuff on GitHub." },
{
"name": "secret-scanning",
"description": "Retrieve secret scanning alerts from a repository."
},
{ "name": "teams", "description": "Interact with GitHub Teams." },
{
"name": "users",
"description": "Interact with and view information about users and also current user."
},
{ "name": "enterprise-admin", "description": "Enterprise Administration" }
],
"servers": [
{
"url": "https://{hostname}/api/v3",
"variables": {
"hostname": {
"description": "Self-hosted GitHub AE hostname",
"default": "HOSTNAME"
}
}
}
],
"externalDocs": {
"description": "GitHub AE Developer Docs",
"url": "https://docs.github.com/github-ae@latest/rest/"
},
"webhooks": {
"branch-protection-rule-created": {
"post": {
"summary": "This event occurs when there is activity relating to branch protection rules. For more information, see \"[About protected branches](https://docs.github.com/github-ae@latest/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches).\" For information about the APIs to manage branch protection rules, see [the GraphQL documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#branchprotectionrule) or \"[Branch protection](https://docs.github.com/github-ae@latest/rest/branches/branch-protection)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.",
"description": "A branch protection rule was created.",
"operationId": "branch-protection-rule/created",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#branch_protection_rule"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-branch-protection-rule-created"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "branch_protection_rule",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"branch-protection-rule-deleted": {
"post": {
"summary": "This event occurs when there is activity relating to branch protection rules. For more information, see \"[About protected branches](https://docs.github.com/github-ae@latest/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches).\" For information about the APIs to manage branch protection rules, see [the GraphQL documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#branchprotectionrule) or \"[Branch protection](https://docs.github.com/github-ae@latest/rest/branches/branch-protection)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.",
"description": "A branch protection rule was deleted.",
"operationId": "branch-protection-rule/deleted",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#branch_protection_rule"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-branch-protection-rule-deleted"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "branch_protection_rule",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"branch-protection-rule-edited": {
"post": {
"summary": "This event occurs when there is activity relating to branch protection rules. For more information, see \"[About protected branches](https://docs.github.com/github-ae@latest/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches).\" For information about the APIs to manage branch protection rules, see [the GraphQL documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#branchprotectionrule) or \"[Branch protection](https://docs.github.com/github-ae@latest/rest/branches/branch-protection)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.",
"description": "A branch protection rule was edited.",
"operationId": "branch-protection-rule/edited",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#branch_protection_rule"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-branch-protection-rule-edited"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "branch_protection_rule",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-run-completed": {
"post": {
"summary": "This event occurs when there is activity relating to a check run. For information about check runs, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check runs, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checkrun) or \"[Check Runs](https://docs.github.com/github-ae@latest/rest/checks/runs)\" in the REST API documentation.\n\nFor activity relating to check suites, use the `check-suite` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" repository permission. To receive the `rerequested` and `requested_action` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `created` and `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check run was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "A check run was completed, and a conclusion is available.",
"operationId": "check-run/completed",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_run"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-run-completed"
},
"examples": {
"default": {
"$ref": "#/components/examples/check-run-completed"
}
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "webhooks",
"subcategory": "check_run",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-run-created": {
"post": {
"summary": "This event occurs when there is activity relating to a check run. For information about check runs, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check runs, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checkrun) or \"[Check Runs](https://docs.github.com/github-ae@latest/rest/checks/runs)\" in the REST API documentation.\n\nFor activity relating to check suites, use the `check-suite` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" repository permission. To receive the `rerequested` and `requested_action` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `created` and `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check run was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "A new check run was created.",
"operationId": "check-run/created",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_run"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-run-created"
},
"examples": {
"default": { "$ref": "#/components/examples/check-run-created" }
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "webhooks",
"subcategory": "check_run",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-run-requested-action": {
"post": {
"summary": "This event occurs when there is activity relating to a check run. For information about check runs, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check runs, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checkrun) or \"[Check Runs](https://docs.github.com/github-ae@latest/rest/checks/runs)\" in the REST API documentation.\n\nFor activity relating to check suites, use the `check-suite` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" repository permission. To receive the `rerequested` and `requested_action` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `created` and `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check run was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "A check run completed, and someone requested a followup action that your app provides. Only the GitHub App someone requests to perform an action will receive the `requested_action` payload. For more information, see \"[Creating CI tests with the Checks API](https://docs.github.com/github-ae@latest/developers/apps/guides/creating-ci-tests-with-the-checks-api).\"",
"operationId": "check-run/requested-action",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_run"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-run-requested-action"
},
"examples": {
"default": {
"$ref": "#/components/examples/check-run-requested-action"
}
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "webhooks",
"subcategory": "check_run",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-run-rerequested": {
"post": {
"summary": "This event occurs when there is activity relating to a check run. For information about check runs, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check runs, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checkrun) or \"[Check Runs](https://docs.github.com/github-ae@latest/rest/checks/runs)\" in the REST API documentation.\n\nFor activity relating to check suites, use the `check-suite` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" repository permission. To receive the `rerequested` and `requested_action` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `created` and `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check run was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "Someone requested to re-run a check run. Only the GitHub App that someone requests to re-run the check will receive the `rerequested` payload.",
"operationId": "check-run/rerequested",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_run"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-run-rerequested"
},
"examples": {
"default": {
"$ref": "#/components/examples/check-run-rerequested"
}
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "webhooks",
"subcategory": "check_run",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-suite-completed": {
"post": {
"summary": "This event occurs when there is activity relating to a check suite. For information about check suites, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check suites, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checksuite) or \"[Check Suites](https://docs.github.com/github-ae@latest/rest/checks/suites)\" in the REST API documentation.\n\nFor activity relating to check runs, use the `check_run` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" permission. To receive the `requested` and `rerequested` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "All check runs in a check suite have completed, and a conclusion is available.",
"operationId": "check-suite/completed",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_suite"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-suite-completed"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "check_suite",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-suite-requested": {
"post": {
"summary": "This event occurs when there is activity relating to a check suite. For information about check suites, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check suites, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checksuite) or \"[Check Suites](https://docs.github.com/github-ae@latest/rest/checks/suites)\" in the REST API documentation.\n\nFor activity relating to check runs, use the `check_run` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" permission. To receive the `requested` and `rerequested` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "Someone requested to run a check suite. By default, check suites are automatically created when you create a check run. For more information, see [the GraphQL API documentation for creating a check run](https://docs.github.com/github-ae@latest/graphql/reference/mutations#createcheckrun) or \"[Create a check run](https://docs.github.com/github-ae@latest/rest/checks/runs#create-a-check-run)\" in the REST API documentation.",
"operationId": "check-suite/requested",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_suite"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-suite-requested"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "check_suite",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"check-suite-rerequested": {
"post": {
"summary": "This event occurs when there is activity relating to a check suite. For information about check suites, see \"[Getting started with the Checks API](https://docs.github.com/github-ae@latest/rest/guides/getting-started-with-the-checks-api).\" For information about the APIs to manage check suites, see [the GraphQL API documentation](https://docs.github.com/github-ae@latest/graphql/reference/objects#checksuite) or \"[Check Suites](https://docs.github.com/github-ae@latest/rest/checks/suites)\" in the REST API documentation.\n\nFor activity relating to check runs, use the `check_run` event.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Checks\" permission. To receive the `requested` and `rerequested` event types, the app must have at least write-level access for the \"Checks\" permission. GitHub Apps with write-level access for the \"Checks\" permission are automatically subscribed to this webhook event.\n\nRepository and organization webhooks only receive payloads for the `completed` event types in repositories.\n\n**Note**: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.",
"description": "Someone requested to re-run the check runs in a check suite. For more information, see [the GraphQL API documentation for creating a check suite](https://docs.github.com/github-ae@latest/graphql/reference/mutations#createchecksuite) or \"[Create a check suite](https://docs.github.com/github-ae@latest/rest/checks/suites#create-a-check-suite)\" in the REST API documentation.",
"operationId": "check-suite/rerequested",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#check_suite"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-check-suite-rerequested"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "check_suite",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"code-scanning-alert-appeared-in-branch": {
"post": {
"summary": "This event occurs when there is activity relating to code scanning alerts in a repository. For more information, see \"[About code scanning](https://docs.github.com/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning)\" and \"[About code scanning alerts](https://docs.github.com/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-alerts).\" For information about the API to manage code scanning, see \"[Code scanning](https://docs.github.com/github-ae@latest/rest/code-scanning)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Code scanning alerts\" repository permission.",
"description": "A previously created code scanning alert appeared in another branch. This can happen when a branch is merged into or created from a branch with a pre-existing code scanning alert.",
"operationId": "code-scanning-alert/appeared-in-branch",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#code_scanning_alert"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-code-scanning-alert-appeared-in-branch"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "code_scanning_alert",
"supported-webhook-types": ["repository", "organization", "app"]
}
}
},
"code-scanning-alert-closed-by-user": {
"post": {
"summary": "This event occurs when there is activity relating to code scanning alerts in a repository. For more information, see \"[About code scanning](https://docs.github.com/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning)\" and \"[About code scanning alerts](https://docs.github.com/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-alerts).\" For information about the API to manage code scanning, see \"[Code scanning](https://docs.github.com/github-ae@latest/rest/code-scanning)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Code scanning alerts\" repository permission.",
"description": "Someone closed a code scanning alert.",
"operationId": "code-scanning-alert/closed-by-user",
"externalDocs": {
"url": "https://docs.github.com/github-ae@latest/webhooks/webhook-events-and-payloads#code_scanning_alert"
},
"parameters": [
{
"name": "User-Agent",
"in": "header",
"example": "GitHub-Hookshot/123abc",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Id",
"in": "header",
"example": 12312312,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Event",
"in": "header",
"example": "issues",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Id",
"in": "header",
"example": 123123,
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Github-Hook-Installation-Target-Type",
"in": "header",
"example": "repository",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-GitHub-Delivery",
"in": "header",
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
"schema": { "type": "string" },
"required": true
},
{
"name": "X-Hub-Signature-256",
"in": "header",
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
"schema": { "type": "string" },
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook-code-scanning-alert-closed-by-user"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"x-github": {
"githubCloudOnly": false,
"category": "webhooks",
"subcategory": "code_scanning_alert",
"supported-webhook-types":