@@ -392,7 +392,10 @@ def text_html(response, status, head = {})
392392 "html_url" => "https://github.com/octocat/Hello-World/pull/1" ,
393393 "diff_url" => "https://github.com/octocat/Hello-World/pulls/1.diff" ,
394394 "patch_url" => "https://github.com/octocat/Hello-World/pulls/1.patch" ,
395- "issue_url" => "https://github.com/octocat/Hello-World/issue/1" ,
395+ "issue_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1" ,
396+ "commits_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits" ,
397+ "review_comments_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments" ,
398+ "comments_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1/comments" ,
396399 "statuses_url" => "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" ,
397400 "number" => 1 ,
398401 "state" => "open" ,
@@ -421,10 +424,14 @@ def text_html(response, status, head = {})
421424 "https://api.github.com/repos/octocat/Hello-World/pulls/1" } ,
422425 "html" => { 'href' =>
423426 "https://github.com/octocat/Hello-World/pull/1" } ,
427+ "issue" => { 'href' =>
428+ "https://api.github.com/repos/octocat/Hello-World/issues/1" } ,
424429 "comments" => { 'href' =>
425430 "https://api.github.com/repos/octocat/Hello-World/issues/1/comments" } ,
426431 "review_comments" => { 'href' =>
427432 "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments" } ,
433+ "commits" => { 'href' =>
434+ "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits" } ,
428435 "statuses" => { 'href' =>
429436 "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" }
430437 } ,
@@ -505,14 +512,15 @@ def text_html(response, status, head = {})
505512 }
506513
507514 FILE = {
508- "sha" => "6dcb09b5b57875f334f61aebed695e2e4193db5e " ,
515+ "sha" => "bbcd538c8e72b8c175046e27cc8f907076331401 " ,
509516 "filename" => "file1.txt" ,
510517 "status" => "added" ,
511518 "additions" => 103 ,
512519 "deletions" => 21 ,
513520 "changes" => 124 ,
514521 "blob_url" => "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt" ,
515522 "raw_url" => "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt" ,
523+ "contents_url" => "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e" ,
516524 "patch" => "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
517525 }
518526
@@ -556,11 +564,27 @@ def text_html(response, status, head = {})
556564 }
557565 }
558566
567+ RELEASE_ASSET = {
568+ "url" => "https://api.github.com/repos/octocat/Hello-World/releases/assets/1" ,
569+ "id" => 1 ,
570+ "name" => "example.zip" ,
571+ "label" => "short description" ,
572+ "state" => "uploaded" ,
573+ "content_type" => "application/zip" ,
574+ "size" => 1024 ,
575+ "download_count" => 42 ,
576+ "created_at" => "2013-02-27T19:35:32Z" ,
577+ "updated_at" => "2013-02-27T19:35:32Z" ,
578+ "uploader" => USER
579+ }
580+
559581 RELEASE = {
560582 "url" => "https://api.github.com/repos/octocat/Hello-World/releases/1" ,
561583 "html_url" => "https://github.com/octocat/Hello-World/releases/v1.0.0" ,
562584 "assets_url" => "https://api.github.com/repos/octocat/Hello-World/releases/1/assets" ,
563585 "upload_url" => "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name}" ,
586+ "tarball_url" => "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0" ,
587+ "zipball_url" => "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0" ,
564588 "id" => 1 ,
565589 "tag_name" => "v1.0.0" ,
566590 "target_commitish" => "master" ,
@@ -570,20 +594,13 @@ def text_html(response, status, head = {})
570594 "prerelease" => false ,
571595 "created_at" => "2013-02-27T19:35:32Z" ,
572596 "published_at" => "2013-02-27T19:35:32Z" ,
597+ "author" => USER ,
598+ "assets" => [ RELEASE_ASSET ]
573599 }
574600
575- RELEASE_ASSET = {
576- "url" => "https://api.github.com/repos/octocat/Hello-World/releases/assets/1" ,
577- "id" => 1 ,
578- "name" => "example.zip" ,
579- "label" => "short description" ,
580- "state" => "uploaded" ,
581- "content_type" => "application/zip" ,
582- "size" => 1024 ,
583- "download_count" => 42 ,
584- "created_at" => "2013-02-27T19:35:32Z" ,
585- "updated_at" => "2013-02-27T19:35:32Z"
586- }
601+ CREATED_RELEASE = RELEASE . merge ( {
602+ "assets" => [ ]
603+ } )
587604
588605 DOWNLOAD = {
589606 "url" => "https://api.github.com/repos/octocat/Hello-World/downloads/1" ,
0 commit comments