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, see the GraphQL documentation.

Actions

ActionSent when
answeredA comment on the discussion was marked as the answer.
category-changedThe category of a discussion was changed.
closedA discussion was closed.
createdA discussion was created.
deletedA discussion was deleted.
editedThe title or body on a discussion was edited, or the category of the discussion was changed.
labeledA label was added to a discussion.
lockedA discussion was locked.
pinnedA discussion was pinned.
reopenedA discussion was reopened.
transferredA discussion was transferred to another repository.
unansweredA comment on the discussion was unmarked as the answer.
unlabeledA label was removed from a discussion.
unlockedA discussion was unlocked.
unpinnedA discussion was unpinned.

Payload

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

FieldTypeRequiredDescription
actionstringYes
answerobjectYes
discussionobjectYesA Discussion in a repository.
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
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 "Discussions" repository permission.