{"action":"created","comment":{"url":"https://api.github.com/repos/koajs/examples/pulls/comments/81899998","pull_request_review_id":2845855,"id":81899998,"diff_hunk":"@@ -0,0 +1,56 @@\n+var app = require('./app');\n+var request = require('supertest').agent(app.listen());\n+\n+describe('Blog', function(){\n+  describe('GET /',function(){\n+    it('should see title \"Posts\"', function(done){\n+      request\n+      .get('/')\n+      .expect(200, function(err, res){\n+        if (err) return done(err);\n+\n+        res.should.be.html;\n+        res.text.should.include('<title>Posts</title>');\n+        done();\n+      });\n+    });\n+    it('should see 0 post', function(done){\n+      request\n+      .get('/')\n+      .expect(200, function(err, res){\n+        if (err) return done(err);\n+\n+        res.should.be.html;\n+        res.text.should.include('<p>You have <strong>0</strong> posts!</p>');\n+        done();\n+      });\n+    });\n+  });\n+  describe('POST /post/new',function(){\n+    it('should create post and redirect to /', function(done){\n+      request\n+      .post('/post')\n+      .send({title: 'Title', body: 'Contents'})\n+      .end(function(err, res){\n+        if (err) return done(err);\n+        res.header.location.should.be.equal('/')\n+        done();\n+      })\n+      ;","path":"blog/test.js","position":39,"original_position":39,"commit_id":"f329a29531ab5fe7949ba3bb35f140a8b23d61c4","original_commit_id":"f329a29531ab5fe7949ba3bb35f140a8b23d61c4","user":{"login":"bananaappletw","id":6241350,"avatar_url":"https://avatars.githubusercontent.com/u/6241350?v=3","gravatar_id":"","url":"https://api.github.com/users/bananaappletw","html_url":"https://github.com/bananaappletw","followers_url":"https://api.github.com/users/bananaappletw/followers","following_url":"https://api.github.com/users/bananaappletw/following{/other_user}","gists_url":"https://api.github.com/users/bananaappletw/gists{/gist_id}","starred_url":"https://api.github.com/users/bananaappletw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananaappletw/subscriptions","organizations_url":"https://api.github.com/users/bananaappletw/orgs","repos_url":"https://api.github.com/users/bananaappletw/repos","events_url":"https://api.github.com/users/bananaappletw/events{/privacy}","received_events_url":"https://api.github.com/users/bananaappletw/received_events","type":"User","site_admin":false},"body":"Sorry, I didn't notice the format.\r\nLater, I adjust the format.\r\nThanks you for pointing this out. >_<","created_at":"2016-10-05T04:48:49Z","updated_at":"2016-10-05T04:48:49Z","html_url":"https://github.com/koajs/examples/pull/87#discussion_r81899998","pull_request_url":"https://api.github.com/repos/koajs/examples/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/koajs/examples/pulls/comments/81899998"},"html":{"href":"https://github.com/koajs/examples/pull/87#discussion_r81899998"},"pull_request":{"href":"https://api.github.com/repos/koajs/examples/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/koajs/examples/pulls/87","id":87892241,"html_url":"https://github.com/koajs/examples/pull/87","diff_url":"https://github.com/koajs/examples/pull/87.diff","patch_url":"https://github.com/koajs/examples/pull/87.patch","issue_url":"https://api.github.com/repos/koajs/examples/issues/87","number":87,"state":"open","locked":false,"title":"Update co-views to fix swig cache problem and add test for blog","user":{"login":"bananaappletw","id":6241350,"avatar_url":"https://avatars.githubusercontent.com/u/6241350?v=3","gravatar_id":"","url":"https://api.github.com/users/bananaappletw","html_url":"https://github.com/bananaappletw","followers_url":"https://api.github.com/users/bananaappletw/followers","following_url":"https://api.github.com/users/bananaappletw/following{/other_user}","gists_url":"https://api.github.com/users/bananaappletw/gists{/gist_id}","starred_url":"https://api.github.com/users/bananaappletw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananaappletw/subscriptions","organizations_url":"https://api.github.com/users/bananaappletw/orgs","repos_url":"https://api.github.com/users/bananaappletw/repos","events_url":"https://api.github.com/users/bananaappletw/events{/privacy}","received_events_url":"https://api.github.com/users/bananaappletw/received_events","type":"User","site_admin":false},"body":"Fix #69 \r\nAfter upgrade `co-views` package.\r\nThis issue no longer exists.","created_at":"2016-10-04T13:19:49Z","updated_at":"2016-10-05T04:48:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9df9022898cfd931a7e947fc9b7aa39d0d690a50","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/koajs/examples/pulls/87/commits","review_comments_url":"https://api.github.com/repos/koajs/examples/pulls/87/comments","review_comment_url":"https://api.github.com/repos/koajs/examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koajs/examples/issues/87/comments","statuses_url":"https://api.github.com/repos/koajs/examples/statuses/f329a29531ab5fe7949ba3bb35f140a8b23d61c4","head":{"label":"bananaappletw:master","ref":"master","sha":"f329a29531ab5fe7949ba3bb35f140a8b23d61c4","user":{"login":"bananaappletw","id":6241350,"avatar_url":"https://avatars.githubusercontent.com/u/6241350?v=3","gravatar_id":"","url":"https://api.github.com/users/bananaappletw","html_url":"https://github.com/bananaappletw","followers_url":"https://api.github.com/users/bananaappletw/followers","following_url":"https://api.github.com/users/bananaappletw/following{/other_user}","gists_url":"https://api.github.com/users/bananaappletw/gists{/gist_id}","starred_url":"https://api.github.com/users/bananaappletw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananaappletw/subscriptions","organizations_url":"https://api.github.com/users/bananaappletw/orgs","repos_url":"https://api.github.com/users/bananaappletw/repos","events_url":"https://api.github.com/users/bananaappletw/events{/privacy}","received_events_url":"https://api.github.com/users/bananaappletw/received_events","type":"User","site_admin":false},"repo":{"id":69966595,"name":"examples","full_name":"bananaappletw/examples","owner":{"login":"bananaappletw","id":6241350,"avatar_url":"https://avatars.githubusercontent.com/u/6241350?v=3","gravatar_id":"","url":"https://api.github.com/users/bananaappletw","html_url":"https://github.com/bananaappletw","followers_url":"https://api.github.com/users/bananaappletw/followers","following_url":"https://api.github.com/users/bananaappletw/following{/other_user}","gists_url":"https://api.github.com/users/bananaappletw/gists{/gist_id}","starred_url":"https://api.github.com/users/bananaappletw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananaappletw/subscriptions","organizations_url":"https://api.github.com/users/bananaappletw/orgs","repos_url":"https://api.github.com/users/bananaappletw/repos","events_url":"https://api.github.com/users/bananaappletw/events{/privacy}","received_events_url":"https://api.github.com/users/bananaappletw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bananaappletw/examples","description":"Example Koa apps","fork":true,"url":"https://api.github.com/repos/bananaappletw/examples","forks_url":"https://api.github.com/repos/bananaappletw/examples/forks","keys_url":"https://api.github.com/repos/bananaappletw/examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bananaappletw/examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bananaappletw/examples/teams","hooks_url":"https://api.github.com/repos/bananaappletw/examples/hooks","issue_events_url":"https://api.github.com/repos/bananaappletw/examples/issues/events{/number}","events_url":"https://api.github.com/repos/bananaappletw/examples/events","assignees_url":"https://api.github.com/repos/bananaappletw/examples/assignees{/user}","branches_url":"https://api.github.com/repos/bananaappletw/examples/branches{/branch}","tags_url":"https://api.github.com/repos/bananaappletw/examples/tags","blobs_url":"https://api.github.com/repos/bananaappletw/examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bananaappletw/examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bananaappletw/examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/bananaappletw/examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bananaappletw/examples/statuses/{sha}","languages_url":"https://api.github.com/repos/bananaappletw/examples/languages","stargazers_url":"https://api.github.com/repos/bananaappletw/examples/stargazers","contributors_url":"https://api.github.com/repos/bananaappletw/examples/contributors","subscribers_url":"https://api.github.com/repos/bananaappletw/examples/subscribers","subscription_url":"https://api.github.com/repos/bananaappletw/examples/subscription","commits_url":"https://api.github.com/repos/bananaappletw/examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/bananaappletw/examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/bananaappletw/examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/bananaappletw/examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/bananaappletw/examples/contents/{+path}","compare_url":"https://api.github.com/repos/bananaappletw/examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bananaappletw/examples/merges","archive_url":"https://api.github.com/repos/bananaappletw/examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bananaappletw/examples/downloads","issues_url":"https://api.github.com/repos/bananaappletw/examples/issues{/number}","pulls_url":"https://api.github.com/repos/bananaappletw/examples/pulls{/number}","milestones_url":"https://api.github.com/repos/bananaappletw/examples/milestones{/number}","notifications_url":"https://api.github.com/repos/bananaappletw/examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bananaappletw/examples/labels{/name}","releases_url":"https://api.github.com/repos/bananaappletw/examples/releases{/id}","deployments_url":"https://api.github.com/repos/bananaappletw/examples/deployments","created_at":"2016-10-04T13:17:05Z","updated_at":"2016-10-04T13:17:06Z","pushed_at":"2016-10-04T13:18:01Z","git_url":"git://github.com/bananaappletw/examples.git","ssh_url":"git@github.com:bananaappletw/examples.git","clone_url":"https://github.com/bananaappletw/examples.git","svn_url":"https://github.com/bananaappletw/examples","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"koajs:master","ref":"master","sha":"dac673053591912782df32b3263dbe889b4a3ee8","user":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"repo":{"id":14768185,"name":"examples","full_name":"koajs/examples","owner":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koajs/examples","description":"Example Koa apps","fork":false,"url":"https://api.github.com/repos/koajs/examples","forks_url":"https://api.github.com/repos/koajs/examples/forks","keys_url":"https://api.github.com/repos/koajs/examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koajs/examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koajs/examples/teams","hooks_url":"https://api.github.com/repos/koajs/examples/hooks","issue_events_url":"https://api.github.com/repos/koajs/examples/issues/events{/number}","events_url":"https://api.github.com/repos/koajs/examples/events","assignees_url":"https://api.github.com/repos/koajs/examples/assignees{/user}","branches_url":"https://api.github.com/repos/koajs/examples/branches{/branch}","tags_url":"https://api.github.com/repos/koajs/examples/tags","blobs_url":"https://api.github.com/repos/koajs/examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koajs/examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koajs/examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/koajs/examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koajs/examples/statuses/{sha}","languages_url":"https://api.github.com/repos/koajs/examples/languages","stargazers_url":"https://api.github.com/repos/koajs/examples/stargazers","contributors_url":"https://api.github.com/repos/koajs/examples/contributors","subscribers_url":"https://api.github.com/repos/koajs/examples/subscribers","subscription_url":"https://api.github.com/repos/koajs/examples/subscription","commits_url":"https://api.github.com/repos/koajs/examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/koajs/examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/koajs/examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/koajs/examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/koajs/examples/contents/{+path}","compare_url":"https://api.github.com/repos/koajs/examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koajs/examples/merges","archive_url":"https://api.github.com/repos/koajs/examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koajs/examples/downloads","issues_url":"https://api.github.com/repos/koajs/examples/issues{/number}","pulls_url":"https://api.github.com/repos/koajs/examples/pulls{/number}","milestones_url":"https://api.github.com/repos/koajs/examples/milestones{/number}","notifications_url":"https://api.github.com/repos/koajs/examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koajs/examples/labels{/name}","releases_url":"https://api.github.com/repos/koajs/examples/releases{/id}","deployments_url":"https://api.github.com/repos/koajs/examples/deployments","created_at":"2013-11-28T04:59:53Z","updated_at":"2016-10-04T17:50:03Z","pushed_at":"2016-10-04T13:19:49Z","git_url":"git://github.com/koajs/examples.git","ssh_url":"git@github.com:koajs/examples.git","clone_url":"https://github.com/koajs/examples.git","svn_url":"https://github.com/koajs/examples","homepage":null,"size":190,"stargazers_count":1460,"watchers_count":1460,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":297,"mirror_url":null,"open_issues_count":5,"forks":297,"open_issues":5,"watchers":1460,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koajs/examples/pulls/87"},"html":{"href":"https://github.com/koajs/examples/pull/87"},"issue":{"href":"https://api.github.com/repos/koajs/examples/issues/87"},"comments":{"href":"https://api.github.com/repos/koajs/examples/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/koajs/examples/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/koajs/examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koajs/examples/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/koajs/examples/statuses/f329a29531ab5fe7949ba3bb35f140a8b23d61c4"}}}}
{"actor":{"display_login":"bananaappletw"}}