You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/v3/activity/events/types.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -409,9 +409,11 @@ The Events API `PushEvent` payload is described in the table below. The example
409
409
410
410
Key | Type | Description
411
411
----|------|-------------
412
-
`head`|`string` | The SHA of the HEAD commit on the repository.
413
-
`ref`|`string` | The full Git ref that was pushed. Example: "refs/heads/master"
412
+
`ref`|`string` | The full Git ref that was pushed. Example:`"refs/heads/master"`.
413
+
`head`|`string` | The SHA of the most recent commit on`ref` after the push.
414
+
`before`|`string` | The SHA of the most recent commit on`ref` before the push.
414
415
`size`|`integer` | The number of commits in the push.
416
+
`distinct_size`|`integer` | The number of distinct commits in the push.
415
417
`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](/v3/repos/commits/) to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.)
416
418
`commits[][sha]`|`string` | The SHA of the commit.
417
419
`commits[][message]`|`string` | The commit message.