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, see the GraphQL API documentation or "Releases" in the REST API documentation.

Actions

ActionSent when
createdA draft was saved, or a release or pre-release was published without previously being saved as a draft.
deletedA release, pre-release, or draft release was deleted.
editedThe details of a release, pre-release, or draft release were edited. For more information, see "Managing releases in a repository."
prereleasedA release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
publishedA release, pre-release, or draft of a release was published.
releasedA release was published, or a pre-release was changed to a release.
unpublishedA release or pre-release was unpublished.

Payload

Fields of the delivery for the first action above. Every action shares the event's core fields.

FieldTypeRequiredDescription
actionstringYes
enterpriseobjectNoAn enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured
installationobjectNoThe GitHub App installation. Webhook payloads contain the installation property when the event is configured
organizationobjectNoA GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an
releaseobjectYesThe release object.
repositoryobjectYesThe repository on GitHub where the event occurred. Webhook payloads contain the repository property
senderobjectYesA GitHub user.
Subscribing

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