Skip to main content

github.pushpayload

Home > @runlightyear/github > PushPayload

PushPayload interface

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

Signature:
interface PushPayload extends CommonPayload 
Extends:

CommonPayload

Required Properties

PropertyModifiersTypeDescription
afterstringThe SHA of the most recent commit on ref after the push.
beforestringThe SHA of the most recent commit on ref before the push.
commitsArray<PushCommit>An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare between the before commit and the after commit.)
comparestringURL that shows the changes in this ref update, from the before commit to the after commit. For a newly created ref that is directly based on the default branch, this is the comparison between the head of the default branch and the after commit. Otherwise, this shows all commits until the after commit.
createdbooleanWhether this push created the ref.
deletedbooleanWhether this push deleted the ref.
forcedbooleanWhether this push was a force push of the ref.
headCommitPushCommitFor pushes where after is or points to a commit object, an expanded representation of that commit. For pushes where after refers to an annotated tag object, an expanded representation of the commit pointed to by the annotated tag.
pusher{ name: string; email: string; }The user who pushed the commits.
refstringThe full git ref that was pushed. Example: refs/heads/main or refs/tags/v3.14.1.