{"action":"created","comment":{"url":"https://api.github.com/repos/reddit/node-api-client/pulls/comments/82038107","pull_request_review_id":2973433,"id":82038107,"diff_hunk":"@@ -11,7 +11,16 @@ const TYPE_MAP = {\n \n const parseGetBody = (res, apiResponse, apiRequest) => {\n   const { body } = res;\n-  body.data.children.forEach(c => apiResponse.addResult(TYPE_MAP[c.kind].fromJSON(c.data)));\n+  body.data.children.forEach(c => {\n+    const replies = [];\n+    c.data.replies && c.data.replies.data.children.forEach(r => {","path":"src/apis/MessagesEndpoint.es6.js","position":7,"original_position":7,"commit_id":"85e045b0622de6bac4b9fda79c9f25c53db817cb","original_commit_id":"85e045b0622de6bac4b9fda79c9f25c53db817cb","user":{"login":"phil303","id":787203,"avatar_url":"https://avatars.githubusercontent.com/u/787203?v=3","gravatar_id":"","url":"https://api.github.com/users/phil303","html_url":"https://github.com/phil303","followers_url":"https://api.github.com/users/phil303/followers","following_url":"https://api.github.com/users/phil303/following{/other_user}","gists_url":"https://api.github.com/users/phil303/gists{/gist_id}","starred_url":"https://api.github.com/users/phil303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil303/subscriptions","organizations_url":"https://api.github.com/users/phil303/orgs","repos_url":"https://api.github.com/users/phil303/repos","events_url":"https://api.github.com/users/phil303/events{/privacy}","received_events_url":"https://api.github.com/users/phil303/received_events","type":"User","site_admin":false},"body":"yea actually. that's a good point that I didn't really notice before. Maybe we shouldn't do that?","created_at":"2016-10-05T18:24:26Z","updated_at":"2016-10-05T18:24:26Z","html_url":"https://github.com/reddit/node-api-client/pull/163#discussion_r82038107","pull_request_url":"https://api.github.com/repos/reddit/node-api-client/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/comments/82038107"},"html":{"href":"https://github.com/reddit/node-api-client/pull/163#discussion_r82038107"},"pull_request":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/reddit/node-api-client/pulls/163","id":88001845,"html_url":"https://github.com/reddit/node-api-client/pull/163","diff_url":"https://github.com/reddit/node-api-client/pull/163.diff","patch_url":"https://github.com/reddit/node-api-client/pull/163.patch","issue_url":"https://api.github.com/repos/reddit/node-api-client/issues/163","number":163,"state":"open","locked":false,"title":"Message GET updates - replies and threads","user":{"login":"uzi","id":25475,"avatar_url":"https://avatars.githubusercontent.com/u/25475?v=3","gravatar_id":"","url":"https://api.github.com/users/uzi","html_url":"https://github.com/uzi","followers_url":"https://api.github.com/users/uzi/followers","following_url":"https://api.github.com/users/uzi/following{/other_user}","gists_url":"https://api.github.com/users/uzi/gists{/gist_id}","starred_url":"https://api.github.com/users/uzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzi/subscriptions","organizations_url":"https://api.github.com/users/uzi/orgs","repos_url":"https://api.github.com/users/uzi/repos","events_url":"https://api.github.com/users/uzi/events{/privacy}","received_events_url":"https://api.github.com/users/uzi/received_events","type":"User","site_admin":false},"body":"Store all of the replies when we get all of the\r\nthreads and add support for fetching just one\r\nmessage thread.\r\n\r\n👓  @schwers @phil303 ","created_at":"2016-10-05T01:11:11Z","updated_at":"2016-10-05T18:24:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e42255854e5019be147f55d86a77c163b9fac833","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reddit/node-api-client/pulls/163/commits","review_comments_url":"https://api.github.com/repos/reddit/node-api-client/pulls/163/comments","review_comment_url":"https://api.github.com/repos/reddit/node-api-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reddit/node-api-client/issues/163/comments","statuses_url":"https://api.github.com/repos/reddit/node-api-client/statuses/85e045b0622de6bac4b9fda79c9f25c53db817cb","head":{"label":"uzi:api_message_threads","ref":"api_message_threads","sha":"85e045b0622de6bac4b9fda79c9f25c53db817cb","user":{"login":"uzi","id":25475,"avatar_url":"https://avatars.githubusercontent.com/u/25475?v=3","gravatar_id":"","url":"https://api.github.com/users/uzi","html_url":"https://github.com/uzi","followers_url":"https://api.github.com/users/uzi/followers","following_url":"https://api.github.com/users/uzi/following{/other_user}","gists_url":"https://api.github.com/users/uzi/gists{/gist_id}","starred_url":"https://api.github.com/users/uzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzi/subscriptions","organizations_url":"https://api.github.com/users/uzi/orgs","repos_url":"https://api.github.com/users/uzi/repos","events_url":"https://api.github.com/users/uzi/events{/privacy}","received_events_url":"https://api.github.com/users/uzi/received_events","type":"User","site_admin":false},"repo":{"id":60736466,"name":"node-api-client","full_name":"uzi/node-api-client","owner":{"login":"uzi","id":25475,"avatar_url":"https://avatars.githubusercontent.com/u/25475?v=3","gravatar_id":"","url":"https://api.github.com/users/uzi","html_url":"https://github.com/uzi","followers_url":"https://api.github.com/users/uzi/followers","following_url":"https://api.github.com/users/uzi/following{/other_user}","gists_url":"https://api.github.com/users/uzi/gists{/gist_id}","starred_url":"https://api.github.com/users/uzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzi/subscriptions","organizations_url":"https://api.github.com/users/uzi/orgs","repos_url":"https://api.github.com/users/uzi/repos","events_url":"https://api.github.com/users/uzi/events{/privacy}","received_events_url":"https://api.github.com/users/uzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uzi/node-api-client","description":"","fork":true,"url":"https://api.github.com/repos/uzi/node-api-client","forks_url":"https://api.github.com/repos/uzi/node-api-client/forks","keys_url":"https://api.github.com/repos/uzi/node-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uzi/node-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uzi/node-api-client/teams","hooks_url":"https://api.github.com/repos/uzi/node-api-client/hooks","issue_events_url":"https://api.github.com/repos/uzi/node-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/uzi/node-api-client/events","assignees_url":"https://api.github.com/repos/uzi/node-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/uzi/node-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/uzi/node-api-client/tags","blobs_url":"https://api.github.com/repos/uzi/node-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uzi/node-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uzi/node-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/uzi/node-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uzi/node-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/uzi/node-api-client/languages","stargazers_url":"https://api.github.com/repos/uzi/node-api-client/stargazers","contributors_url":"https://api.github.com/repos/uzi/node-api-client/contributors","subscribers_url":"https://api.github.com/repos/uzi/node-api-client/subscribers","subscription_url":"https://api.github.com/repos/uzi/node-api-client/subscription","commits_url":"https://api.github.com/repos/uzi/node-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/uzi/node-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/uzi/node-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/uzi/node-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/uzi/node-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/uzi/node-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uzi/node-api-client/merges","archive_url":"https://api.github.com/repos/uzi/node-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uzi/node-api-client/downloads","issues_url":"https://api.github.com/repos/uzi/node-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/uzi/node-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/uzi/node-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/uzi/node-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uzi/node-api-client/labels{/name}","releases_url":"https://api.github.com/repos/uzi/node-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/uzi/node-api-client/deployments","created_at":"2016-06-08T23:01:37Z","updated_at":"2016-06-08T23:01:38Z","pushed_at":"2016-10-05T18:15:09Z","git_url":"git://github.com/uzi/node-api-client.git","ssh_url":"git@github.com:uzi/node-api-client.git","clone_url":"https://github.com/uzi/node-api-client.git","svn_url":"https://github.com/uzi/node-api-client","homepage":null,"size":987,"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":"reddit:3X","ref":"3X","sha":"408f6732ec99ac45ccb002fdfab379f48e032db2","user":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"repo":{"id":27147713,"name":"node-api-client","full_name":"reddit/node-api-client","owner":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reddit/node-api-client","description":"","fork":false,"url":"https://api.github.com/repos/reddit/node-api-client","forks_url":"https://api.github.com/repos/reddit/node-api-client/forks","keys_url":"https://api.github.com/repos/reddit/node-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reddit/node-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reddit/node-api-client/teams","hooks_url":"https://api.github.com/repos/reddit/node-api-client/hooks","issue_events_url":"https://api.github.com/repos/reddit/node-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/reddit/node-api-client/events","assignees_url":"https://api.github.com/repos/reddit/node-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/reddit/node-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/reddit/node-api-client/tags","blobs_url":"https://api.github.com/repos/reddit/node-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reddit/node-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reddit/node-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/reddit/node-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reddit/node-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/reddit/node-api-client/languages","stargazers_url":"https://api.github.com/repos/reddit/node-api-client/stargazers","contributors_url":"https://api.github.com/repos/reddit/node-api-client/contributors","subscribers_url":"https://api.github.com/repos/reddit/node-api-client/subscribers","subscription_url":"https://api.github.com/repos/reddit/node-api-client/subscription","commits_url":"https://api.github.com/repos/reddit/node-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/reddit/node-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/reddit/node-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/reddit/node-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/reddit/node-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/reddit/node-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reddit/node-api-client/merges","archive_url":"https://api.github.com/repos/reddit/node-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reddit/node-api-client/downloads","issues_url":"https://api.github.com/repos/reddit/node-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/reddit/node-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/reddit/node-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/reddit/node-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reddit/node-api-client/labels{/name}","releases_url":"https://api.github.com/repos/reddit/node-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/reddit/node-api-client/deployments","created_at":"2014-11-25T21:51:35Z","updated_at":"2016-09-30T11:09:24Z","pushed_at":"2016-10-05T18:15:10Z","git_url":"git://github.com/reddit/node-api-client.git","ssh_url":"git@github.com:reddit/node-api-client.git","clone_url":"https://github.com/reddit/node-api-client.git","svn_url":"https://github.com/reddit/node-api-client","homepage":null,"size":1069,"stargazers_count":32,"watchers_count":32,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":6,"forks":21,"open_issues":6,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/163"},"html":{"href":"https://github.com/reddit/node-api-client/pull/163"},"issue":{"href":"https://api.github.com/repos/reddit/node-api-client/issues/163"},"comments":{"href":"https://api.github.com/repos/reddit/node-api-client/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/163/comments"},"review_comment":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reddit/node-api-client/pulls/163/commits"},"statuses":{"href":"https://api.github.com/repos/reddit/node-api-client/statuses/85e045b0622de6bac4b9fda79c9f25c53db817cb"}}}}
{"actor":{"display_login":"phil303"}}