github-payload 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.md +22 -0
- data/README.md +25 -0
- data/Rakefile +10 -0
- data/github-payload.gemspec +26 -0
- data/lib/github/payload.rb +14 -0
- data/lib/github/payload/formatter.rb +65 -0
- data/lib/github/payload/formatter/create_event.rb +21 -0
- data/lib/github/payload/formatter/delete_event.rb +21 -0
- data/lib/github/payload/formatter/issue_comment_event.rb +21 -0
- data/lib/github/payload/formatter/issues_event.rb +9 -0
- data/lib/github/payload/formatter/public_event.rb +21 -0
- data/lib/github/payload/formatter/pull_request_event.rb +9 -0
- data/lib/github/payload/formatter/push_event.rb +9 -0
- data/lib/github/payload/helpers.rb +10 -0
- data/lib/github/payload/helpers/actions.rb +15 -0
- data/lib/github/payload/helpers/issues.rb +42 -0
- data/lib/github/payload/helpers/meta.rb +26 -0
- data/lib/github/payload/helpers/pull_request.rb +52 -0
- data/lib/github/payload/helpers/push.rb +230 -0
- data/lib/github/payload/version.rb +5 -0
- data/test/data_test.rb +107 -0
- data/test/fixtures/commit_comment_comment.json +143 -0
- data/test/fixtures/create_branch.json +117 -0
- data/test/fixtures/delete_branch.json +115 -0
- data/test/fixtures/issue_comment_created.json +185 -0
- data/test/fixtures/issues_closed.json +158 -0
- data/test/fixtures/issues_opened.json +158 -0
- data/test/fixtures/member_added.json +132 -0
- data/test/fixtures/public.json +113 -0
- data/test/fixtures/pull_request_closed.json +414 -0
- data/test/fixtures/pull_request_opened.json +397 -0
- data/test/fixtures/pull_request_review_comment_comment.json +157 -0
- data/test/fixtures/push_created_forced.json +75 -0
- data/test/fixtures/push_deleted_forced.json +49 -0
- data/test/fixtures/push_event.json +99 -0
- data/test/push_test.rb +142 -0
- data/test/test_helper.rb +48 -0
- metadata +182 -0
@@ -0,0 +1,397 @@
|
|
1
|
+
{
|
2
|
+
"payload": {
|
3
|
+
"action": "opened",
|
4
|
+
"number": 2,
|
5
|
+
"pull_request": {
|
6
|
+
"url": "https://api.github.com/repos/atmos/test/pulls/2",
|
7
|
+
"id": 6180640,
|
8
|
+
"html_url": "https://github.com/atmos/test/pull/2",
|
9
|
+
"diff_url": "https://github.com/atmos/test/pull/2.diff",
|
10
|
+
"patch_url": "https://github.com/atmos/test/pull/2.patch",
|
11
|
+
"issue_url": "https://github.com/atmos/test/issues/2",
|
12
|
+
"number": 2,
|
13
|
+
"state": "open",
|
14
|
+
"title": "Update README.md",
|
15
|
+
"user": {
|
16
|
+
"login": "fakeatmos",
|
17
|
+
"id": 704696,
|
18
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7310f196129141a0517f1fe8f0689472?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
19
|
+
"gravatar_id": "7310f196129141a0517f1fe8f0689472",
|
20
|
+
"url": "https://api.github.com/users/fakeatmos",
|
21
|
+
"html_url": "https://github.com/fakeatmos",
|
22
|
+
"followers_url": "https://api.github.com/users/fakeatmos/followers",
|
23
|
+
"following_url": "https://api.github.com/users/fakeatmos/following{/other_user}",
|
24
|
+
"gists_url": "https://api.github.com/users/fakeatmos/gists{/gist_id}",
|
25
|
+
"starred_url": "https://api.github.com/users/fakeatmos/starred{/owner}{/repo}",
|
26
|
+
"subscriptions_url": "https://api.github.com/users/fakeatmos/subscriptions",
|
27
|
+
"organizations_url": "https://api.github.com/users/fakeatmos/orgs",
|
28
|
+
"repos_url": "https://api.github.com/users/fakeatmos/repos",
|
29
|
+
"events_url": "https://api.github.com/users/fakeatmos/events{/privacy}",
|
30
|
+
"received_events_url": "https://api.github.com/users/fakeatmos/received_events",
|
31
|
+
"type": "User"
|
32
|
+
},
|
33
|
+
"body": "I think this is a cooler README.md. ",
|
34
|
+
"created_at": "2013-06-07T07:31:23Z",
|
35
|
+
"updated_at": "2013-06-07T07:31:23Z",
|
36
|
+
"closed_at": null,
|
37
|
+
"merged_at": null,
|
38
|
+
"merge_commit_sha": null,
|
39
|
+
"assignee": null,
|
40
|
+
"milestone": null,
|
41
|
+
"commits_url": "https://github.com/atmos/test/pull/2/commits",
|
42
|
+
"review_comments_url": "https://github.com/atmos/test/pull/2/comments",
|
43
|
+
"review_comment_url": "/repos/atmos/test/pulls/comments/{number}",
|
44
|
+
"comments_url": "https://api.github.com/repos/atmos/test/issues/2/comments",
|
45
|
+
"head": {
|
46
|
+
"label": "atmos:logo",
|
47
|
+
"ref": "logo",
|
48
|
+
"sha": "dcbb4e731b9588903d1fdda5131ab6125e7bce31",
|
49
|
+
"user": {
|
50
|
+
"login": "atmos",
|
51
|
+
"id": 38,
|
52
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
53
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
54
|
+
"url": "https://api.github.com/users/atmos",
|
55
|
+
"html_url": "https://github.com/atmos",
|
56
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
57
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
58
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
59
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
60
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
61
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
62
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
63
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
64
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
65
|
+
"type": "User"
|
66
|
+
},
|
67
|
+
"repo": {
|
68
|
+
"id": 10544626,
|
69
|
+
"name": "test",
|
70
|
+
"full_name": "atmos/test",
|
71
|
+
"owner": {
|
72
|
+
"login": "atmos",
|
73
|
+
"id": 38,
|
74
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
75
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
76
|
+
"url": "https://api.github.com/users/atmos",
|
77
|
+
"html_url": "https://github.com/atmos",
|
78
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
79
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
80
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
81
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
82
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
83
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
84
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
85
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
86
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
87
|
+
"type": "User"
|
88
|
+
},
|
89
|
+
"private": true,
|
90
|
+
"html_url": "https://github.com/atmos/test",
|
91
|
+
"description": "",
|
92
|
+
"fork": false,
|
93
|
+
"url": "https://api.github.com/repos/atmos/test",
|
94
|
+
"forks_url": "https://api.github.com/repos/atmos/test/forks",
|
95
|
+
"keys_url": "https://api.github.com/repos/atmos/test/keys{/key_id}",
|
96
|
+
"collaborators_url": "https://api.github.com/repos/atmos/test/collaborators{/collaborator}",
|
97
|
+
"teams_url": "https://api.github.com/repos/atmos/test/teams",
|
98
|
+
"hooks_url": "https://api.github.com/repos/atmos/test/hooks",
|
99
|
+
"issue_events_url": "https://api.github.com/repos/atmos/test/issues/events{/number}",
|
100
|
+
"events_url": "https://api.github.com/repos/atmos/test/events",
|
101
|
+
"assignees_url": "https://api.github.com/repos/atmos/test/assignees{/user}",
|
102
|
+
"branches_url": "https://api.github.com/repos/atmos/test/branches{/branch}",
|
103
|
+
"tags_url": "https://api.github.com/repos/atmos/test/tags",
|
104
|
+
"blobs_url": "https://api.github.com/repos/atmos/test/git/blobs{/sha}",
|
105
|
+
"git_tags_url": "https://api.github.com/repos/atmos/test/git/tags{/sha}",
|
106
|
+
"git_refs_url": "https://api.github.com/repos/atmos/test/git/refs{/sha}",
|
107
|
+
"trees_url": "https://api.github.com/repos/atmos/test/git/trees{/sha}",
|
108
|
+
"statuses_url": "https://api.github.com/repos/atmos/test/statuses/{sha}",
|
109
|
+
"languages_url": "https://api.github.com/repos/atmos/test/languages",
|
110
|
+
"stargazers_url": "https://api.github.com/repos/atmos/test/stargazers",
|
111
|
+
"contributors_url": "https://api.github.com/repos/atmos/test/contributors",
|
112
|
+
"subscribers_url": "https://api.github.com/repos/atmos/test/subscribers",
|
113
|
+
"subscription_url": "https://api.github.com/repos/atmos/test/subscription",
|
114
|
+
"commits_url": "https://api.github.com/repos/atmos/test/commits{/sha}",
|
115
|
+
"git_commits_url": "https://api.github.com/repos/atmos/test/git/commits{/sha}",
|
116
|
+
"comments_url": "https://api.github.com/repos/atmos/test/comments{/number}",
|
117
|
+
"issue_comment_url": "https://api.github.com/repos/atmos/test/issues/comments/{number}",
|
118
|
+
"contents_url": "https://api.github.com/repos/atmos/test/contents/{+path}",
|
119
|
+
"compare_url": "https://api.github.com/repos/atmos/test/compare/{base}...{head}",
|
120
|
+
"merges_url": "https://api.github.com/repos/atmos/test/merges",
|
121
|
+
"archive_url": "https://api.github.com/repos/atmos/test/{archive_format}{/ref}",
|
122
|
+
"downloads_url": "https://api.github.com/repos/atmos/test/downloads",
|
123
|
+
"issues_url": "https://api.github.com/repos/atmos/test/issues{/number}",
|
124
|
+
"pulls_url": "https://api.github.com/repos/atmos/test/pulls{/number}",
|
125
|
+
"milestones_url": "https://api.github.com/repos/atmos/test/milestones{/number}",
|
126
|
+
"notifications_url": "https://api.github.com/repos/atmos/test/notifications{?since,all,participating}",
|
127
|
+
"labels_url": "https://api.github.com/repos/atmos/test/labels{/name}",
|
128
|
+
"created_at": "2013-06-07T07:27:32Z",
|
129
|
+
"updated_at": "2013-06-07T07:31:23Z",
|
130
|
+
"pushed_at": "2013-06-07T07:29:44Z",
|
131
|
+
"git_url": "git://github.com/atmos/test.git",
|
132
|
+
"ssh_url": "git@github.com:atmos/test.git",
|
133
|
+
"clone_url": "https://github.com/atmos/test.git",
|
134
|
+
"svn_url": "https://github.com/atmos/test",
|
135
|
+
"homepage": null,
|
136
|
+
"size": 112,
|
137
|
+
"watchers_count": 0,
|
138
|
+
"language": null,
|
139
|
+
"has_issues": true,
|
140
|
+
"has_downloads": true,
|
141
|
+
"has_wiki": true,
|
142
|
+
"forks_count": 0,
|
143
|
+
"mirror_url": null,
|
144
|
+
"open_issues_count": 2,
|
145
|
+
"forks": 0,
|
146
|
+
"open_issues": 2,
|
147
|
+
"watchers": 0,
|
148
|
+
"master_branch": "master",
|
149
|
+
"default_branch": "master"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"base": {
|
153
|
+
"label": "atmos:master",
|
154
|
+
"ref": "master",
|
155
|
+
"sha": "de034075c40d456c85d92a3be2958ab36f914682",
|
156
|
+
"user": {
|
157
|
+
"login": "atmos",
|
158
|
+
"id": 38,
|
159
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
160
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
161
|
+
"url": "https://api.github.com/users/atmos",
|
162
|
+
"html_url": "https://github.com/atmos",
|
163
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
164
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
165
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
166
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
167
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
168
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
169
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
170
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
171
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
172
|
+
"type": "User"
|
173
|
+
},
|
174
|
+
"repo": {
|
175
|
+
"id": 10544626,
|
176
|
+
"name": "test",
|
177
|
+
"full_name": "atmos/test",
|
178
|
+
"owner": {
|
179
|
+
"login": "atmos",
|
180
|
+
"id": 38,
|
181
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
182
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
183
|
+
"url": "https://api.github.com/users/atmos",
|
184
|
+
"html_url": "https://github.com/atmos",
|
185
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
186
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
187
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
188
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
189
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
190
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
191
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
192
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
193
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
194
|
+
"type": "User"
|
195
|
+
},
|
196
|
+
"private": true,
|
197
|
+
"html_url": "https://github.com/atmos/test",
|
198
|
+
"description": "",
|
199
|
+
"fork": false,
|
200
|
+
"url": "https://api.github.com/repos/atmos/test",
|
201
|
+
"forks_url": "https://api.github.com/repos/atmos/test/forks",
|
202
|
+
"keys_url": "https://api.github.com/repos/atmos/test/keys{/key_id}",
|
203
|
+
"collaborators_url": "https://api.github.com/repos/atmos/test/collaborators{/collaborator}",
|
204
|
+
"teams_url": "https://api.github.com/repos/atmos/test/teams",
|
205
|
+
"hooks_url": "https://api.github.com/repos/atmos/test/hooks",
|
206
|
+
"issue_events_url": "https://api.github.com/repos/atmos/test/issues/events{/number}",
|
207
|
+
"events_url": "https://api.github.com/repos/atmos/test/events",
|
208
|
+
"assignees_url": "https://api.github.com/repos/atmos/test/assignees{/user}",
|
209
|
+
"branches_url": "https://api.github.com/repos/atmos/test/branches{/branch}",
|
210
|
+
"tags_url": "https://api.github.com/repos/atmos/test/tags",
|
211
|
+
"blobs_url": "https://api.github.com/repos/atmos/test/git/blobs{/sha}",
|
212
|
+
"git_tags_url": "https://api.github.com/repos/atmos/test/git/tags{/sha}",
|
213
|
+
"git_refs_url": "https://api.github.com/repos/atmos/test/git/refs{/sha}",
|
214
|
+
"trees_url": "https://api.github.com/repos/atmos/test/git/trees{/sha}",
|
215
|
+
"statuses_url": "https://api.github.com/repos/atmos/test/statuses/{sha}",
|
216
|
+
"languages_url": "https://api.github.com/repos/atmos/test/languages",
|
217
|
+
"stargazers_url": "https://api.github.com/repos/atmos/test/stargazers",
|
218
|
+
"contributors_url": "https://api.github.com/repos/atmos/test/contributors",
|
219
|
+
"subscribers_url": "https://api.github.com/repos/atmos/test/subscribers",
|
220
|
+
"subscription_url": "https://api.github.com/repos/atmos/test/subscription",
|
221
|
+
"commits_url": "https://api.github.com/repos/atmos/test/commits{/sha}",
|
222
|
+
"git_commits_url": "https://api.github.com/repos/atmos/test/git/commits{/sha}",
|
223
|
+
"comments_url": "https://api.github.com/repos/atmos/test/comments{/number}",
|
224
|
+
"issue_comment_url": "https://api.github.com/repos/atmos/test/issues/comments/{number}",
|
225
|
+
"contents_url": "https://api.github.com/repos/atmos/test/contents/{+path}",
|
226
|
+
"compare_url": "https://api.github.com/repos/atmos/test/compare/{base}...{head}",
|
227
|
+
"merges_url": "https://api.github.com/repos/atmos/test/merges",
|
228
|
+
"archive_url": "https://api.github.com/repos/atmos/test/{archive_format}{/ref}",
|
229
|
+
"downloads_url": "https://api.github.com/repos/atmos/test/downloads",
|
230
|
+
"issues_url": "https://api.github.com/repos/atmos/test/issues{/number}",
|
231
|
+
"pulls_url": "https://api.github.com/repos/atmos/test/pulls{/number}",
|
232
|
+
"milestones_url": "https://api.github.com/repos/atmos/test/milestones{/number}",
|
233
|
+
"notifications_url": "https://api.github.com/repos/atmos/test/notifications{?since,all,participating}",
|
234
|
+
"labels_url": "https://api.github.com/repos/atmos/test/labels{/name}",
|
235
|
+
"created_at": "2013-06-07T07:27:32Z",
|
236
|
+
"updated_at": "2013-06-07T07:31:23Z",
|
237
|
+
"pushed_at": "2013-06-07T07:29:44Z",
|
238
|
+
"git_url": "git://github.com/atmos/test.git",
|
239
|
+
"ssh_url": "git@github.com:atmos/test.git",
|
240
|
+
"clone_url": "https://github.com/atmos/test.git",
|
241
|
+
"svn_url": "https://github.com/atmos/test",
|
242
|
+
"homepage": null,
|
243
|
+
"size": 112,
|
244
|
+
"watchers_count": 0,
|
245
|
+
"language": null,
|
246
|
+
"has_issues": true,
|
247
|
+
"has_downloads": true,
|
248
|
+
"has_wiki": true,
|
249
|
+
"forks_count": 0,
|
250
|
+
"mirror_url": null,
|
251
|
+
"open_issues_count": 2,
|
252
|
+
"forks": 0,
|
253
|
+
"open_issues": 2,
|
254
|
+
"watchers": 0,
|
255
|
+
"master_branch": "master",
|
256
|
+
"default_branch": "master"
|
257
|
+
}
|
258
|
+
},
|
259
|
+
"_links": {
|
260
|
+
"self": {
|
261
|
+
"href": "https://api.github.com/repos/atmos/test/pulls/2"
|
262
|
+
},
|
263
|
+
"html": {
|
264
|
+
"href": "https://github.com/atmos/test/pull/2"
|
265
|
+
},
|
266
|
+
"issue": {
|
267
|
+
"href": "https://api.github.com/repos/atmos/test/issues/2"
|
268
|
+
},
|
269
|
+
"comments": {
|
270
|
+
"href": "https://api.github.com/repos/atmos/test/issues/2/comments"
|
271
|
+
},
|
272
|
+
"review_comments": {
|
273
|
+
"href": "https://api.github.com/repos/atmos/test/pulls/2/comments"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"merged": false,
|
277
|
+
"mergeable": null,
|
278
|
+
"mergeable_state": "unknown",
|
279
|
+
"merged_by": null,
|
280
|
+
"comments": 0,
|
281
|
+
"review_comments": 0,
|
282
|
+
"commits": 1,
|
283
|
+
"additions": 2,
|
284
|
+
"deletions": 0,
|
285
|
+
"changed_files": 1
|
286
|
+
},
|
287
|
+
"repository": {
|
288
|
+
"id": 10544626,
|
289
|
+
"name": "test",
|
290
|
+
"full_name": "atmos/test",
|
291
|
+
"owner": {
|
292
|
+
"login": "atmos",
|
293
|
+
"id": 38,
|
294
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
295
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
296
|
+
"url": "https://api.github.com/users/atmos",
|
297
|
+
"html_url": "https://github.com/atmos",
|
298
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
299
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
300
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
301
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
302
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
303
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
304
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
305
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
306
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
307
|
+
"type": "User"
|
308
|
+
},
|
309
|
+
"private": true,
|
310
|
+
"html_url": "https://github.com/atmos/test",
|
311
|
+
"description": "",
|
312
|
+
"fork": false,
|
313
|
+
"url": "https://api.github.com/repos/atmos/test",
|
314
|
+
"forks_url": "https://api.github.com/repos/atmos/test/forks",
|
315
|
+
"keys_url": "https://api.github.com/repos/atmos/test/keys{/key_id}",
|
316
|
+
"collaborators_url": "https://api.github.com/repos/atmos/test/collaborators{/collaborator}",
|
317
|
+
"teams_url": "https://api.github.com/repos/atmos/test/teams",
|
318
|
+
"hooks_url": "https://api.github.com/repos/atmos/test/hooks",
|
319
|
+
"issue_events_url": "https://api.github.com/repos/atmos/test/issues/events{/number}",
|
320
|
+
"events_url": "https://api.github.com/repos/atmos/test/events",
|
321
|
+
"assignees_url": "https://api.github.com/repos/atmos/test/assignees{/user}",
|
322
|
+
"branches_url": "https://api.github.com/repos/atmos/test/branches{/branch}",
|
323
|
+
"tags_url": "https://api.github.com/repos/atmos/test/tags",
|
324
|
+
"blobs_url": "https://api.github.com/repos/atmos/test/git/blobs{/sha}",
|
325
|
+
"git_tags_url": "https://api.github.com/repos/atmos/test/git/tags{/sha}",
|
326
|
+
"git_refs_url": "https://api.github.com/repos/atmos/test/git/refs{/sha}",
|
327
|
+
"trees_url": "https://api.github.com/repos/atmos/test/git/trees{/sha}",
|
328
|
+
"statuses_url": "https://api.github.com/repos/atmos/test/statuses/{sha}",
|
329
|
+
"languages_url": "https://api.github.com/repos/atmos/test/languages",
|
330
|
+
"stargazers_url": "https://api.github.com/repos/atmos/test/stargazers",
|
331
|
+
"contributors_url": "https://api.github.com/repos/atmos/test/contributors",
|
332
|
+
"subscribers_url": "https://api.github.com/repos/atmos/test/subscribers",
|
333
|
+
"subscription_url": "https://api.github.com/repos/atmos/test/subscription",
|
334
|
+
"commits_url": "https://api.github.com/repos/atmos/test/commits{/sha}",
|
335
|
+
"git_commits_url": "https://api.github.com/repos/atmos/test/git/commits{/sha}",
|
336
|
+
"comments_url": "https://api.github.com/repos/atmos/test/comments{/number}",
|
337
|
+
"issue_comment_url": "https://api.github.com/repos/atmos/test/issues/comments/{number}",
|
338
|
+
"contents_url": "https://api.github.com/repos/atmos/test/contents/{+path}",
|
339
|
+
"compare_url": "https://api.github.com/repos/atmos/test/compare/{base}...{head}",
|
340
|
+
"merges_url": "https://api.github.com/repos/atmos/test/merges",
|
341
|
+
"archive_url": "https://api.github.com/repos/atmos/test/{archive_format}{/ref}",
|
342
|
+
"downloads_url": "https://api.github.com/repos/atmos/test/downloads",
|
343
|
+
"issues_url": "https://api.github.com/repos/atmos/test/issues{/number}",
|
344
|
+
"pulls_url": "https://api.github.com/repos/atmos/test/pulls{/number}",
|
345
|
+
"milestones_url": "https://api.github.com/repos/atmos/test/milestones{/number}",
|
346
|
+
"notifications_url": "https://api.github.com/repos/atmos/test/notifications{?since,all,participating}",
|
347
|
+
"labels_url": "https://api.github.com/repos/atmos/test/labels{/name}",
|
348
|
+
"created_at": "2013-06-07T07:27:32Z",
|
349
|
+
"updated_at": "2013-06-07T07:31:23Z",
|
350
|
+
"pushed_at": "2013-06-07T07:29:44Z",
|
351
|
+
"git_url": "git://github.com/atmos/test.git",
|
352
|
+
"ssh_url": "git@github.com:atmos/test.git",
|
353
|
+
"clone_url": "https://github.com/atmos/test.git",
|
354
|
+
"svn_url": "https://github.com/atmos/test",
|
355
|
+
"homepage": null,
|
356
|
+
"size": 112,
|
357
|
+
"watchers_count": 0,
|
358
|
+
"language": null,
|
359
|
+
"has_issues": true,
|
360
|
+
"has_downloads": true,
|
361
|
+
"has_wiki": true,
|
362
|
+
"forks_count": 0,
|
363
|
+
"mirror_url": null,
|
364
|
+
"open_issues_count": 2,
|
365
|
+
"forks": 0,
|
366
|
+
"open_issues": 2,
|
367
|
+
"watchers": 0,
|
368
|
+
"master_branch": "master",
|
369
|
+
"default_branch": "master"
|
370
|
+
},
|
371
|
+
"sender": {
|
372
|
+
"login": "fakeatmos",
|
373
|
+
"id": 704696,
|
374
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7310f196129141a0517f1fe8f0689472?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
375
|
+
"gravatar_id": "7310f196129141a0517f1fe8f0689472",
|
376
|
+
"url": "https://api.github.com/users/fakeatmos",
|
377
|
+
"html_url": "https://github.com/fakeatmos",
|
378
|
+
"followers_url": "https://api.github.com/users/fakeatmos/followers",
|
379
|
+
"following_url": "https://api.github.com/users/fakeatmos/following{/other_user}",
|
380
|
+
"gists_url": "https://api.github.com/users/fakeatmos/gists{/gist_id}",
|
381
|
+
"starred_url": "https://api.github.com/users/fakeatmos/starred{/owner}{/repo}",
|
382
|
+
"subscriptions_url": "https://api.github.com/users/fakeatmos/subscriptions",
|
383
|
+
"organizations_url": "https://api.github.com/users/fakeatmos/orgs",
|
384
|
+
"repos_url": "https://api.github.com/users/fakeatmos/repos",
|
385
|
+
"events_url": "https://api.github.com/users/fakeatmos/events{/privacy}",
|
386
|
+
"received_events_url": "https://api.github.com/users/fakeatmos/received_events",
|
387
|
+
"type": "User"
|
388
|
+
}
|
389
|
+
},
|
390
|
+
"event": "pull_request",
|
391
|
+
"config": {
|
392
|
+
"url": "https://campfire-relaay.herokuapp.com",
|
393
|
+
"content_type": "json",
|
394
|
+
"secret": "563eb98bb765b5c048b9bbd1f4611b2c2beafc1c8fb3678b"
|
395
|
+
},
|
396
|
+
"guid": "419bee00-cf44-11e2-8497-cc7e1235cc83"
|
397
|
+
}
|
@@ -0,0 +1,157 @@
|
|
1
|
+
{
|
2
|
+
"payload": {
|
3
|
+
"comment": {
|
4
|
+
"url": "https://api.github.com/repos/atmos/test/pulls/comments/4584173",
|
5
|
+
"id": 4584173,
|
6
|
+
"body": "I think you just want one.",
|
7
|
+
"diff_hunk": "@@ -1 +1,3 @@\n # TRAP BREAKS\n+",
|
8
|
+
"path": "README.md",
|
9
|
+
"position": 2,
|
10
|
+
"original_position": 2,
|
11
|
+
"commit_id": "dcbb4e731b9588903d1fdda5131ab6125e7bce31",
|
12
|
+
"original_commit_id": "dcbb4e731b9588903d1fdda5131ab6125e7bce31",
|
13
|
+
"user": {
|
14
|
+
"login": "fakeatmos",
|
15
|
+
"id": 704696,
|
16
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7310f196129141a0517f1fe8f0689472?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
17
|
+
"gravatar_id": "7310f196129141a0517f1fe8f0689472",
|
18
|
+
"url": "https://api.github.com/users/fakeatmos",
|
19
|
+
"html_url": "https://github.com/fakeatmos",
|
20
|
+
"followers_url": "https://api.github.com/users/fakeatmos/followers",
|
21
|
+
"following_url": "https://api.github.com/users/fakeatmos/following{/other_user}",
|
22
|
+
"gists_url": "https://api.github.com/users/fakeatmos/gists{/gist_id}",
|
23
|
+
"starred_url": "https://api.github.com/users/fakeatmos/starred{/owner}{/repo}",
|
24
|
+
"subscriptions_url": "https://api.github.com/users/fakeatmos/subscriptions",
|
25
|
+
"organizations_url": "https://api.github.com/users/fakeatmos/orgs",
|
26
|
+
"repos_url": "https://api.github.com/users/fakeatmos/repos",
|
27
|
+
"events_url": "https://api.github.com/users/fakeatmos/events{/privacy}",
|
28
|
+
"received_events_url": "https://api.github.com/users/fakeatmos/received_events",
|
29
|
+
"type": "User"
|
30
|
+
},
|
31
|
+
"created_at": "2013-06-07T07:32:09Z",
|
32
|
+
"updated_at": "2013-06-07T07:32:09Z",
|
33
|
+
"html_url": "https://github.com/atmos/test/pull/2#discussion_r4584173",
|
34
|
+
"pull_request_url": "https://api.github.com/repos/atmos/test/pulls/2",
|
35
|
+
"_links": {
|
36
|
+
"self": {
|
37
|
+
"href": "https://api.github.com/repos/atmos/test/pulls/comments/4584173"
|
38
|
+
},
|
39
|
+
"html": {
|
40
|
+
"href": "https://github.com/atmos/test/pull/2#discussion_r4584173"
|
41
|
+
},
|
42
|
+
"pull_request": {
|
43
|
+
"href": "https://api.github.com/repos/atmos/test/pulls/2"
|
44
|
+
}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"repository": {
|
48
|
+
"id": 10544626,
|
49
|
+
"name": "test",
|
50
|
+
"full_name": "atmos/test",
|
51
|
+
"owner": {
|
52
|
+
"login": "atmos",
|
53
|
+
"id": 38,
|
54
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
55
|
+
"gravatar_id": "a86224d72ce21cd9f5bee6784d4b06c7",
|
56
|
+
"url": "https://api.github.com/users/atmos",
|
57
|
+
"html_url": "https://github.com/atmos",
|
58
|
+
"followers_url": "https://api.github.com/users/atmos/followers",
|
59
|
+
"following_url": "https://api.github.com/users/atmos/following{/other_user}",
|
60
|
+
"gists_url": "https://api.github.com/users/atmos/gists{/gist_id}",
|
61
|
+
"starred_url": "https://api.github.com/users/atmos/starred{/owner}{/repo}",
|
62
|
+
"subscriptions_url": "https://api.github.com/users/atmos/subscriptions",
|
63
|
+
"organizations_url": "https://api.github.com/users/atmos/orgs",
|
64
|
+
"repos_url": "https://api.github.com/users/atmos/repos",
|
65
|
+
"events_url": "https://api.github.com/users/atmos/events{/privacy}",
|
66
|
+
"received_events_url": "https://api.github.com/users/atmos/received_events",
|
67
|
+
"type": "User"
|
68
|
+
},
|
69
|
+
"private": true,
|
70
|
+
"html_url": "https://github.com/atmos/test",
|
71
|
+
"description": "",
|
72
|
+
"fork": false,
|
73
|
+
"url": "https://api.github.com/repos/atmos/test",
|
74
|
+
"forks_url": "https://api.github.com/repos/atmos/test/forks",
|
75
|
+
"keys_url": "https://api.github.com/repos/atmos/test/keys{/key_id}",
|
76
|
+
"collaborators_url": "https://api.github.com/repos/atmos/test/collaborators{/collaborator}",
|
77
|
+
"teams_url": "https://api.github.com/repos/atmos/test/teams",
|
78
|
+
"hooks_url": "https://api.github.com/repos/atmos/test/hooks",
|
79
|
+
"issue_events_url": "https://api.github.com/repos/atmos/test/issues/events{/number}",
|
80
|
+
"events_url": "https://api.github.com/repos/atmos/test/events",
|
81
|
+
"assignees_url": "https://api.github.com/repos/atmos/test/assignees{/user}",
|
82
|
+
"branches_url": "https://api.github.com/repos/atmos/test/branches{/branch}",
|
83
|
+
"tags_url": "https://api.github.com/repos/atmos/test/tags",
|
84
|
+
"blobs_url": "https://api.github.com/repos/atmos/test/git/blobs{/sha}",
|
85
|
+
"git_tags_url": "https://api.github.com/repos/atmos/test/git/tags{/sha}",
|
86
|
+
"git_refs_url": "https://api.github.com/repos/atmos/test/git/refs{/sha}",
|
87
|
+
"trees_url": "https://api.github.com/repos/atmos/test/git/trees{/sha}",
|
88
|
+
"statuses_url": "https://api.github.com/repos/atmos/test/statuses/{sha}",
|
89
|
+
"languages_url": "https://api.github.com/repos/atmos/test/languages",
|
90
|
+
"stargazers_url": "https://api.github.com/repos/atmos/test/stargazers",
|
91
|
+
"contributors_url": "https://api.github.com/repos/atmos/test/contributors",
|
92
|
+
"subscribers_url": "https://api.github.com/repos/atmos/test/subscribers",
|
93
|
+
"subscription_url": "https://api.github.com/repos/atmos/test/subscription",
|
94
|
+
"commits_url": "https://api.github.com/repos/atmos/test/commits{/sha}",
|
95
|
+
"git_commits_url": "https://api.github.com/repos/atmos/test/git/commits{/sha}",
|
96
|
+
"comments_url": "https://api.github.com/repos/atmos/test/comments{/number}",
|
97
|
+
"issue_comment_url": "https://api.github.com/repos/atmos/test/issues/comments/{number}",
|
98
|
+
"contents_url": "https://api.github.com/repos/atmos/test/contents/{+path}",
|
99
|
+
"compare_url": "https://api.github.com/repos/atmos/test/compare/{base}...{head}",
|
100
|
+
"merges_url": "https://api.github.com/repos/atmos/test/merges",
|
101
|
+
"archive_url": "https://api.github.com/repos/atmos/test/{archive_format}{/ref}",
|
102
|
+
"downloads_url": "https://api.github.com/repos/atmos/test/downloads",
|
103
|
+
"issues_url": "https://api.github.com/repos/atmos/test/issues{/number}",
|
104
|
+
"pulls_url": "https://api.github.com/repos/atmos/test/pulls{/number}",
|
105
|
+
"milestones_url": "https://api.github.com/repos/atmos/test/milestones{/number}",
|
106
|
+
"notifications_url": "https://api.github.com/repos/atmos/test/notifications{?since,all,participating}",
|
107
|
+
"labels_url": "https://api.github.com/repos/atmos/test/labels{/name}",
|
108
|
+
"created_at": "2013-06-07T07:27:32Z",
|
109
|
+
"updated_at": "2013-06-07T07:32:09Z",
|
110
|
+
"pushed_at": "2013-06-07T07:29:44Z",
|
111
|
+
"git_url": "git://github.com/atmos/test.git",
|
112
|
+
"ssh_url": "git@github.com:atmos/test.git",
|
113
|
+
"clone_url": "https://github.com/atmos/test.git",
|
114
|
+
"svn_url": "https://github.com/atmos/test",
|
115
|
+
"homepage": null,
|
116
|
+
"size": 112,
|
117
|
+
"watchers_count": 0,
|
118
|
+
"language": null,
|
119
|
+
"has_issues": true,
|
120
|
+
"has_downloads": true,
|
121
|
+
"has_wiki": true,
|
122
|
+
"forks_count": 0,
|
123
|
+
"mirror_url": null,
|
124
|
+
"open_issues_count": 2,
|
125
|
+
"forks": 0,
|
126
|
+
"open_issues": 2,
|
127
|
+
"watchers": 0,
|
128
|
+
"master_branch": "master",
|
129
|
+
"default_branch": "master"
|
130
|
+
},
|
131
|
+
"sender": {
|
132
|
+
"login": "fakeatmos",
|
133
|
+
"id": 704696,
|
134
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7310f196129141a0517f1fe8f0689472?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
135
|
+
"gravatar_id": "7310f196129141a0517f1fe8f0689472",
|
136
|
+
"url": "https://api.github.com/users/fakeatmos",
|
137
|
+
"html_url": "https://github.com/fakeatmos",
|
138
|
+
"followers_url": "https://api.github.com/users/fakeatmos/followers",
|
139
|
+
"following_url": "https://api.github.com/users/fakeatmos/following{/other_user}",
|
140
|
+
"gists_url": "https://api.github.com/users/fakeatmos/gists{/gist_id}",
|
141
|
+
"starred_url": "https://api.github.com/users/fakeatmos/starred{/owner}{/repo}",
|
142
|
+
"subscriptions_url": "https://api.github.com/users/fakeatmos/subscriptions",
|
143
|
+
"organizations_url": "https://api.github.com/users/fakeatmos/orgs",
|
144
|
+
"repos_url": "https://api.github.com/users/fakeatmos/repos",
|
145
|
+
"events_url": "https://api.github.com/users/fakeatmos/events{/privacy}",
|
146
|
+
"received_events_url": "https://api.github.com/users/fakeatmos/received_events",
|
147
|
+
"type": "User"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
"event": "pull_request_review_comment",
|
151
|
+
"config": {
|
152
|
+
"url": "https://campfire-relaay.herokuapp.com",
|
153
|
+
"content_type": "json",
|
154
|
+
"secret": "563eb98bb765b5c048b9bbd1f4611b2c2beafc1c8fb3678b"
|
155
|
+
},
|
156
|
+
"guid": "5c6e6280-cf44-11e2-8f83-3f60cf514af9"
|
157
|
+
}
|