Team
This event occurs when there is activity relating to teams in an organization. For more information, see "About teams."
Actions
| Action | Sent when |
|---|---|
added-to-repository | A team was granted access to a repository. |
created | A team was created. |
deleted | A team was deleted. |
edited | The name, description, or visibility of a team was changed. |
removed-from-repository | A team's access to a repository was removed. |
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 | |
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 | Yes | A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an |
repository | object | No | A git repository |
sender | object | No | A GitHub user. |
team | object | Yes | Groups of organization members that gives permissions on specified repositories. |
Subscribing
To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.