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."
Actions
| Action | Sent when |
|---|---|
team_add | This event occurs when a team is added to a repository. |
Payload
Fields of the delivery for the first action above. Every action shares the event's core fields.
| Field | Type | Required | Description |
|---|---|---|---|
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. |
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.