{"action":"created","comment":{"url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/comments/232986969","pull_request_review_id":174298615,"id":232986969,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjk4Njk2OQ==","diff_hunk":"@@ -0,0 +1,30 @@\n+import * as consts from '../constants'\n+import { normalizedArticles } from '../fixtures'\n+\n+export default (commentListState = null, action) => {\n+  if (action.type === consts.SHOW_COMMENTS) {\n+    const { articleId } = action.payload\n+    const article = normalizedArticles.find(\n+      (article) => article.id === articleId\n+    )\n+    if (article) {\n+      return article.comments\n+    }\n+    return null\n+  }\n+\n+  if (action.type === consts.HIDE_COMMENTS) {\n+    return null\n+  }\n+\n+  if (action.type === consts.ADD_COMMENT) {\n+    const { articleId, id } = action.payload\n+    const article = normalizedArticles.find(\n+      (article) => article.id === articleId\n+    )\n+    article.comments.push(id)","path":"src/reducer/comment-list.js","position":25,"original_position":25,"commit_id":"3d15024ef2d7ebd6ade63dc636bcc65d802309f9","original_commit_id":"3d15024ef2d7ebd6ade63dc636bcc65d802309f9","user":{"login":"Ta4i","id":634113,"node_id":"MDQ6VXNlcjYzNDExMw==","avatar_url":"https://avatars2.githubusercontent.com/u/634113?v=4","gravatar_id":"","url":"https://api.github.com/users/Ta4i","html_url":"https://github.com/Ta4i","followers_url":"https://api.github.com/users/Ta4i/followers","following_url":"https://api.github.com/users/Ta4i/following{/other_user}","gists_url":"https://api.github.com/users/Ta4i/gists{/gist_id}","starred_url":"https://api.github.com/users/Ta4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ta4i/subscriptions","organizations_url":"https://api.github.com/users/Ta4i/orgs","repos_url":"https://api.github.com/users/Ta4i/repos","events_url":"https://api.github.com/users/Ta4i/events{/privacy}","received_events_url":"https://api.github.com/users/Ta4i/received_events","type":"User","site_admin":false},"body":"А-А-А-А! Мутация! Еще и не своего стейта! Так нельзя :)\r\n","created_at":"2018-11-13T10:51:28Z","updated_at":"2018-11-13T10:55:26Z","html_url":"https://github.com/Ta4i/react-2018-10-23/pull/41#discussion_r232986969","pull_request_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/comments/232986969"},"html":{"href":"https://github.com/Ta4i/react-2018-10-23/pull/41#discussion_r232986969"},"pull_request":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41","id":230212234,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMjEyMjM0","html_url":"https://github.com/Ta4i/react-2018-10-23/pull/41","diff_url":"https://github.com/Ta4i/react-2018-10-23/pull/41.diff","patch_url":"https://github.com/Ta4i/react-2018-10-23/pull/41.patch","issue_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/41","number":41,"state":"open","locked":false,"title":"HT4","user":{"login":"vlonchuk","id":39556558,"node_id":"MDQ6VXNlcjM5NTU2NTU4","avatar_url":"https://avatars0.githubusercontent.com/u/39556558?v=4","gravatar_id":"","url":"https://api.github.com/users/vlonchuk","html_url":"https://github.com/vlonchuk","followers_url":"https://api.github.com/users/vlonchuk/followers","following_url":"https://api.github.com/users/vlonchuk/following{/other_user}","gists_url":"https://api.github.com/users/vlonchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/vlonchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlonchuk/subscriptions","organizations_url":"https://api.github.com/users/vlonchuk/orgs","repos_url":"https://api.github.com/users/vlonchuk/repos","events_url":"https://api.github.com/users/vlonchuk/events{/privacy}","received_events_url":"https://api.github.com/users/vlonchuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-12T17:26:10Z","updated_at":"2018-11-13T10:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66882dac9a34c56d0e91c1fb94636a5a0d2b28f1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41/commits","review_comments_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41/comments","review_comment_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/41/comments","statuses_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/statuses/3d15024ef2d7ebd6ade63dc636bcc65d802309f9","head":{"label":"vlonchuk:HT4","ref":"HT4","sha":"3d15024ef2d7ebd6ade63dc636bcc65d802309f9","user":{"login":"vlonchuk","id":39556558,"node_id":"MDQ6VXNlcjM5NTU2NTU4","avatar_url":"https://avatars0.githubusercontent.com/u/39556558?v=4","gravatar_id":"","url":"https://api.github.com/users/vlonchuk","html_url":"https://github.com/vlonchuk","followers_url":"https://api.github.com/users/vlonchuk/followers","following_url":"https://api.github.com/users/vlonchuk/following{/other_user}","gists_url":"https://api.github.com/users/vlonchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/vlonchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlonchuk/subscriptions","organizations_url":"https://api.github.com/users/vlonchuk/orgs","repos_url":"https://api.github.com/users/vlonchuk/repos","events_url":"https://api.github.com/users/vlonchuk/events{/privacy}","received_events_url":"https://api.github.com/users/vlonchuk/received_events","type":"User","site_admin":false},"repo":{"id":155085487,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUwODU0ODc=","name":"react-2018-10-23","full_name":"vlonchuk/react-2018-10-23","private":false,"owner":{"login":"vlonchuk","id":39556558,"node_id":"MDQ6VXNlcjM5NTU2NTU4","avatar_url":"https://avatars0.githubusercontent.com/u/39556558?v=4","gravatar_id":"","url":"https://api.github.com/users/vlonchuk","html_url":"https://github.com/vlonchuk","followers_url":"https://api.github.com/users/vlonchuk/followers","following_url":"https://api.github.com/users/vlonchuk/following{/other_user}","gists_url":"https://api.github.com/users/vlonchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/vlonchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlonchuk/subscriptions","organizations_url":"https://api.github.com/users/vlonchuk/orgs","repos_url":"https://api.github.com/users/vlonchuk/repos","events_url":"https://api.github.com/users/vlonchuk/events{/privacy}","received_events_url":"https://api.github.com/users/vlonchuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vlonchuk/react-2018-10-23","description":null,"fork":true,"url":"https://api.github.com/repos/vlonchuk/react-2018-10-23","forks_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/forks","keys_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/teams","hooks_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/hooks","issue_events_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/issues/events{/number}","events_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/events","assignees_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/assignees{/user}","branches_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/branches{/branch}","tags_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/tags","blobs_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/git/refs{/sha}","trees_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/statuses/{sha}","languages_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/languages","stargazers_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/stargazers","contributors_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/contributors","subscribers_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/subscribers","subscription_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/subscription","commits_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/commits{/sha}","git_commits_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/git/commits{/sha}","comments_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/comments{/number}","issue_comment_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/issues/comments{/number}","contents_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/contents/{+path}","compare_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/merges","archive_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/downloads","issues_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/issues{/number}","pulls_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/pulls{/number}","milestones_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/milestones{/number}","notifications_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/labels{/name}","releases_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/releases{/id}","deployments_url":"https://api.github.com/repos/vlonchuk/react-2018-10-23/deployments","created_at":"2018-10-28T15:25:17Z","updated_at":"2018-10-28T21:37:24Z","pushed_at":"2018-11-11T20:10:49Z","git_url":"git://github.com/vlonchuk/react-2018-10-23.git","ssh_url":"git@github.com:vlonchuk/react-2018-10-23.git","clone_url":"https://github.com/vlonchuk/react-2018-10-23.git","svn_url":"https://github.com/vlonchuk/react-2018-10-23","homepage":null,"size":373,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ta4i:master","ref":"master","sha":"ee9d64f4ebf7c188ffabecffc46d2b9a6e459ba2","user":{"login":"Ta4i","id":634113,"node_id":"MDQ6VXNlcjYzNDExMw==","avatar_url":"https://avatars2.githubusercontent.com/u/634113?v=4","gravatar_id":"","url":"https://api.github.com/users/Ta4i","html_url":"https://github.com/Ta4i","followers_url":"https://api.github.com/users/Ta4i/followers","following_url":"https://api.github.com/users/Ta4i/following{/other_user}","gists_url":"https://api.github.com/users/Ta4i/gists{/gist_id}","starred_url":"https://api.github.com/users/Ta4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ta4i/subscriptions","organizations_url":"https://api.github.com/users/Ta4i/orgs","repos_url":"https://api.github.com/users/Ta4i/repos","events_url":"https://api.github.com/users/Ta4i/events{/privacy}","received_events_url":"https://api.github.com/users/Ta4i/received_events","type":"User","site_admin":false},"repo":{"id":154337826,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQzMzc4MjY=","name":"react-2018-10-23","full_name":"Ta4i/react-2018-10-23","private":false,"owner":{"login":"Ta4i","id":634113,"node_id":"MDQ6VXNlcjYzNDExMw==","avatar_url":"https://avatars2.githubusercontent.com/u/634113?v=4","gravatar_id":"","url":"https://api.github.com/users/Ta4i","html_url":"https://github.com/Ta4i","followers_url":"https://api.github.com/users/Ta4i/followers","following_url":"https://api.github.com/users/Ta4i/following{/other_user}","gists_url":"https://api.github.com/users/Ta4i/gists{/gist_id}","starred_url":"https://api.github.com/users/Ta4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ta4i/subscriptions","organizations_url":"https://api.github.com/users/Ta4i/orgs","repos_url":"https://api.github.com/users/Ta4i/repos","events_url":"https://api.github.com/users/Ta4i/events{/privacy}","received_events_url":"https://api.github.com/users/Ta4i/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Ta4i/react-2018-10-23","description":null,"fork":false,"url":"https://api.github.com/repos/Ta4i/react-2018-10-23","forks_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/forks","keys_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/teams","hooks_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/hooks","issue_events_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/events{/number}","events_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/events","assignees_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/assignees{/user}","branches_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/branches{/branch}","tags_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/tags","blobs_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/statuses/{sha}","languages_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/languages","stargazers_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/stargazers","contributors_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/contributors","subscribers_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/subscribers","subscription_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/subscription","commits_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/contents/{+path}","compare_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/merges","archive_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/downloads","issues_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues{/number}","pulls_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls{/number}","milestones_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/milestones{/number}","notifications_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/labels{/name}","releases_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/releases{/id}","deployments_url":"https://api.github.com/repos/Ta4i/react-2018-10-23/deployments","created_at":"2018-10-23T13:59:02Z","updated_at":"2018-11-07T08:41:20Z","pushed_at":"2018-11-13T08:33:48Z","git_url":"git://github.com/Ta4i/react-2018-10-23.git","ssh_url":"git@github.com:Ta4i/react-2018-10-23.git","clone_url":"https://github.com/Ta4i/react-2018-10-23.git","svn_url":"https://github.com/Ta4i/react-2018-10-23","homepage":null,"size":296,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":24,"open_issues":38,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41"},"html":{"href":"https://github.com/Ta4i/react-2018-10-23/pull/41"},"issue":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/41"},"comments":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/Ta4i/react-2018-10-23/statuses/3d15024ef2d7ebd6ade63dc636bcc65d802309f9"}},"author_association":"NONE"}}
{"actor":{"display_login":"Ta4i"}}