Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
GitHub Docs

Webhook events and payloads

Learn about when each webhook event occurs and what the payload contains.

In this article

About webhook events and payloads

You can create webhooks that subscribe to the events listed on this page. To limit the number of HTTP requests to your server, you should only subscribe to the specific events that you plan on handling. For more information, seeCreating webhooks.

Each webhook event on this page includes a description of the webhook properties for that event. If the event has multiple actions, the properties corresponding to each action are included.

Each event is only available to specific types of webhooks. For example, an organization webhook can subscribe to theteam event, but a repository webhook cannot. The description of each webhook event lists the availability for that event. For more information, seeTypes of webhooks.

Payload cap

Payloads are capped at 25 MB. If an event generates a larger payload, GitHub will not deliver a payload for that webhook event. This may happen, for example, on acreate event if many branches or tags are pushed at once. We suggest monitoring your payload size to ensure delivery.

Delivery headers

HTTP POST payloads that are delivered to your webhook's configured URL endpoint will contain several special headers:

  • X-GitHub-Hook-ID: The unique identifier of the webhook.
  • X-GitHub-Event: The name of the event that triggered the delivery.
  • X-GitHub-Delivery: A globally unique identifier (GUID) to identify the event.
  • X-Hub-Signature: This header is sent if the webhook is configured with asecret. This is the HMAC hex digest of the request body, and is generated using the SHA-1 hash function and thesecret as the HMACkey.X-Hub-Signature is provided for compatibility with existing integrations. We recommend that you use the more secureX-Hub-Signature-256 instead.
  • X-Hub-Signature-256: This header is sent if the webhook is configured with asecret. This is the HMAC hex digest of the request body, and is generated using the SHA-256 hash function and thesecret as the HMACkey. For more information, seeValidating webhook deliveries.
  • User-Agent: This header will always have the prefixGitHub-Hookshot/.
  • X-GitHub-Hook-Installation-Target-Type: The type of resource where the webhook was created.
  • X-GitHub-Hook-Installation-Target-ID: The unique identifier of the resource where the webhook was created.

To see what each header might look like in a webhook payload, seeExample webhook delivery.

Example webhook delivery

You can choose to have payloads delivered in JSON format (application/json) or as URL-encoded data (x-www-form-urlencoded). Following is an example of a webhook POST request that uses the JSON format.

>POST /payload HTTP/1.1>X-GitHub-Delivery: 72d3162e-cc78-11e3-81ab-4c9367dc0958>X-Hub-Signature: sha1=7d38cdd689735b008b3c702edd92eea23791c5f6>X-Hub-Signature-256: sha256=d57c68ca6f92289e6987922ff26938930f6e66a2d161ef06abdf1859230aa23c>User-Agent: GitHub-Hookshot/044aadd>Content-Type: application/json>Content-Length: 6615>X-GitHub-Event: issues>X-GitHub-Hook-ID: 292430182>X-GitHub-Hook-Installation-Target-ID: 79929171>X-GitHub-Hook-Installation-Target-Type: repository>{>"action":"opened",>"issue": {>"url":"https://api.github.com/repos/octocat/Hello-World/issues/1347",>"number": 1347,>    ...>  },>"repository" : {>"id": 1296269,>"full_name":"octocat/Hello-World",>"owner": {>"login":"octocat",>"id": 1,>      ...>    },>    ...>  },>"sender": {>"login":"octocat",>"id": 1,>    ...>  }>}

branch_protection_configuration

This event occurs when there is a change to branch protection configurations for a repository.For more information, see "About protected branches."For information about using the APIs to manage branch protection rules, see "Branch protection rule" in the GraphQL documentation or "Branch protection" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.

Availability forbranch_protection_configuration

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forbranch_protection_configuration

All branch protections were disabled for a repository.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:disabled

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

branch_protection_rule

This event occurs when there is activity relating to branch protection rules. For more information, see "About protected branches." For information about the APIs to manage branch protection rules, seethe GraphQL documentation or "Branch protection" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.

Availability forbranch_protection_rule

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forbranch_protection_rule

A branch protection rule was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

ruleobjectRequired

The branch protection rule. Includes aname and all thebranch protection settings applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one ofoff,non_admins, oreveryone. Actor and build lists are arrays of strings.

senderobjectRequired

A GitHub user.

check_run

This event occurs when there is activity relating to a check run. For information about check runs, see "Getting started with the Checks API." For information about the APIs to manage check runs, seethe GraphQL API documentation or "Check Runs" in the REST API documentation.

For activity relating to check suites, use thecheck-suite event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" repository permission. To receive thererequested andrequested_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.

Repository and organization webhooks only receive payloads for thecreated andcompleted event types in repositories.

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 emptypull_requests array and anull value forhead_branch.

Availability forcheck_run

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcheck_run

A check run was completed, and a conclusion is available.

Webhook request body parameters
Name, Type, Description
actionstring

Value:completed

check_runobjectRequired

A check performed on the code of a given code change

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

check_suite

This event occurs when there is activity relating to a check suite. For information about check suites, see "Getting started with the Checks API." For information about the APIs to manage check suites, seethe GraphQL API documentation or "Check Suites" in the REST API documentation.

For activity relating to check runs, use thecheck_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" permission. To receive therequested andrerequested 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.

Repository and organization webhooks only receive payloads for thecompleted event types in repositories.

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 emptypull_requests array and anull value forhead_branch.

Availability forcheck_suite

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcheck_suite

All check runs in a check suite have completed, and a conclusion is available.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:completed

check_suiteobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

code_scanning_alert

This event occurs when there is activity relating to code scanning alerts in a repository. For more information, see "About code scanning" and "About code scanning alerts." For information about the API to manage code scanning, see "Code scanning" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Code scanning alerts" repository permission.

Availability forcode_scanning_alert

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcode_scanning_alert

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.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:appeared_in_branch

alertobjectRequired

The code scanning alert involved in the event.

commit_oidstringRequired

The commit SHA of the code scanning alert. When the action isreopened_by_user orclosed_by_user, the event was triggered by thesender and this value will be empty.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

refstringRequired

The Git reference of the code scanning alert. When the action isreopened_by_user orclosed_by_user, the event was triggered by thesender and this value will be empty.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

commit_comment

This event occurs when there is activity relating to commit comments. For more information about commit comments, see "Commenting on a pull request." For information about the APIs to manage commit comments, seethe GraphQL API documentation or "Commit comments" in the REST API documentation.

For activity relating to comments on pull request reviews, use thepull_request_review_comment event. For activity relating to issue comments, use theissue_comment event. For activity relating to discussion comments, use thediscussion_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forcommit_comment

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcommit_comment

Someone commented on a commit.

Webhook request body parameters
Name, Type, Description
actionstringRequired

The action performed. Can becreated.

Value:created

commentobjectRequired

Thecommit comment resource.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

create

This event occurs when a Git branch or tag is created.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Notes:

  • This event will not occur when more than three tags are created at once.
  • Payloads are capped at 25 MB. If an event generates a larger payload, GitHub will not deliver a payload for that webhook event. This may happen, for example, if many branches or tags are pushed at once. We suggest monitoring your payload size to ensure delivery.

Availability forcreate

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcreate

Webhook request body parameters
Name, Type, Description
descriptionstring or nullRequired

The repository's current description.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

master_branchstringRequired

The name of the repository's default branch (usuallymain).

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pusher_typestringRequired

The pusher type for the event. Can be eitheruser or a deploy key.

refstringRequired

Thegit ref resource.

ref_typestringRequired

The type of Git ref object created in the repository.

Can be one of:tag,branch

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

custom_property

This event occurs when there is activity relating to a custom property.

For more information, see "Managing custom properties for repositories in your organization". For information about the APIs to manage custom properties, see "Custom properties" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.

Availability forcustom_property

  • Enterprises
  • Organizations
  • GitHub Apps

Webhook payload object forcustom_property

A new custom property was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

definitionobjectRequired

Custom property defined on an organization

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

senderobject

A GitHub user.

custom_property_values

This event occurs when there is activity relating to custom property values for a repository.

For more information, see "Managing custom properties for repositories in your organization". For information about the APIs to manage custom properties for a repository, see "Custom properties" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.

Availability forcustom_property_values

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forcustom_property_values

The custom property values of a repository were updated.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:updated

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

senderobject

A GitHub user.

new_property_valuesarray of objectsRequired

The new custom property values for the repository.

old_property_valuesarray of objectsRequired

The old custom property values for the repository.

delete

This event occurs when a Git branch or tag is deleted. To subscribe to all pushes to a repository, includingbranch and tag deletions, use thepush webhook event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

This event will not occur when more than three tags are deleted at once.

Availability fordelete

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordelete

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pusher_typestringRequired

The pusher type for the event. Can be eitheruser or a deploy key.

refstringRequired

Thegit ref resource.

ref_typestringRequired

The type of Git ref object deleted in the repository.

Can be one of:tag,branch

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

dependabot_alert

This event occurs when there is activity relating to Dependabot alerts.

For more information about Dependabot alerts, see "About Dependabot alerts." For information about the API to manage Dependabot alerts, see "Dependabot alerts" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.

Webhook events for Dependabot alerts are currently in public preview and subject to change.

Availability fordependabot_alert

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordependabot_alert

A Dependabot alert was automatically closed by a Dependabot auto-triage rule.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:auto_dismissed

alertobjectRequired

A Dependabot alert.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

deploy_key

This event occurs when there is activity relating to deploy keys. For more information, see "Managing deploy keys." For information about the APIs to manage deploy keys, seethe GraphQL API documentation or "Deploy keys" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Availability fordeploy_key

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordeploy_key

A deploy key was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

keyobjectRequired

Thedeploy key resource.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

deployment

This event occurs when there is activity relating to deployments. For more information, see "About deployments." For information about the APIs to manage deployments, seethe GraphQL API documentation or "Deployments" in the REST API documentation.

For activity relating to deployment status, use thedeployment_status event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Availability fordeployment

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordeployment

A deployment was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

deploymentobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflowobject or nullRequired
workflow_runobject or nullRequired

deployment_protection_rule

This event occurs when there is activity relating to deployment protection rules. For more information, see "Using environments for deployment." For information about the API to manage deployment protection rules, seethe REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Availability fordeployment_protection_rule

  • GitHub Apps

Webhook payload object fordeployment_protection_rule

A deployment protection rule was requested for an environment.

Webhook request body parameters
Name, Type, Description
actionstring

Value:requested

environmentstring

The name of the environment that has the deployment protection rule.

eventstring

The event that triggered the deployment protection rule.

deployment_callback_urlstring

The URL to review the deployment protection rule.

deploymentobject

A request for a specific ref(branch,sha,tag) to be deployed

pull_requestsarray of objects
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

senderobject

A GitHub user.

deployment_review

This event occurs when there is activity relating to deployment reviews. For more information, see "About deployments." For information about the APIs to manage deployments, seethe GraphQL API documentation or "Deployments" in the REST API documentation.

For activity relating to deployment creation or deployment status, use thedeployment ordeployment_status event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Availability fordeployment_review

  • GitHub Apps

Webhook payload object fordeployment_review

A deployment review was approved.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:approved

approverobject
commentstring
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

reviewersarray of objects
senderobjectRequired

A GitHub user.

sincestringRequired
workflow_job_runobject
workflow_job_runsarray of objects
workflow_runobject or nullRequired

deployment_status

This event occurs when there is activity relating to deployment statuses. For more information, see "About deployments." For information about the APIs to manage deployments, seethe GraphQL API documentation or "Deployments" in the REST API documentation.

For activity relating to deployment creation, use thedeployment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

A webhook event is not fired for deployment statuses with aninactive state.

Availability fordeployment_status

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordeployment_status

A new deployment status was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

check_runobject or null
deploymentobjectRequired
deployment_statusobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflowobject or null
workflow_runobject or null

discussion

This event occurs when there is activity relating to a discussion. For more information about discussions, see "GitHub Discussions." For information about the API to manage discussions, seethe GraphQL documentation.

For activity relating to a comment on a discussion, use thediscussion_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Discussions" repository permission.

Webhook events for GitHub Discussions are currently in public preview and subject to change.

Availability fordiscussion

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordiscussion

A comment on the discussion was marked as the answer.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:answered

answerobjectRequired
discussionobjectRequired

A Discussion in a repository.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

discussion_comment

This event occurs when there is activity relating to a comment on a discussion. For more information about discussions, see "GitHub Discussions." For information about the API to manage discussions, seethe GraphQL documentation.

For activity relating to a discussion as opposed to comments on a discussion, use thediscussion event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Discussions" repository permission.

Webhook events for GitHub Discussions are currently in public preview and subject to change.

Availability fordiscussion_comment

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object fordiscussion_comment

A comment on a discussion was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

commentobjectRequired
discussionobjectRequired

A Discussion in a repository.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

fork

This event occurs when someone forks a repository. For more information, see "Fork a repo." For information about the API to manage forks, see "Forks" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forfork

  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forfork

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

forkeeobjectRequired

The createdrepository resource.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

github_app_authorization

This event occurs when a user revokes their authorization of a GitHub App. For more information, see "About apps." For information about the API to manage GitHub Apps, seethe GraphQL API documentation or "Apps" in the REST API documentation.

A GitHub App receives this webhook by default and cannot unsubscribe from this event.

Anyone can revoke their authorization of a GitHub App from theirGitHub account settings page. Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the401 Bad Credentials error. For details about requests with a user access token, which require GitHub App authorization, see "Authenticating with a GitHub App on behalf of a user."

Availability forgithub_app_authorization

  • GitHub Apps

Webhook payload object forgithub_app_authorization

Someone revoked their authorization of a GitHub App.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:revoked

senderobjectRequired

A GitHub user.

gollum

This event occurs when someone creates or updates a wiki page. For more information, see "About wikis."

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forgollum

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forgollum

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pagesarray of objectsRequired

The pages that were updated.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

installation

This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.

For more information about GitHub Apps, see "About apps." For information about the APIs to manage GitHub Apps, seethe GraphQL API documentation or "Apps" in the REST API documentation.

Availability forinstallation

  • GitHub Apps

Webhook payload object forinstallation

Someone installed a GitHub App on a user or organization account.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobjectRequired

Installation

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoriesarray of objects

An array of repository objects that the installation can access.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

requesterobject or null
senderobjectRequired

A GitHub user.

installation_repositories

This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.

For more information about GitHub Apps, see "About apps." For information about the APIs to manage GitHub Apps, seethe GraphQL API documentation or "Apps" in the REST API documentation.

Availability forinstallation_repositories

  • GitHub Apps

Webhook payload object forinstallation_repositories

A GitHub App installation was granted access to one or more repositories.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:added

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobjectRequired

Installation

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositories_addedarray of objectsRequired

An array of repository objects, which were added to the installation.

repositories_removedarray of objectsRequired

An array of repository objects, which were removed from the installation.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

repository_selectionstringRequired

Describe whether all repositories have been selected or there's a selection involved

Can be one of:all,selected

requesterobject or nullRequired
senderobjectRequired

A GitHub user.

installation_target

This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see "About apps." For information about the APIs to manage GitHub Apps, seethe GraphQL API documentation or "Apps" in the REST API documentation.

Availability forinstallation_target

  • GitHub Apps

Webhook payload object forinstallation_target

Somebody renamed the user or organization account that a GitHub App is installed on.

Webhook request body parameters
Name, Type, Description
accountobjectRequired
actionstringRequired

Value:renamed

changesobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobjectRequired

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

target_typestringRequired

issue_comment

This event occurs when there is activity relating to a comment on an issue or pull request. For more information about issues and pull requests, see "About issues" and "About pull requests." For information about the APIs to manage issue comments, seethe GraphQL documentation or "Issue comments" in the REST API documentation.

For activity relating to an issue as opposed to comments on an issue, use theissue event. For activity related to pull request reviews or pull request review comments, use thepull_request_review orpull_request_review_comment events. For more information about the different types of pull request comments, see "Working with comments."

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission.

Availability forissue_comment

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forissue_comment

A comment on an issue or pull request was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

commentobjectRequired

Thecomment itself.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

issueobjectRequired

Theissue the comment belongs to.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

issues

This event occurs when there is activity relating to an issue. For more information about issues, see "About issues." For information about the APIs to manage issues, seethe GraphQL documentation or "Issues" in the REST API documentation.

For activity relating to a comment on an issue, use theissue_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission.

Availability forissues

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forissues

An issue was assigned to a user.

Webhook request body parameters
Name, Type, Description
actionstringRequired

The action that was performed.

Value:assigned

assigneeobject or null
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

issueobjectRequired

Theissue itself.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

label

This event occurs when there is activity relating to labels. For more information, see "Managing labels." For information about the APIs to manage labels, seethe GraphQL documentation or "Labels" in the REST API documentation.

If you want to receive an event when a label is added to or removed from an issue, pull request, or discussion, use thelabeled orunlabeled action type for theissues,pull_request, ordiscussion events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Availability forlabel

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forlabel

A label was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

labelobjectRequired
organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

marketplace_purchase

This event occurs when there is activity relating to a GitHub Marketplace purchase. For more information, see "GitHub Marketplace." For information about the APIs to manage GitHub Marketplace listings, seethe GraphQL documentation or "GitHub Marketplace" in the REST API documentation.

Availability formarketplace_purchase

  • GitHub Marketplace

Webhook payload object formarketplace_purchase

Someone cancelled a GitHub Marketplace plan, and the last billing cycle has ended. The change will take effect on the account immediately.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:cancelled

effective_datestringRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

marketplace_purchaseobjectRequired
organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

previous_marketplace_purchaseobject
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

member

This event occurs when there is activity relating to collaborators in a repository. For more information, see "Adding outside collaborators to repositories in your organization." For more information about the API to manage repository collaborators, seethe GraphQL API documentation or "Collaborators" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Availability formember

  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object formember

A GitHub user accepted an invitation to a repository.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:added

changesobject
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

memberobject or nullRequired
organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

membership

This event occurs when there is activity relating to team membership. For more information, see "About teams." For more information about the APIs to manage team memberships, seethe GraphQL API documentation or "Team members" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Availability formembership

  • Organizations
  • Enterprises
  • GitHub Apps

Webhook payload object formembership

An organization member was added to a team.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:added

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

memberobject or nullRequired
organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

scopestringRequired

The scope of the membership. Currently, can only beteam.

Value:team

senderobject or nullRequired
teamobjectRequired

Groups of organization members that gives permissions on specified repositories.

merge_group

This event occurs when there is activity relating to a merge group in a merge queue. For more information, see "Managing a merge queue."

To subscribe to this event, a GitHub App must have at least read-level access for the "Merge queues" repository permission.

Availability formerge_group

  • GitHub Apps

Webhook payload object formerge_group

Status checks were requested for a merge group. This happens when a merge group is created or added to by the merge queue because a pull request was queued.

When you receive this event, you should perform checks on the head SHA and report status back using check runs or commit statuses.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:checks_requested

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

merge_groupobjectRequired

A group of pull requests that the merge queue has grouped together to be merged.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

meta

This event occurs when there is activity relating to a webhook itself.

To subscribe to this event, a GitHub App must have at least read-level access for the "Meta" app permission.

Availability formeta

  • GitHub Marketplace
  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object formeta

The webhook was deleted.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:deleted

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

hookobjectRequired

The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.

hook_idintegerRequired

The id of the modified webhook.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

milestone

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, seethe GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use themilestoned ordemilestoned action type for theissues orpull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

Availability formilestone

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object formilestone

A milestone was closed.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:closed

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

milestoneobjectRequired

A collection of related issues and pull requests.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

org_block

This event occurs when organization owners or moderators block or unblock a non-member from collaborating on the organization's repositories. For more information, see "Blocking a user from your organization." For information about the APIs to manage blocked users, seethe GraphQL documentation or "Blocking users" in the REST API documentation.

If you want to receive an event when members are added or removed from an organization, use theorganization event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" organization permission.

Availability fororg_block

  • Organizations
  • Enterprises
  • GitHub Apps

Webhook payload object fororg_block

A user was blocked from the organization.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:blocked

blocked_userobject or nullRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

organization

This event occurs when there is activity relating to an organization and its members. For more information, see "About organizations." For information about the APIs to manage organizations, seethe GraphQL documentation or "Organizations" in the REST API documentation.

If you want to receive an event when a non-member is blocked or unblocked from an organization, use theorg_block event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Availability fororganization

  • Organizations
  • Enterprises
  • GitHub Apps

Webhook payload object fororganization

An organization was deleted.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:deleted

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

membershipobject

The membership between the user and the organization. Not present when the action ismember_invited.

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

package

This event occurs when there is activity relating to GitHub Packages. For more information, see "Introduction to GitHub Packages." For information about the APIs to manage GitHub Packages, seethe GraphQL API documentation or "Packages" in the REST API documentation.

To install this event on a GitHub App, the app must have at least read-level access for the "Packages" repository permission.

Availability forpackage

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpackage

A package was published to a registry.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:published

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

packageobjectRequired

Information about the package.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

page_build

This event occurs when there is an attempted build of a GitHub Pages site. This event occurs regardless of whether the build is successful. For more information, see "Configuring a publishing source for your GitHub Pages site." For information about the API to manage GitHub Pages, see "Pages" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pages" repository permission.

Availability forpage_build

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpage_build

Webhook request body parameters
Name, Type, Description
buildobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

idintegerRequired
installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

personal_access_token_request

This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "Creating a personal access token."

To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission.

Availability forpersonal_access_token_request

  • GitHub Apps
  • Organizations

Webhook payload object forpersonal_access_token_request

A fine-grained personal access token request was approved.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:approved

personal_access_token_requestobjectRequired

Details of a Personal Access Token Request.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

senderobjectRequired

A GitHub user.

installationobjectRequired

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

ping

This event occurs when you create a new webhook. The ping event is a confirmation from GitHub that you configured the webhook correctly.

Availability forping

  • Repositories
  • Organizations
  • GitHub Apps
  • Enterprises
  • GitHub Marketplace

Webhook payload object forping

Webhook request body parameters
Name, Type, Description
hookobject

The webhook that is being pinged

hook_idinteger

The ID of the webhook that triggered the ping.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

zenstring

Random string of GitHub zen.

project_card

This event occurs when there is activity relating to a card on a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, seethe GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a project (classic) or a column on a project (classic), use theproject andproject_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use theprojects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Availability forproject_card

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forproject_card

A note in a project (classic) was converted to an issue.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:converted

changesobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

project_cardobjectRequired
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

project

This event occurs when there is activity relating to a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, seethe GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project (classic), use theproject_card andproject_column event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use theprojects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Availability forproject

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forproject

A project (classic) was closed.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:closed

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

projectobjectRequired
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

project_column

This event occurs when there is activity relating to a column on a project (classic). For more information, see "About projects (classic)." For information about the API to manage classic projects, seethe GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a project (classic) or a card on a project (classic), use theproject andproject_card event.

This event relates to projects (classic) only. For activity relating to the new Projects experience, use theprojects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Availability forproject_column

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forproject_column

A column was added to a project (classic).

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

project_columnobjectRequired
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

projects_v2

This event occurs when there is activity relating to an organization-level project. For more information, see "About Projects." For information about the Projects API, seethe GraphQL documentation.

For activity relating to a item on a project, use theprojects_v2_item event. For activity relating to Projects (classic), use theproject,project_card, andproject_column events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" organization permission.

Webhook events for projects are currently in public preview and subject to change. To share feedback about projects webhooks with GitHub, see theProjects webhook feedback discussion.

Availability forprojects_v2

  • Organizations

Webhook payload object forprojects_v2

A project in the organization was closed.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:closed

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

projects_v2objectRequired

A projects v2 project

senderobjectRequired

A GitHub user.

projects_v2_item

This event occurs when there is activity relating to an item on an organization-level project. For more information, see "About Projects." For information about the Projects API, seethe GraphQL documentation.

For activity relating to a project (instead of an item on a project), use theprojects_v2 event. For activity relating to Projects (classic), use theproject,project_card, andproject_column events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" organization permission.

Webhook events for projects are currently in public preview and subject to change. To share feedback about projects webhooks with GitHub, see theProjects webhook feedback discussion.

Availability forprojects_v2_item

  • Organizations

Webhook payload object forprojects_v2_item

An item on an organization project was archived. For more information, see "Archiving items from your project."

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:archived

changesobjectRequired
installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

projects_v2_itemobjectRequired

An item belonging to a project

senderobjectRequired

A GitHub user.

projects_v2_status_update

This event occurs when there is activity relating to a status update on an organization-level project. For more information, see "About Projects."

For activity relating to a project, use theprojects_v2 event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" organization permission.

To share feedback about projects webhooks with GitHub, see theProjects webhook feedback discussion.

Availability forprojects_v2_status_update

  • Organizations

Webhook payload object forprojects_v2_status_update

A status update was added to a project in the organization.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

projects_v2_status_updateobjectRequired

An status update belonging to a project

senderobjectRequired

A GitHub user.

public

This event occurs when repository visibility changes from private to public. For more information, see "Setting repository visibility."

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Availability forpublic

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpublic

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

pull_request

This event occurs when there is activity on a pull request. For more information, see "About pull requests." For information about the APIs to manage pull requests, seethe GraphQL API documentation or "Pulls" in the REST API documentation.

For activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use thepull_request_review,pull_request_review_comment,issue_comment, orpull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Availability forpull_request

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpull_request

A pull request was assigned to a user.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:assigned

assigneeobject or nullRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

numberintegerRequired

The pull request number.

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pull_requestobjectRequired
repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

pull_request_review_comment

This event occurs when there is activity relating to a pull request review comment. A pull request review comment is a comment on a pull request's diff. For more information, see "Commenting on a pull request." For information about the APIs to manage pull request review comments, seethe GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request reviews, pull request comments, or pull request review threads, use thepull_request_review,issue_comment, orpull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Availability forpull_request_review_comment

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpull_request_review_comment

A comment on a pull request diff was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

commentobjectRequired

Thecomment itself.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pull_requestobjectRequired
repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

pull_request_review

This event occurs when there is activity relating to a pull request review. A pull request review is a group of pull request review comments in addition to a body comment and a state. For more information, see "About pull request reviews." For information about the APIs to manage pull request reviews, seethe GraphQL API documentation or "Pull request reviews" in the REST API documentation.

For activity related to pull request review comments, pull request comments, or pull request review threads, use thepull_request_review_comment,issue_comment, orpull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Availability forpull_request_review

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpull_request_review

A review on a pull request was dismissed.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:dismissed

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pull_requestobjectRequired
repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

reviewobjectRequired

The review that was affected.

senderobjectRequired

A GitHub user.

pull_request_review_thread

This event occurs when there is activity relating to a comment thread on a pull request. For more information, see "About pull request reviews." For information about the APIs to manage pull request reviews, seethe GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request review comments, pull request comments, or pull request reviews, use thepull_request_review_comment,issue_comment, orpull_request_review events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Availability forpull_request_review_thread

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpull_request_review_thread

A comment thread on a pull request was marked as resolved.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:resolved

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pull_requestobjectRequired
repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

threadobjectRequired

push

This event occurs when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed,when a branch is deleted, when a tag is deleted, or when a repository is created from a template. To subscribe to only branchand tag deletions, use thedelete webhook event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Events will not be created if more than 5000 branches are pushed at once. Events will not be created for tags when more than three tags are pushed at once.

Availability forpush

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forpush

Webhook request body parameters
Name, Type, Description
afterstringRequired

The SHA of the most recent commit onref after the push.

base_refstring or nullRequired
beforestringRequired

The SHA of the most recent commit onref before the push.

commitsarray of objectsRequired

An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in thecompare between thebefore commit and theafter commit.) The array includes a maximum of 2048 commits. If necessary, you can use theCommits API to fetch additional commits.

comparestringRequired

URL that shows the changes in thisref update, from thebefore commit to theafter commit. For a newly createdref that is directly based on the default branch, this is the comparison between the head of the default branch and theafter commit. Otherwise, this shows all commits until theafter commit.

createdbooleanRequired

Whether this push created theref.

deletedbooleanRequired

Whether this push deleted theref.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

forcedbooleanRequired

Whether this push was a force push of theref.

head_commitobject or nullRequired
installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

pusherobjectRequired

Metaproperties for Git author/committer information.

refstringRequired

The full git ref that was pushed. Example:refs/heads/main orrefs/tags/v3.14.1.

repositoryobjectRequired

A git repository

senderobject

A GitHub user.

registry_package

This event occurs when there is activity relating to GitHub Packages. For more information, see "Introduction to GitHub Packages." For information about the APIs to manage GitHub Packages, seethe GraphQL API documentation or "Packages" in the REST API documentation.

To install this event on a GitHub App, the app must have at least read-level access for the "Packages" repository permission.

GitHub recommends that you use the newerpackage event instead.

Availability forregistry_package

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forregistry_package

A package was published to a registry.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:published

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

registry_packageobjectRequired
repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

release

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, seethe GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forrelease

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forrelease

A draft was saved, or a release or pre-release was published without previously being saved as a draft.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

releaseobjectRequired

Therelease object.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

repository_advisory

This event occurs when there is activity relating to a repository security advisory. For more information about repository security advisories, see "About GitHub Security Advisories for repositories."

To subscribe to this event, a GitHub App must have at least read-level access for the "Repository security advisories" permission.

Availability forrepository_advisory

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forrepository_advisory

A repository security advisory was published.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:published

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

repository_advisoryobjectRequired

A repository security advisory.

senderobject

A GitHub user.

repository

This event occurs when there is activity relating to repositories. For more information, see "About repositories." For information about the APIs to manage repositories, seethe GraphQL documentation or "Repositories" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Availability forrepository

  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forrepository

A repository was archived.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:archived

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

repository_dispatch

This event occurs when a GitHub App sends aPOST request to/repos/{owner}/{repo}/dispatches. For more information, seethe REST API documentation for creating a repository dispatch event. In the payload, theaction will be theevent_type that was specified in thePOST /repos/{owner}/{repo}/dispatches request body.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forrepository_dispatch

  • GitHub Apps

Webhook payload object forrepository_dispatch

Webhook request body parameters
Name, Type, Description
actionstringRequired

Theevent_type that was specified in thePOST /repos/{owner}/{repo}/dispatches request body.

branchstringRequired
client_payloadobject or nullRequired

Theclient_payload that was specified in thePOST /repos/{owner}/{repo}/dispatches request body.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobjectRequired

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

repository_import

This event occurs when a repository is imported to GitHub. For more information, see "Importing a repository with GitHub Importer." For more information about the API to manage imports, seethe REST API documentation.

Availability forrepository_import

  • Repositories
  • Organizations

Webhook payload object forrepository_import

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

statusstringRequired

Can be one of:success,cancelled,failure

repository_ruleset

This event occurs when there is activity relating to repository rulesets.For more information about repository rulesets, see "Managing rulesets."For more information on managing rulesets via the APIs, seeRepository ruleset in the GraphQL documentation or "Repository rules" and "Organization rules in the REST API documentation."

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository or organization permission.

Availability forrepository_ruleset

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forrepository_ruleset

A repository ruleset was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

repository_rulesetobjectRequired

A set of rules to apply when specified conditions are met.

senderobjectRequired

A GitHub user.

repository_vulnerability_alert

This event occurs when there is activity relating to a security vulnerability alert in a repository.

Closing down notice: This event is closing down. Use thedependabot_alert event instead.

Availability forrepository_vulnerability_alert

  • Repositories
  • Organizations

Webhook payload object forrepository_vulnerability_alert

A repository vulnerability alert was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:create

alertobjectRequired

The security alert of the vulnerable dependency.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

secret_scanning_alert

This event occurs when there is activity relating to a secret scanning alert. For more information about secret scanning, see "About secret scanning." For information about the API to manage secret scanning alerts, see "Secret scanning" in the REST API documentation.

For activity relating to secret scanning alert locations, use thesecret_scanning_alert_location event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.

Availability forsecret_scanning_alert

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forsecret_scanning_alert

A secret scanning alert was created.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

alertobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

secret_scanning_alert_location

This event occurs when there is activity relating to the locations of a secret in a secret scanning alert.

For more information about secret scanning, see "About secret scanning." For information about the API to manage secret scanning alerts, see "Secret scanning" in the REST API documentation.

For activity relating to secret scanning alerts, use thesecret_scanning_alert event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.

Availability forsecret_scanning_alert_location

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forsecret_scanning_alert_location

A new instance of a previously detected secret was detected in a repository, and the location of the secret was added to the existing alert.

Webhook request body parameters
Name, Type, Description
actionstring

Value:created

alertobjectRequired
installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

locationobjectRequired
organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

secret_scanning_scan

This event occurs when secret scanning completes certain scans on a repository. For more information about secret scanning, see "About secret scanning."

Scans can originate from multiple events such as updates to a custom pattern, a push to a repository, or updatesto patterns from partners. For more information on custom patterns, see "About custom patterns."

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.

Availability forsecret_scanning_scan

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forsecret_scanning_scan

A secret scanning scan was completed.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:completed

typestringRequired

What type of scan was completed

Can be one of:backfill,custom-pattern-backfill,pattern-version-backfill

sourcestringRequired

What type of content was scanned

Can be one of:git,issues,pull-requests,discussions,wiki

started_atstringRequired

The time that the alert was resolved in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZ.

completed_atstringRequired

The time that the alert was resolved in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZ.

secret_typesarray of strings or null

List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates

custom_pattern_namestring or null

If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated

custom_pattern_scopestring or null

If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated

Can be one of:repository,organization,enterprise,null

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

senderobject

A GitHub user.

security_advisory

This event occurs when there is activity relating to a global security advisory that was reviewed by GitHub. A GitHub-reviewed global security advisory provides information about security vulnerabilities or malware that have been mapped to packages in ecosystems we support. For more information about global security advisories, see "About global security advisories." For information about the API to manage security advisories, seethe REST API documentation orthe GraphQL documentation.

GitHub Dependabot alerts are also powered by the security advisory dataset. For more information, see "About Dependabot alerts."

Availability forsecurity_advisory

  • GitHub Apps

Webhook payload object forsecurity_advisory

A security advisory was published to the GitHub community.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:published

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

security_advisoryobjectRequired

The details of the security advisory, including summary, description, and severity.

senderobject

A GitHub user.

security_and_analysis

This event occurs when code security and analysis features are enabled or disabled for a repository. For more information, see "GitHub security features."

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.

Availability forsecurity_and_analysis

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forsecurity_and_analysis

Webhook request body parameters
Name, Type, Description
changesobjectRequired
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

Full Repository

senderobject

A GitHub user.

sponsorship

This event occurs when there is activity relating to a sponsorship listing. For more information, see "About GitHub Sponsors." For information about the API to manage sponsors, seethe GraphQL documentation.

You can only create a sponsorship webhook on GitHub.com. For more information, see "Configuring webhooks for events in your sponsored account."

Availability forsponsorship

  • Sponsored accounts

Webhook payload object forsponsorship

A sponsorship was cancelled and the last billing cycle has ended.

This event is only sent when a recurring (monthly) sponsorship is cancelled; it is not sent for one-time sponsorships.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:cancelled

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

sponsorshipobjectRequired

star

This event occurs when there is activity relating to repository stars. For more information about stars, see "Saving repositories with stars." For information about the APIs to manage stars, seethe GraphQL documentation or "Starring" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Availability forstar

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forstar

Someone starred a repository.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:created

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

starred_atstring or nullRequired

The time the star was created. This is a timestamp in ISO 8601 format:YYYY-MM-DDTHH:MM:SSZ. Will benull for thedeleted action.

status

This event occurs when the status of a Git commit changes. For example, commits can be marked aserror,failure,pending, orsuccess. For more information, see "About status checks." For information about the APIs to manage commit statuses, seethe GraphQL documentation or "Commit statuses" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Commit statuses" repository permission.

Availability forstatus

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forstatus

Webhook request body parameters
Name, Type, Description
avatar_urlstring or null
branchesarray of objectsRequired

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.

commitobjectRequired
contextstringRequired
created_atstringRequired
descriptionstring or nullRequired

The optional human-readable description added to the status.

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

idintegerRequired

The unique identifier of the status.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

namestringRequired
organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

shastringRequired

The Commit SHA.

statestringRequired

The new state. Can bepending,success,failure, orerror.

Can be one of:pending,success,failure,error

target_urlstring or nullRequired

The optional link added to the status.

updated_atstringRequired

sub_issues

This event occurs when there is activity relating to sub-issues.

For activity relating to issues more generally, use theissues event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permissions.

Availability forsub_issues

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forsub_issues

A parent issue was added to an issue.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:parent_issue_added

parent_issue_idnumberRequired

The ID of the parent issue.

parent_issueobjectRequired

Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.

parent_issue_repoobjectRequired

A repository on GitHub.

sub_issue_idnumberRequired

The ID of the sub-issue.

sub_issueobjectRequired

Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobject

A GitHub user.

team_add

This event occurs when a team is added to a repository.For more information, see "Managing teams and people with access to your repository."

For activity relating to teams, see theteams event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Availability forteam_add

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forteam_add

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

teamobjectRequired

Groups of organization members that gives permissions on specified repositories.

team

This event occurs when there is activity relating to teams in an organization.For more information, see "About teams."

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Availability forteam

  • Organizations
  • Enterprises
  • GitHub Apps

Webhook payload object forteam

A team was granted access to a repository.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:added_to_repository

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobjectRequired

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobject

A git repository

senderobject

A GitHub user.

teamobjectRequired

Groups of organization members that gives permissions on specified repositories.

watch

This event occurs when there is activity relating to watching, or subscribing to, a repository. For more information about watching, see "Managing your subscriptions." For information about the APIs to manage watching, see "Watching" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Availability forwatch

  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forwatch

Someone started watching the repository.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:started

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflow_dispatch

This event occurs when a GitHub Actions workflow is manually triggered. For more information, see "Manually running a workflow."

For activity relating to workflow runs, use theworkflow_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Availability forworkflow_dispatch

  • GitHub Apps

Webhook payload object forworkflow_dispatch

Webhook request body parameters
Name, Type, Description
enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

inputsobject or nullRequired
installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

refstringRequired
repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflowstringRequired

workflow_job

This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see "Using jobs in a workflow." For information about the API to manage workflow jobs, see "Workflow jobs" in the REST API documentation.

For activity relating to a workflow run instead of a job in a workflow run, use theworkflow_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Actions" repository permission.

Availability forworkflow_job

  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forworkflow_job

A job in a workflow run finished. This event occurs when a job in a workflow is completed, regardless of whether the job was successful or unsuccessful.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:completed

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflow_jobobjectRequired
deploymentobject

A request for a specific ref(branch,sha,tag) to be deployed

workflow_run

This event occurs when there is activity relating to a run of a GitHub Actions workflow. For more information, see "About workflows." For information about the APIs to manage workflow runs, seethe GraphQL documentation or "Workflow runs" in the REST API documentation.

For activity relating to a job in a workflow run, use theworkflow_job event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Actions" repository permission.

Availability forworkflow_run

  • Enterprises
  • Repositories
  • Organizations
  • GitHub Apps

Webhook payload object forworkflow_run

A workflow run finished. This event occurs when a workflow run is completed, regardless of whether the workflow was successful or unsuccessful.

Webhook request body parameters
Name, Type, Description
actionstringRequired

Value:completed

enterpriseobject

An enterprise on GitHub. Webhook payloads contain theenterprise property when the webhook is configuredon an enterprise account or an organization that's part of an enterprise account. For more information,see "About enterprise accounts."

installationobject

The GitHub App installation. Webhook payloads contain theinstallation property when the event is configuredfor and sent to a GitHub App. For more information,see "Using webhooks with GitHub Apps."

organizationobject

A GitHub organization. Webhook payloads contain theorganization property when the webhook is configured for anorganization, or when the event occurs from activity in a repository owned by an organization.

repositoryobjectRequired

The repository on GitHub where the event occurred. Webhook payloads contain therepository propertywhen the event occurs from activity in a repository.

senderobjectRequired

A GitHub user.

workflowobject or nullRequired
workflow_runobjectRequired

[8]ページ先頭

©2009-2025 Movatter.jp