One or more commits are pushed to a repository branch or tag.
The event object includes properties that are common for all events. Each event object includes a payload property and the value is unique to each event type. The payload object for this event is described below.
| Key | Type | Description |
|---|---|---|
push_id |
integer |
Unique identifier for the push. |
size |
integer |
The number of commits in the push. |
distinct_size |
integer |
The number of distinct commits in the push. |
ref |
string |
The full git ref that was pushed. Example: refs/heads/master. |
head |
string |
The SHA of the most recent commit on ref after the push. |
before |
string |
The SHA of the most recent commit on ref before the push. |
commits |
array |
An array of commit objects describing the pushed commits. (The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.) |
commits[][sha] |
string |
The SHA of the commit. |
commits[][message] |
string |
The commit message. |
commits[][author] |
object |
The git author of the commit. |
commits[][author][name] |
string |
The git author's name. |
commits[][author][email] |
string |
The git author's email address. |
commits[][url] |
url |
URL that points to the commit API resource. |
commits[][distinct] |
boolean |
Whether this commit is distinct from any that have been pushed before. |