Skip to content

Commit 658e8e1

Browse files
committed
pull request changes
1 parent d6599c8 commit 658e8e1

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

lib/resources.rb

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,20 @@ def json(key)
173173
"updated_at" => "2011-01-26T19:01:12Z",
174174
"closed_at" => "2011-01-26T19:01:12Z",
175175
"merged_at" => "2011-01-26T19:01:12Z",
176+
"head" => {
177+
"label" => "new-topic",
178+
"ref" => "new-topic",
179+
"sha" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
180+
"user" => USER,
181+
"repo" => REPO,
182+
},
183+
"base" => {
184+
"label" => "master",
185+
"ref" => "master",
186+
"sha" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
187+
"user" => USER,
188+
"repo" => REPO,
189+
},
176190
"_links" => {
177191
"self" => {'href' =>
178192
"https://api.github.com/octocat/Hello-World/pulls/1"},
@@ -193,21 +207,7 @@ def json(key)
193207
"commits" => 3,
194208
"additions" => 100,
195209
"deletions" => 3,
196-
"changed_files" => 5,
197-
"head" => {
198-
"label" => "new-topic",
199-
"ref" => "new-topic",
200-
"sha" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
201-
"user" => USER,
202-
"repo" => REPO,
203-
},
204-
"base" => {
205-
"label" => "master",
206-
"ref" => "master",
207-
"sha" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
208-
"user" => USER,
209-
"repo" => REPO,
210-
}
210+
"changed_files" => 5
211211
})
212212

213213
COMMIT = {
@@ -306,7 +306,15 @@ def json(key)
306306
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
307307
"user" => USER,
308308
"created_at" => "2011-04-14T16:00:49Z",
309-
"updated_at" => "2011-04-14T16:00:49Z"
309+
"updated_at" => "2011-04-14T16:00:49Z",
310+
"_links" => {
311+
"self" => {'href' =>
312+
"https://api.github.com/octocat/Hello-World/pulls/comments/1"},
313+
"html" => {'href' =>
314+
"https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"},
315+
"pull_request" => {'href' =>
316+
"https://api.github.com/octocat/Hello-World/pulls/1"}
317+
}
310318
}
311319

312320
DOWNLOAD = {

0 commit comments

Comments
 (0)