Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitcfc142c

Browse files
committed
Merge pull request#671 from github/izuzak-events-api-push-missing-fields
Add missing fields to events API PushEvent payload
2 parents418c0c5 +b0fba44 commitcfc142c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎content/v3/activity/events/types.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,11 @@ The Events API `PushEvent` payload is described in the table below. The example
409409

410410
Key | Type | Description
411411
----|------|-------------
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.
414415
`size`|`integer` | The number of commits in the push.
416+
`distinct_size`|`integer` | The number of distinct commits in the push.
415417
`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.)
416418
`commits[][sha]`|`string` | The SHA of the commit.
417419
`commits[][message]`|`string` | The commit message.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp