{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11","id":37910785,"html_url":"https://github.com/chrisyip/koa-jade/pull/11","diff_url":"https://github.com/chrisyip/koa-jade/pull/11.diff","patch_url":"https://github.com/chrisyip/koa-jade/pull/11.patch","issue_url":"https://api.github.com/repos/chrisyip/koa-jade/issues/11","number":11,"state":"closed","locked":false,"title":"Add this.state to locals","user":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"body":"According to koajs doc: \r\n\r\n> __ctx.state__\r\n>The recommended namespace for passing information through middleware and to your frontend views.\r\n>\r\n> ```javascript\r\n> this.state.user = yield User.find(id);\r\n> ```\r\n\r\nThat's why I propose this PR, just adding this.state to locals.\r\nCould also solve another way issue #1 \r\n","created_at":"2015-06-17T15:04:08Z","updated_at":"2015-06-17T15:32:40Z","closed_at":"2015-06-17T15:32:40Z","merged_at":"2015-06-17T15:32:40Z","merge_commit_sha":"f9308f38d72fa980033bd084dd1338d5c52b9c3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11/commits","review_comments_url":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11/comments","review_comment_url":"https://api.github.com/repos/chrisyip/koa-jade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrisyip/koa-jade/issues/11/comments","statuses_url":"https://api.github.com/repos/chrisyip/koa-jade/statuses/854fdee1b391428e0aa06a5a70b074f4fa85b3dd","head":{"label":"superboum:master","ref":"master","sha":"854fdee1b391428e0aa06a5a70b074f4fa85b3dd","user":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"repo":{"id":37601384,"name":"koa-jade","full_name":"superboum/koa-jade","owner":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superboum/koa-jade","description":"A Jade middleware for Koa","fork":true,"url":"https://api.github.com/repos/superboum/koa-jade","forks_url":"https://api.github.com/repos/superboum/koa-jade/forks","keys_url":"https://api.github.com/repos/superboum/koa-jade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superboum/koa-jade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superboum/koa-jade/teams","hooks_url":"https://api.github.com/repos/superboum/koa-jade/hooks","issue_events_url":"https://api.github.com/repos/superboum/koa-jade/issues/events{/number}","events_url":"https://api.github.com/repos/superboum/koa-jade/events","assignees_url":"https://api.github.com/repos/superboum/koa-jade/assignees{/user}","branches_url":"https://api.github.com/repos/superboum/koa-jade/branches{/branch}","tags_url":"https://api.github.com/repos/superboum/koa-jade/tags","blobs_url":"https://api.github.com/repos/superboum/koa-jade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superboum/koa-jade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superboum/koa-jade/git/refs{/sha}","trees_url":"https://api.github.com/repos/superboum/koa-jade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superboum/koa-jade/statuses/{sha}","languages_url":"https://api.github.com/repos/superboum/koa-jade/languages","stargazers_url":"https://api.github.com/repos/superboum/koa-jade/stargazers","contributors_url":"https://api.github.com/repos/superboum/koa-jade/contributors","subscribers_url":"https://api.github.com/repos/superboum/koa-jade/subscribers","subscription_url":"https://api.github.com/repos/superboum/koa-jade/subscription","commits_url":"https://api.github.com/repos/superboum/koa-jade/commits{/sha}","git_commits_url":"https://api.github.com/repos/superboum/koa-jade/git/commits{/sha}","comments_url":"https://api.github.com/repos/superboum/koa-jade/comments{/number}","issue_comment_url":"https://api.github.com/repos/superboum/koa-jade/issues/comments{/number}","contents_url":"https://api.github.com/repos/superboum/koa-jade/contents/{+path}","compare_url":"https://api.github.com/repos/superboum/koa-jade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superboum/koa-jade/merges","archive_url":"https://api.github.com/repos/superboum/koa-jade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superboum/koa-jade/downloads","issues_url":"https://api.github.com/repos/superboum/koa-jade/issues{/number}","pulls_url":"https://api.github.com/repos/superboum/koa-jade/pulls{/number}","milestones_url":"https://api.github.com/repos/superboum/koa-jade/milestones{/number}","notifications_url":"https://api.github.com/repos/superboum/koa-jade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superboum/koa-jade/labels{/name}","releases_url":"https://api.github.com/repos/superboum/koa-jade/releases{/id}","created_at":"2015-06-17T14:52:22Z","updated_at":"2015-06-17T14:52:23Z","pushed_at":"2015-06-17T15:25:52Z","git_url":"git://github.com/superboum/koa-jade.git","ssh_url":"git@github.com:superboum/koa-jade.git","clone_url":"https://github.com/superboum/koa-jade.git","svn_url":"https://github.com/superboum/koa-jade","homepage":null,"size":108,"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":"chrisyip:master","ref":"master","sha":"2e45ec1af5190882678d6c0bb4ec1073709b763f","user":{"login":"chrisyip","id":189559,"avatar_url":"https://avatars.githubusercontent.com/u/189559?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisyip","html_url":"https://github.com/chrisyip","followers_url":"https://api.github.com/users/chrisyip/followers","following_url":"https://api.github.com/users/chrisyip/following{/other_user}","gists_url":"https://api.github.com/users/chrisyip/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisyip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisyip/subscriptions","organizations_url":"https://api.github.com/users/chrisyip/orgs","repos_url":"https://api.github.com/users/chrisyip/repos","events_url":"https://api.github.com/users/chrisyip/events{/privacy}","received_events_url":"https://api.github.com/users/chrisyip/received_events","type":"User","site_admin":false},"repo":{"id":20380008,"name":"koa-jade","full_name":"chrisyip/koa-jade","owner":{"login":"chrisyip","id":189559,"avatar_url":"https://avatars.githubusercontent.com/u/189559?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisyip","html_url":"https://github.com/chrisyip","followers_url":"https://api.github.com/users/chrisyip/followers","following_url":"https://api.github.com/users/chrisyip/following{/other_user}","gists_url":"https://api.github.com/users/chrisyip/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisyip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisyip/subscriptions","organizations_url":"https://api.github.com/users/chrisyip/orgs","repos_url":"https://api.github.com/users/chrisyip/repos","events_url":"https://api.github.com/users/chrisyip/events{/privacy}","received_events_url":"https://api.github.com/users/chrisyip/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisyip/koa-jade","description":"A Jade middleware for Koa","fork":false,"url":"https://api.github.com/repos/chrisyip/koa-jade","forks_url":"https://api.github.com/repos/chrisyip/koa-jade/forks","keys_url":"https://api.github.com/repos/chrisyip/koa-jade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisyip/koa-jade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisyip/koa-jade/teams","hooks_url":"https://api.github.com/repos/chrisyip/koa-jade/hooks","issue_events_url":"https://api.github.com/repos/chrisyip/koa-jade/issues/events{/number}","events_url":"https://api.github.com/repos/chrisyip/koa-jade/events","assignees_url":"https://api.github.com/repos/chrisyip/koa-jade/assignees{/user}","branches_url":"https://api.github.com/repos/chrisyip/koa-jade/branches{/branch}","tags_url":"https://api.github.com/repos/chrisyip/koa-jade/tags","blobs_url":"https://api.github.com/repos/chrisyip/koa-jade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisyip/koa-jade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisyip/koa-jade/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisyip/koa-jade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisyip/koa-jade/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisyip/koa-jade/languages","stargazers_url":"https://api.github.com/repos/chrisyip/koa-jade/stargazers","contributors_url":"https://api.github.com/repos/chrisyip/koa-jade/contributors","subscribers_url":"https://api.github.com/repos/chrisyip/koa-jade/subscribers","subscription_url":"https://api.github.com/repos/chrisyip/koa-jade/subscription","commits_url":"https://api.github.com/repos/chrisyip/koa-jade/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisyip/koa-jade/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisyip/koa-jade/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisyip/koa-jade/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisyip/koa-jade/contents/{+path}","compare_url":"https://api.github.com/repos/chrisyip/koa-jade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisyip/koa-jade/merges","archive_url":"https://api.github.com/repos/chrisyip/koa-jade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisyip/koa-jade/downloads","issues_url":"https://api.github.com/repos/chrisyip/koa-jade/issues{/number}","pulls_url":"https://api.github.com/repos/chrisyip/koa-jade/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisyip/koa-jade/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisyip/koa-jade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisyip/koa-jade/labels{/name}","releases_url":"https://api.github.com/repos/chrisyip/koa-jade/releases{/id}","created_at":"2014-06-01T15:29:13Z","updated_at":"2015-06-17T15:26:59Z","pushed_at":"2015-06-17T15:32:40Z","git_url":"git://github.com/chrisyip/koa-jade.git","ssh_url":"git@github.com:chrisyip/koa-jade.git","clone_url":"https://github.com/chrisyip/koa-jade.git","svn_url":"https://github.com/chrisyip/koa-jade","homepage":null,"size":317,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11"},"html":{"href":"https://github.com/chrisyip/koa-jade/pull/11"},"issue":{"href":"https://api.github.com/repos/chrisyip/koa-jade/issues/11"},"comments":{"href":"https://api.github.com/repos/chrisyip/koa-jade/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/chrisyip/koa-jade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrisyip/koa-jade/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/chrisyip/koa-jade/statuses/854fdee1b391428e0aa06a5a70b074f4fa85b3dd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chrisyip","id":189559,"avatar_url":"https://avatars.githubusercontent.com/u/189559?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisyip","html_url":"https://github.com/chrisyip","followers_url":"https://api.github.com/users/chrisyip/followers","following_url":"https://api.github.com/users/chrisyip/following{/other_user}","gists_url":"https://api.github.com/users/chrisyip/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisyip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisyip/subscriptions","organizations_url":"https://api.github.com/users/chrisyip/orgs","repos_url":"https://api.github.com/users/chrisyip/repos","events_url":"https://api.github.com/users/chrisyip/events{/privacy}","received_events_url":"https://api.github.com/users/chrisyip/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"commits":2,"additions":1,"deletions":1,"changed_files":1}}