Commit 8d6c56d1 authored by Kate Grechishkina's avatar Kate Grechishkina Committed by Evan Read

Document that commits section can be empty

parent dcdb6883
...@@ -96,6 +96,10 @@ attribute only contains the first 20 for performance reasons. Loading ...@@ -96,6 +96,10 @@ attribute only contains the first 20 for performance reasons. Loading
detailed commit data is expensive. Note that despite only 20 commits being detailed commit data is expensive. Note that despite only 20 commits being
present in the `commits` attribute, the `total_commits_count` attribute contains the actual total. present in the `commits` attribute, the `total_commits_count` attribute contains the actual total.
NOTE:
If a branch creation push event is generated without new commits being introduced, the
`commits` attribute in the payload is empty.
Also, if a single push includes changes for more than three (by default, depending on Also, if a single push includes changes for more than three (by default, depending on
[`push_event_hooks_limit` setting](../../../api/settings.md#list-of-settings-that-can-be-accessed-via-api-calls)) [`push_event_hooks_limit` setting](../../../api/settings.md#list-of-settings-that-can-be-accessed-via-api-calls))
branches, this hook isn't executed. branches, this hook isn't executed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment