{"action":"created","comment":{"url":"https://api.github.com/repos/koajs/koa/pulls/comments/43169383","id":43169383,"diff_hunk":"@@ -9,22 +9,25 @@ describe('app.use(fn)', function(){\n     const app = new Koa();\n     const calls = [];\n \n-    app.use(function *(ctx, next){\n+    app.use(function(ctx, next){\n       calls.push(1);\n-      yield next();\n-      calls.push(6);\n+      next().then(function(){\n+        calls.push(6);\n+      });\n     });\n \n-    app.use(function *(ctx, next){\n+    app.use(function(ctx, next){\n       calls.push(2);\n-      yield next();\n-      calls.push(5);\n+      next().then(function(){\n+        calls.push(5);\n+      });\n     });\n \n-    app.use(function *(ctx, next){\n+    app.use(function(ctx, next){\n       calls.push(3);\n-      yield next();\n-      calls.push(4);\n+      next().then(function(){","path":"test/application/use.js","position":29,"original_position":29,"commit_id":"cae92e4b2933e69f378893828b44f12b2267fca5","original_commit_id":"cae92e4b2933e69f378893828b44f12b2267fca5","user":{"login":"gyson","id":4263515,"avatar_url":"https://avatars.githubusercontent.com/u/4263515?v=3","gravatar_id":"","url":"https://api.github.com/users/gyson","html_url":"https://github.com/gyson","followers_url":"https://api.github.com/users/gyson/followers","following_url":"https://api.github.com/users/gyson/following{/other_user}","gists_url":"https://api.github.com/users/gyson/gists{/gist_id}","starred_url":"https://api.github.com/users/gyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyson/subscriptions","organizations_url":"https://api.github.com/users/gyson/orgs","repos_url":"https://api.github.com/users/gyson/repos","events_url":"https://api.github.com/users/gyson/events{/privacy}","received_events_url":"https://api.github.com/users/gyson/received_events","type":"User","site_admin":false},"body":"`return next()`","created_at":"2015-10-27T18:55:24Z","updated_at":"2015-10-27T18:55:24Z","html_url":"https://github.com/koajs/koa/pull/558#discussion_r43169383","pull_request_url":"https://api.github.com/repos/koajs/koa/pulls/558","_links":{"self":{"href":"https://api.github.com/repos/koajs/koa/pulls/comments/43169383"},"html":{"href":"https://github.com/koajs/koa/pull/558#discussion_r43169383"},"pull_request":{"href":"https://api.github.com/repos/koajs/koa/pulls/558"}}},"pull_request":{"url":"https://api.github.com/repos/koajs/koa/pulls/558","id":48882775,"html_url":"https://github.com/koajs/koa/pull/558","diff_url":"https://github.com/koajs/koa/pull/558.diff","patch_url":"https://github.com/koajs/koa/pull/558.patch","issue_url":"https://api.github.com/repos/koajs/koa/issues/558","number":558,"state":"open","locked":false,"title":"Remove co dependency","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"body":"Closes #557 ","created_at":"2015-10-27T15:03:06Z","updated_at":"2015-10-27T18:55:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68d7fb3c498ed4fbff65632ea11714bb184c36b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/koajs/koa/pulls/558/commits","review_comments_url":"https://api.github.com/repos/koajs/koa/pulls/558/comments","review_comment_url":"https://api.github.com/repos/koajs/koa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koajs/koa/issues/558/comments","statuses_url":"https://api.github.com/repos/koajs/koa/statuses/cae92e4b2933e69f378893828b44f12b2267fca5","head":{"label":"felixfbecker:master","ref":"master","sha":"cae92e4b2933e69f378893828b44f12b2267fca5","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"repo":{"id":45045968,"name":"koa","full_name":"felixfbecker/koa","owner":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felixfbecker/koa","description":"Expressive middleware for node.js using generators","fork":true,"url":"https://api.github.com/repos/felixfbecker/koa","forks_url":"https://api.github.com/repos/felixfbecker/koa/forks","keys_url":"https://api.github.com/repos/felixfbecker/koa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felixfbecker/koa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felixfbecker/koa/teams","hooks_url":"https://api.github.com/repos/felixfbecker/koa/hooks","issue_events_url":"https://api.github.com/repos/felixfbecker/koa/issues/events{/number}","events_url":"https://api.github.com/repos/felixfbecker/koa/events","assignees_url":"https://api.github.com/repos/felixfbecker/koa/assignees{/user}","branches_url":"https://api.github.com/repos/felixfbecker/koa/branches{/branch}","tags_url":"https://api.github.com/repos/felixfbecker/koa/tags","blobs_url":"https://api.github.com/repos/felixfbecker/koa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felixfbecker/koa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felixfbecker/koa/git/refs{/sha}","trees_url":"https://api.github.com/repos/felixfbecker/koa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felixfbecker/koa/statuses/{sha}","languages_url":"https://api.github.com/repos/felixfbecker/koa/languages","stargazers_url":"https://api.github.com/repos/felixfbecker/koa/stargazers","contributors_url":"https://api.github.com/repos/felixfbecker/koa/contributors","subscribers_url":"https://api.github.com/repos/felixfbecker/koa/subscribers","subscription_url":"https://api.github.com/repos/felixfbecker/koa/subscription","commits_url":"https://api.github.com/repos/felixfbecker/koa/commits{/sha}","git_commits_url":"https://api.github.com/repos/felixfbecker/koa/git/commits{/sha}","comments_url":"https://api.github.com/repos/felixfbecker/koa/comments{/number}","issue_comment_url":"https://api.github.com/repos/felixfbecker/koa/issues/comments{/number}","contents_url":"https://api.github.com/repos/felixfbecker/koa/contents/{+path}","compare_url":"https://api.github.com/repos/felixfbecker/koa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felixfbecker/koa/merges","archive_url":"https://api.github.com/repos/felixfbecker/koa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felixfbecker/koa/downloads","issues_url":"https://api.github.com/repos/felixfbecker/koa/issues{/number}","pulls_url":"https://api.github.com/repos/felixfbecker/koa/pulls{/number}","milestones_url":"https://api.github.com/repos/felixfbecker/koa/milestones{/number}","notifications_url":"https://api.github.com/repos/felixfbecker/koa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felixfbecker/koa/labels{/name}","releases_url":"https://api.github.com/repos/felixfbecker/koa/releases{/id}","created_at":"2015-10-27T14:20:01Z","updated_at":"2015-10-27T14:20:02Z","pushed_at":"2015-10-27T15:58:45Z","git_url":"git://github.com/felixfbecker/koa.git","ssh_url":"git@github.com:felixfbecker/koa.git","clone_url":"https://github.com/felixfbecker/koa.git","svn_url":"https://github.com/felixfbecker/koa","homepage":"http://koajs.com","size":5440,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"5d4df1086de25baa64981e8004b10e1440f7f563","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":11551538,"name":"koa","full_name":"koajs/koa","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/koa","description":"Expressive middleware for node.js using generators","fork":false,"url":"https://api.github.com/repos/koajs/koa","forks_url":"https://api.github.com/repos/koajs/koa/forks","keys_url":"https://api.github.com/repos/koajs/koa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koajs/koa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koajs/koa/teams","hooks_url":"https://api.github.com/repos/koajs/koa/hooks","issue_events_url":"https://api.github.com/repos/koajs/koa/issues/events{/number}","events_url":"https://api.github.com/repos/koajs/koa/events","assignees_url":"https://api.github.com/repos/koajs/koa/assignees{/user}","branches_url":"https://api.github.com/repos/koajs/koa/branches{/branch}","tags_url":"https://api.github.com/repos/koajs/koa/tags","blobs_url":"https://api.github.com/repos/koajs/koa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koajs/koa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koajs/koa/git/refs{/sha}","trees_url":"https://api.github.com/repos/koajs/koa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koajs/koa/statuses/{sha}","languages_url":"https://api.github.com/repos/koajs/koa/languages","stargazers_url":"https://api.github.com/repos/koajs/koa/stargazers","contributors_url":"https://api.github.com/repos/koajs/koa/contributors","subscribers_url":"https://api.github.com/repos/koajs/koa/subscribers","subscription_url":"https://api.github.com/repos/koajs/koa/subscription","commits_url":"https://api.github.com/repos/koajs/koa/commits{/sha}","git_commits_url":"https://api.github.com/repos/koajs/koa/git/commits{/sha}","comments_url":"https://api.github.com/repos/koajs/koa/comments{/number}","issue_comment_url":"https://api.github.com/repos/koajs/koa/issues/comments{/number}","contents_url":"https://api.github.com/repos/koajs/koa/contents/{+path}","compare_url":"https://api.github.com/repos/koajs/koa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koajs/koa/merges","archive_url":"https://api.github.com/repos/koajs/koa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koajs/koa/downloads","issues_url":"https://api.github.com/repos/koajs/koa/issues{/number}","pulls_url":"https://api.github.com/repos/koajs/koa/pulls{/number}","milestones_url":"https://api.github.com/repos/koajs/koa/milestones{/number}","notifications_url":"https://api.github.com/repos/koajs/koa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koajs/koa/labels{/name}","releases_url":"https://api.github.com/repos/koajs/koa/releases{/id}","created_at":"2013-07-20T18:53:45Z","updated_at":"2015-10-27T14:00:35Z","pushed_at":"2015-10-27T18:13:39Z","git_url":"git://github.com/koajs/koa.git","ssh_url":"git@github.com:koajs/koa.git","clone_url":"https://github.com/koajs/koa.git","svn_url":"https://github.com/koajs/koa","homepage":"http://koajs.com","size":5440,"stargazers_count":7468,"watchers_count":7468,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":588,"mirror_url":null,"open_issues_count":24,"forks":588,"open_issues":24,"watchers":7468,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koajs/koa/pulls/558"},"html":{"href":"https://github.com/koajs/koa/pull/558"},"issue":{"href":"https://api.github.com/repos/koajs/koa/issues/558"},"comments":{"href":"https://api.github.com/repos/koajs/koa/issues/558/comments"},"review_comments":{"href":"https://api.github.com/repos/koajs/koa/pulls/558/comments"},"review_comment":{"href":"https://api.github.com/repos/koajs/koa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koajs/koa/pulls/558/commits"},"statuses":{"href":"https://api.github.com/repos/koajs/koa/statuses/cae92e4b2933e69f378893828b44f12b2267fca5"}}}}