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
| Action | Sent when |
|---|---|
answered | A comment on the discussion was marked as the answer. |
category-changed | The category of a discussion was changed. |
closed | A discussion was closed. |
created | A discussion was created. |
deleted | A discussion was deleted. |
edited | The title or body on a discussion was edited, or the category of the discussion was changed. |
labeled | A label was added to a discussion. |
locked | A discussion was locked. |
pinned | A discussion was pinned. |
reopened | A discussion was reopened. |
transferred | A discussion was transferred to another repository. |
unanswered | A comment on the discussion was unmarked as the answer. |
unlabeled | A label was removed from a discussion. |
unlocked | A discussion was unlocked. |
unpinned | A discussion was unpinned. |
Payload
Fields of the delivery for the first action above. Every action shares the event's core fields.
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | |
answer | object | Yes | |
discussion | object | Yes | A Discussion in a repository. |
enterprise | object | No | An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured |
installation | object | No | The GitHub App installation. Webhook payloads contain the installation property when the event is configured |
organization | object | No | A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an |
repository | object | Yes | The repository on GitHub where the event occurred. Webhook payloads contain the repository property |
sender | object | Yes | A GitHub user. |
Subscribing
To subscribe to this event, a GitHub App must have at least read-level access for the "Discussions" repository permission.