Create
This event occurs when a Git branch or tag is created.
Actions
| Action | Sent when |
|---|---|
create | This event occurs when a Git branch or tag is created. |
Payload
Fields of the delivery for the first action above. Every action shares the event's core fields.
| Field | Type | Required | Description |
|---|---|---|---|
description | string | Yes | The repository's current 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 |
master_branch | string | Yes | The name of the repository's default branch (usually main). |
organization | object | No | A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an |
pusher_type | string | Yes | The pusher type for the event. Can be either user or a deploy key. |
ref | string | Yes | The git ref resource. |
ref_type | string | Yes | The type of Git ref object created in the repository. |
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 "Contents" repository permission.