Skip to content

Commit acec423

Browse files
authored
Fix and extend push webhook documentation. (#499)
1 parent 7c159dd commit acec423

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/developers/webhooks-and-events/webhook-events-and-payloads.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,13 +973,17 @@ Key | Type | Description
973973
`before`|`string` | The SHA of the most recent commit on `ref` before the push.
974974
`after`|`string` | The SHA of the most recent commit on `ref` after the push.
975975
`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.)
976-
`commits[][sha]`|`string` | The SHA of the commit.
976+
`commits[][id]`|`string` | The SHA of the commit.
977+
`commits[][timestamp]`|`string` | The ISO 8601 timestamp of the commit.
977978
`commits[][message]`|`string` | The commit message.
978979
`commits[][author]`|`object` | The git author of the commit.
979980
`commits[][author][name]`|`string` | The git author's name.
980981
`commits[][author][email]`|`string` | The git author's email address.
981982
`commits[][url]`|`url` | URL that points to the commit API resource.
982983
`commits[][distinct]`|`boolean` | Whether this commit is distinct from any that have been pushed before.
984+
`commits[][added]`|`array` | An array of files added in the commit.
985+
`commits[][modified]`|`array` | An array of files modified by the commit.
986+
`commits[][removed]`|`array` | An array of files removed in the commit.
983987
`pusher` | `object` | The user who pushed the commits.
984988
{% data reusables.webhooks.repo_desc %}
985989
{% data reusables.webhooks.org_desc %}

0 commit comments

Comments
 (0)