Skip to main content

github.createpayload

Home > @runlightyear/github > CreatePayload

CreatePayload interface

Documentation: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads\#create

Signature:
interface CreatePayload extends CommonPayload 
Extends:

CommonPayload

Required Properties

PropertyModifiersTypeDescription
descriptionstring | nullThe repository's current description.
masterBranchstringThe name of the repository's default branch (usually main).
pusherTypestringThe pusher type for the event. Can be either user or a deploy key.
refstringThe git ref resource.
refType"tag" | "branch"

The type of Git ref object created in the repository.

Can be one of: tag, branch

Optional Properties

PropertyModifiersTypeDescription
enterprise?objectAn enterprise on GitHub.