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

Commitd2e8ee8

Browse files
committed
document all event types
1 parent39b8fce commitd2e8ee8

File tree

1 file changed

+215
-1
lines changed

1 file changed

+215
-1
lines changed

‎content/v3/events/types.md‎

Lines changed: 215 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,199 @@ title: Event types | GitHub API
77
Each event has a similar JSON schema, but a unique`payload` object that is
88
determined by its event type.[Repository hook](http://developer.github.com/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.
99

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).
13+
14+
Note that some of these events may not be rendered in timelines.
15+
They're only created for various internal and repository hooks.
16+
17+
* <ahref="#commitcommentevent">CommitComment</a>
18+
* <ahref="#createevent">CreateEvent</a>
19+
* <ahref="#deleteevent">DeleteEvent</a>
20+
* <ahref="#downloadevent">DownloadEvent</a>
21+
* <ahref="#followevent">FollowEvent</a>
22+
* <ahref="#forkevent">ForkEvent</a>
23+
* <ahref="#forkapplyevent">ForkApplyEvent</a>
24+
* <ahref="#gistevent">GistEvent</a>
25+
* <ahref="#gollumevent">GollumEvent</a>
26+
* <ahref="#issuecommentevent">IssueCommentEvent</a>
27+
* <ahref="#issuesevent">IssuesEvent</a>
28+
* <ahref="#memberevent">MemberEvent</a>
29+
* <ahref="#publicevent">PublicEvent</a>
30+
* <ahref="#pullrequestevent">PullRequestEvent</a>
31+
* <ahref="#pushevent">PushEvent</a>
32+
* <ahref="#teamaddevent">TeamAddEvent</a>
33+
* <ahref="#watchevent">WatchEvent</a>
34+
35+
##CommitComment
36+
37+
Hook name:`commit_comment`
38+
39+
comment
40+
:**object** - The[comment](/v3/repos/commits/#list-commit-comments-for-a-repository) itself.
41+
42+
##CreateEvent
43+
44+
Represents a created repository, branch, or tag.
45+
46+
Hook name:`create`
47+
48+
ref\_type
49+
:**string** - The object that was created: "repository", "branch", or
50+
"tag"
51+
52+
ref
53+
:**string** - The git ref (or`null` if only a repository was created).
54+
55+
master\_branch
56+
:**string** - The name of the repository's master branch.
57+
58+
description
59+
:**string** - The repository's current description.
60+
61+
##DeleteEvent
62+
63+
Represents a deleted branch or tag.
64+
65+
Hook name:`delete`
66+
67+
ref\_type
68+
:**string** - The object that was deleted: "branch" or "tag".
69+
70+
ref
71+
:**string** - The full git ref.
72+
73+
##DownloadEvent
74+
75+
Hook name:`download`
76+
77+
download
78+
:**object** - The[download](/v3/repos/downloads/) that was just
79+
created.
80+
81+
##FollowEvent
82+
83+
Hook name:`follow`
84+
85+
target
86+
:**object** - The[user](/v3/users) that was just followed.
87+
88+
##ForkEvent
89+
90+
Hook name:`fork`
91+
92+
forkee
93+
:**object** - The created[repository](/v3/repos/).
94+
95+
##ForkApplyEvent
96+
97+
Triggered when a patch is applied in the Fork Queue.
98+
99+
Hook name:`fork_apply`
100+
101+
head
102+
:**string** - The branch name the patch is applied to.
103+
104+
before
105+
:**string** - SHA of the repo state before the patch.
106+
107+
after
108+
:**string** - SHA of the repo state after the patch.
109+
110+
##GistEvent
111+
112+
Hook name:`gist`
113+
114+
action
115+
:**string** - The action that was performed: "create" or "update"
116+
117+
gist
118+
:**object** - The[gist](/v3/gists/) itself.
119+
120+
##GollumEvent
121+
122+
Hook name:`gollum`
123+
124+
pages
125+
:**array** - The pages that were updated.
126+
127+
pages[][page_name]
128+
:**string** - The name of the page.
129+
130+
pages[][title]
131+
:**string** - The current page title.
132+
133+
pages[][action]
134+
:**string** - The action that was performed on the page.
135+
136+
pages[][sha]
137+
:**string** - The latest commit SHA of the page.
138+
139+
pages[][html_url]
140+
:**string** - Points to the HTML wiki page.
141+
142+
##IssueCommentEvent
143+
144+
Hook name:`issue_comment`
145+
146+
action
147+
:**string** - The action that was performed on the comment.
148+
149+
issue
150+
:**object** - The[issue](/v3/issues/) the comment belongs to.
151+
152+
comment
153+
:**object** - The[comment](/v3/issues/comments/) itself.
154+
155+
##IssuesEvent
156+
157+
Hook name:`issues`
158+
159+
action
160+
:**string** - The action that was performed: "opened", "closed", or
161+
"reopened".
162+
163+
issue
164+
:**string** - The[issue](/v3/issues) itself.
165+
166+
##MemberEvent
167+
168+
Triggered when a user is added as a collaborator to a repository.
169+
170+
Hook name:`member`
171+
172+
member
173+
:**object** - The[user](/v3/users/) that was added.
174+
175+
a
176+
177+
##PublicEvent
178+
179+
This is triggered when a private repo is open sourced. Without a doubt: the
180+
best GitHub event.
181+
182+
Hook name:`public`
183+
184+
(empty payload)
185+
186+
##PullRequestEvent
187+
188+
Hook name:`pull_request`
189+
190+
action
191+
:**string** - The action that was performed: "opened", "closed",
192+
"synchronize", or "reopened".
193+
194+
number
195+
:**integer** - The pull request number.
196+
197+
pull\_request
198+
:**object** - The[pull request](/v3/pulls) itself.
199+
10200
##PushEvent
11201

12-
Hook name: push
202+
Hook name:`push`
13203

14204
head
15205
:**string** - The SHA of the HEAD commit on the repository.
@@ -42,3 +232,27 @@ commits[][author][email]
42232
commits[][url]
43233
:**url** - Points to the commit API resource.
44234

235+
##TeamAddEvent
236+
237+
Hook name:`team_add`
238+
239+
team
240+
:**object** - The[team](/v3/orgs/teams/) that was modified. Note:
241+
older events may not include this in the payload.
242+
243+
user
244+
:**object** - The[user](/v3/users/) that was added to this team.
245+
246+
repo
247+
:**object** - The[repository](/v3/repos/) that was added to this team.
248+
249+
##WatchEvent
250+
251+
The event's actor is the watcher, and the event's repo is the watched
252+
repository.
253+
254+
Hook name:`watch`
255+
256+
action
257+
:**string** - The action that was performed.
258+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp