This page was generated based on Github’s Documentation. See our welcome page for context and details.
Github Event create
#
Github Action Trigger #
Webhook event payload | Activity types | GITHUB_SHA | GITHUB_REF |
---|---|---|---|
create | Not applicable | Last commit on the created branch or tag | Branch or tag created |
Note: An event will not be created when you create more than three tags at once.
Runs your workflow when someone creates a Git reference (Git branch or tag) in the workflow’s repository. For information about the APIs to create a Git reference, see “Mutations” in the GraphQL API documentation or “REST API endpoints for Git database.”
For example, you can run a workflow when the create
event occurs.
on:
create
Event Payload #
This event occurs when a Git branch or tag is created.
To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.
Notes:
- This event will not occur when more than three tags are created at once.
- Payloads are capped at 25 MB. If an event generates a larger payload, GitHub will not deliver a payload for that webhook event. This may happen, for example, if many branches or tags are pushed at once. We suggest monitoring your payload size to ensure delivery.
field | type | required | description |
---|---|---|---|
github.event.description | string or null | required | The repository’s current description. |
github.event.enterprise | object | optional | An enterprise on GitHub. Webhook payloads contain the |
github.event.installation | object | optional | The GitHub App installation. Webhook payloads contain the |
github.event.master_branch | string | required | The name of the repository’s default branch (usually |
github.event.organization | object | optional | A GitHub organization. Webhook payloads contain the |
github.event.pusher_type | string | required | The pusher type for the event. Can be either |
github.event.ref | string | required | The |
github.event.ref_type | tag , branch | required | The type of Git ref object created in the repository. |
github.event.repository | object | required | The repository on GitHub where the event occurred. Webhook payloads contain the |
github.event.sender | object | required | The GitHub user that triggered the event. This property is included in every webhook payload. |