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.

Commitf08c27f

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parenta239388 commitf08c27f

21 files changed

+537
-223
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ title: Event Types | GitHub API
55
#Event Types & Payloads
66

77
Each event has a similar JSON schema, but a unique`payload` object that is
8-
determined by its event type.[Repository hook](/v3/repos/hooks/) names relate to event types, and will have the exact same payload. The only exception to this is the`push` hook, which has a larger, more detailed payload.
8+
determined by its event type.
9+
10+
Event names are used by[repository webhooks](/v3/repos/hooks/) to specify
11+
which events the webhook should receive. The included payloads below are from webhook deliveries but
12+
match events returned by the[Events API](/v3/activity/events/) (except where noted).
913

10-
This describes just the payload of an event. A full event will also
11-
show the user that performed the event (actor), the repository, and the
12-
organization (if applicable).
1314

1415
Note that some of these events may not be rendered in timelines.
1516
They're only created for various internal and repository hooks.
@@ -348,6 +349,8 @@ Key | Type | Description
348349

349350
Triggered when a repository branch is pushed to.
350351

352+
Note: the example payload below is from a webhook delivery. The Event API`PushEvent` payload will differ.
353+
351354
###Event name
352355

353356
`push`

‎lib/webhooks/commit_comment.payload.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"comment": {
3-
"url":"https://api.github.com/repos/baxterthehacker/public-repo/comments/6526038",
4-
"html_url":"https://github.com/baxterthehacker/public-repo/commit/7b80eb100206a56523dbda6202d8e5daa05e265b#commitcomment-6526038",
5-
"id":6526038,
3+
"url":"https://api.github.com/repos/baxterthehacker/public-repo/comments/6858595",
4+
"html_url":"https://github.com/baxterthehacker/public-repo/commit/7b80eb100206a56523dbda6202d8e5daa05e265b#commitcomment-6858595",
5+
"id":6858595,
66
"user": {
77
"login":"baxterthehacker",
88
"id":6752317,
@@ -26,8 +26,8 @@
2626
"line":null,
2727
"path":null,
2828
"commit_id":"7b80eb100206a56523dbda6202d8e5daa05e265b",
29-
"created_at":"2014-06-02T17:20:23Z",
30-
"updated_at":"2014-06-02T17:20:23Z",
29+
"created_at":"2014-07-01T17:21:16Z",
30+
"updated_at":"2014-07-01T17:21:16Z",
3131
"body":"This is a really good change! :+1:"
3232
},
3333
"repository": {
@@ -94,26 +94,26 @@
9494
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
9595
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
9696
"created_at":"2014-05-20T22:39:43Z",
97-
"updated_at":"2014-06-02T17:20:23Z",
98-
"pushed_at":"2014-06-02T17:20:21Z",
97+
"updated_at":"2014-07-01T17:21:16Z",
98+
"pushed_at":"2014-07-01T17:21:15Z",
9999
"git_url":"git://github.com/baxterthehacker/public-repo.git",
100100
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
101101
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
102102
"svn_url":"https://github.com/baxterthehacker/public-repo",
103103
"homepage":null,
104-
"size":370,
105-
"stargazers_count":1,
106-
"watchers_count":1,
104+
"size":569,
105+
"stargazers_count":0,
106+
"watchers_count":0,
107107
"language":null,
108108
"has_issues":true,
109109
"has_downloads":true,
110110
"has_wiki":true,
111-
"forks_count":0,
111+
"forks_count":1,
112112
"mirror_url":null,
113-
"open_issues_count":22,
114-
"forks":0,
115-
"open_issues":22,
116-
"watchers":1,
113+
"open_issues_count":24,
114+
"forks":1,
115+
"open_issues":24,
116+
"watchers":0,
117117
"default_branch":"master"
118118
},
119119
"sender": {

‎lib/webhooks/create.payload.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,25 @@
6868
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
6969
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
7070
"created_at":"2014-05-20T22:39:43Z",
71-
"updated_at":"2014-06-02T17:20:29Z",
72-
"pushed_at":"2014-06-02T17:20:30Z",
71+
"updated_at":"2014-07-01T17:21:16Z",
72+
"pushed_at":"2014-07-01T17:21:23Z",
7373
"git_url":"git://github.com/baxterthehacker/public-repo.git",
7474
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
7575
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
7676
"svn_url":"https://github.com/baxterthehacker/public-repo",
7777
"homepage":null,
78-
"size":370,
78+
"size":569,
7979
"stargazers_count":0,
8080
"watchers_count":0,
8181
"language":null,
8282
"has_issues":true,
8383
"has_downloads":true,
8484
"has_wiki":true,
85-
"forks_count":0,
85+
"forks_count":1,
8686
"mirror_url":null,
87-
"open_issues_count":22,
88-
"forks":0,
89-
"open_issues":22,
87+
"open_issues_count":24,
88+
"forks":1,
89+
"open_issues":24,
9090
"watchers":0,
9191
"default_branch":"master"
9292
},

‎lib/webhooks/delete.payload.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@
6666
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
6767
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
6868
"created_at":"2014-05-20T22:39:43Z",
69-
"updated_at":"2014-06-02T17:20:32Z",
70-
"pushed_at":"2014-06-02T17:20:31Z",
69+
"updated_at":"2014-07-01T17:21:16Z",
70+
"pushed_at":"2014-07-01T17:21:24Z",
7171
"git_url":"git://github.com/baxterthehacker/public-repo.git",
7272
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
7373
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
7474
"svn_url":"https://github.com/baxterthehacker/public-repo",
7575
"homepage":null,
76-
"size":370,
76+
"size":569,
7777
"stargazers_count":0,
7878
"watchers_count":0,
7979
"language":null,
@@ -82,9 +82,9 @@
8282
"has_wiki":true,
8383
"forks_count":0,
8484
"mirror_url":null,
85-
"open_issues_count":22,
85+
"open_issues_count":24,
8686
"forks":0,
87-
"open_issues":22,
87+
"open_issues":24,
8888
"watchers":0,
8989
"default_branch":"master"
9090
},

‎lib/webhooks/deployment.payload.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"id":14583,
3-
"sha":"7b80eb100206a56523dbda6202d8e5daa05e265b",
4-
"ref":"7b80eb100206a56523dbda6202d8e5daa05e265b",
2+
"id":25118,
3+
"sha":"69a8b72e2d3d955075d47f03d902929dcaf74033",
4+
"ref":"master",
55
"name":"baxterthehacker/public-repo",
66
"environment":"production",
77
"payload": {
@@ -71,25 +71,25 @@
7171
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
7272
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
7373
"created_at":"2014-05-20T22:39:43Z",
74-
"updated_at":"2014-06-02T17:20:29Z",
75-
"pushed_at":"2014-06-02T17:20:30Z",
74+
"updated_at":"2014-07-01T17:21:16Z",
75+
"pushed_at":"2014-07-01T17:21:23Z",
7676
"git_url":"git://github.com/baxterthehacker/public-repo.git",
7777
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
7878
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
7979
"svn_url":"https://github.com/baxterthehacker/public-repo",
8080
"homepage":null,
81-
"size":370,
81+
"size":569,
8282
"stargazers_count":0,
8383
"watchers_count":0,
8484
"language":null,
8585
"has_issues":true,
8686
"has_downloads":true,
8787
"has_wiki":true,
88-
"forks_count":0,
88+
"forks_count":1,
8989
"mirror_url":null,
90-
"open_issues_count":22,
91-
"forks":0,
92-
"open_issues":22,
90+
"open_issues_count":24,
91+
"forks":1,
92+
"open_issues":24,
9393
"watchers":0,
9494
"default_branch":"master"
9595
},

‎lib/webhooks/deployment_status.payload.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"id":18984,
2+
"id":40828,
33
"state":"success",
44
"deployment": {
5-
"url":"https://api.github.com/repos/baxterthehacker/public-repo/deployments/14583",
6-
"id":14583,
7-
"sha":"7b80eb100206a56523dbda6202d8e5daa05e265b",
8-
"ref":"7b80eb100206a56523dbda6202d8e5daa05e265b",
5+
"url":"https://api.github.com/repos/baxterthehacker/public-repo/deployments/25118",
6+
"id":25118,
7+
"sha":"69a8b72e2d3d955075d47f03d902929dcaf74033",
8+
"ref":"master",
99
"payload": {
1010
},
1111
"environment":"production",
@@ -29,9 +29,9 @@
2929
"type":"User",
3030
"site_admin":false
3131
},
32-
"created_at":"2014-06-02T17:20:30Z",
33-
"updated_at":"2014-06-02T17:20:30Z",
34-
"statuses_url":"https://api.github.com/repos/baxterthehacker/public-repo/deployments/14583/statuses"
32+
"created_at":"2014-07-01T17:21:23Z",
33+
"updated_at":"2014-07-01T17:21:23Z",
34+
"statuses_url":"https://api.github.com/repos/baxterthehacker/public-repo/deployments/25118/statuses"
3535
},
3636
"target_url":null,
3737
"description":null,
@@ -99,14 +99,14 @@
9999
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
100100
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
101101
"created_at":"2014-05-20T22:39:43Z",
102-
"updated_at":"2014-06-02T17:20:29Z",
103-
"pushed_at":"2014-06-02T17:20:30Z",
102+
"updated_at":"2014-07-01T17:21:16Z",
103+
"pushed_at":"2014-07-01T17:21:23Z",
104104
"git_url":"git://github.com/baxterthehacker/public-repo.git",
105105
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
106106
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
107107
"svn_url":"https://github.com/baxterthehacker/public-repo",
108108
"homepage":null,
109-
"size":370,
109+
"size":569,
110110
"stargazers_count":0,
111111
"watchers_count":0,
112112
"language":null,
@@ -115,9 +115,9 @@
115115
"has_wiki":true,
116116
"forks_count":0,
117117
"mirror_url":null,
118-
"open_issues_count":22,
118+
"open_issues_count":24,
119119
"forks":0,
120-
"open_issues":22,
120+
"open_issues":24,
121121
"watchers":0,
122122
"default_branch":"master"
123123
},

‎lib/webhooks/fork.payload.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"forkee": {
3-
"id":20412678,
3+
"id":21396365,
44
"name":"public-repo",
55
"full_name":"baxterandthehackers/public-repo",
66
"owner": {
@@ -62,15 +62,15 @@
6262
"notifications_url":"https://api.github.com/repos/baxterandthehackers/public-repo/notifications{?since,all,participating}",
6363
"labels_url":"https://api.github.com/repos/baxterandthehackers/public-repo/labels{/name}",
6464
"releases_url":"https://api.github.com/repos/baxterandthehackers/public-repo/releases{/id}",
65-
"created_at":"2014-06-02T17:20:23Z",
66-
"updated_at":"2014-06-02T17:20:23Z",
67-
"pushed_at":"2014-06-02T17:20:21Z",
65+
"created_at":"2014-07-01T17:21:16Z",
66+
"updated_at":"2014-07-01T17:21:16Z",
67+
"pushed_at":"2014-07-01T17:21:15Z",
6868
"git_url":"git://github.com/baxterandthehackers/public-repo.git",
6969
"ssh_url":"git@github.com:baxterandthehackers/public-repo.git",
7070
"clone_url":"https://github.com/baxterandthehackers/public-repo.git",
7171
"svn_url":"https://github.com/baxterandthehackers/public-repo",
7272
"homepage":null,
73-
"size":370,
73+
"size":569,
7474
"stargazers_count":0,
7575
"watchers_count":0,
7676
"language":null,
@@ -150,14 +150,14 @@
150150
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
151151
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
152152
"created_at":"2014-05-20T22:39:43Z",
153-
"updated_at":"2014-06-02T17:20:23Z",
154-
"pushed_at":"2014-06-02T17:20:21Z",
153+
"updated_at":"2014-07-01T17:21:16Z",
154+
"pushed_at":"2014-07-01T17:21:15Z",
155155
"git_url":"git://github.com/baxterthehacker/public-repo.git",
156156
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
157157
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
158158
"svn_url":"https://github.com/baxterthehacker/public-repo",
159159
"homepage":null,
160-
"size":370,
160+
"size":569,
161161
"stargazers_count":0,
162162
"watchers_count":0,
163163
"language":null,
@@ -166,9 +166,9 @@
166166
"has_wiki":true,
167167
"forks_count":1,
168168
"mirror_url":null,
169-
"open_issues_count":22,
169+
"open_issues_count":24,
170170
"forks":1,
171-
"open_issues":22,
171+
"open_issues":24,
172172
"watchers":0,
173173
"default_branch":"master"
174174
},

‎lib/webhooks/gollum.payload.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title":"Home",
66
"summary":null,
77
"action":"edited",
8-
"sha":"ec906e3d25f56f82ca287ebdf78f6650de062095",
8+
"sha":"e7276b6b1b29ed92c3aeb2f1bb667c6cb49bc01c",
99
"html_url":"https://github.com/baxterthehacker/public-repo/wiki/Home"
1010
}
1111
],
@@ -73,14 +73,14 @@
7373
"labels_url":"https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
7474
"releases_url":"https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
7575
"created_at":"2014-05-20T22:39:43Z",
76-
"updated_at":"2014-06-02T17:19:34Z",
77-
"pushed_at":"2014-06-02T17:19:34Z",
76+
"updated_at":"2014-07-01T17:17:43Z",
77+
"pushed_at":"2014-07-01T17:20:21Z",
7878
"git_url":"git://github.com/baxterthehacker/public-repo.git",
7979
"ssh_url":"git@github.com:baxterthehacker/public-repo.git",
8080
"clone_url":"https://github.com/baxterthehacker/public-repo.git",
8181
"svn_url":"https://github.com/baxterthehacker/public-repo",
8282
"homepage":null,
83-
"size":370,
83+
"size":569,
8484
"stargazers_count":0,
8585
"watchers_count":0,
8686
"language":null,
@@ -89,9 +89,9 @@
8989
"has_wiki":true,
9090
"forks_count":0,
9191
"mirror_url":null,
92-
"open_issues_count":20,
92+
"open_issues_count":22,
9393
"forks":0,
94-
"open_issues":20,
94+
"open_issues":22,
9595
"watchers":0,
9696
"default_branch":"master"
9797
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp