{"action":"created","comment":{"url":"https://api.github.com/repos/water23/chat_app/pulls/comments/74179160","id":74179160,"diff_hunk":"@@ -36,7 +36,7 @@ class ReplyBox extends React.Component {\n   }\n \n   handleKeyDown(e) {\n-    if (e.keyCode === 13) {\n+    if (e.keyCode === 13 && this.state.value !== '') {\n       MessagesAction.saveMessage(this.state.value, this.state.toUserId, this.state.userId, this.state.image)","path":"app/assets/javascripts/src/components/messages/replyBox.js","position":15,"original_position":15,"commit_id":"35d4209f6aaa3265ce113c62e8a6ebcbf233ae13","original_commit_id":"35d4209f6aaa3265ce113c62e8a6ebcbf233ae13","user":{"login":"muraikenta","id":6408742,"avatar_url":"https://avatars.githubusercontent.com/u/6408742?v=3","gravatar_id":"","url":"https://api.github.com/users/muraikenta","html_url":"https://github.com/muraikenta","followers_url":"https://api.github.com/users/muraikenta/followers","following_url":"https://api.github.com/users/muraikenta/following{/other_user}","gists_url":"https://api.github.com/users/muraikenta/gists{/gist_id}","starred_url":"https://api.github.com/users/muraikenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muraikenta/subscriptions","organizations_url":"https://api.github.com/users/muraikenta/orgs","repos_url":"https://api.github.com/users/muraikenta/repos","events_url":"https://api.github.com/users/muraikenta/events{/privacy}","received_events_url":"https://api.github.com/users/muraikenta/received_events","type":"User","site_admin":false},"body":"こういう時はメソッドの最初に\r\nconst {\r\n  value,\r\n  toUserId,\r\n  userId,\r\n  image,\r\n} = this.state\r\nをしとくとよい。this.stateがかなり冗長になってしまうので。","created_at":"2016-08-10T03:00:09Z","updated_at":"2016-08-10T03:00:09Z","html_url":"https://github.com/water23/chat_app/pull/7#discussion_r74179160","pull_request_url":"https://api.github.com/repos/water23/chat_app/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/water23/chat_app/pulls/comments/74179160"},"html":{"href":"https://github.com/water23/chat_app/pull/7#discussion_r74179160"},"pull_request":{"href":"https://api.github.com/repos/water23/chat_app/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/water23/chat_app/pulls/7","id":80586235,"html_url":"https://github.com/water23/chat_app/pull/7","diff_url":"https://github.com/water23/chat_app/pull/7.diff","patch_url":"https://github.com/water23/chat_app/pull/7.patch","issue_url":"https://api.github.com/repos/water23/chat_app/issues/7","number":7,"state":"open","locked":false,"title":"Fix chat","user":{"login":"water23","id":11143216,"avatar_url":"https://avatars.githubusercontent.com/u/11143216?v=3","gravatar_id":"","url":"https://api.github.com/users/water23","html_url":"https://github.com/water23","followers_url":"https://api.github.com/users/water23/followers","following_url":"https://api.github.com/users/water23/following{/other_user}","gists_url":"https://api.github.com/users/water23/gists{/gist_id}","starred_url":"https://api.github.com/users/water23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water23/subscriptions","organizations_url":"https://api.github.com/users/water23/orgs","repos_url":"https://api.github.com/users/water23/repos","events_url":"https://api.github.com/users/water23/events{/privacy}","received_events_url":"https://api.github.com/users/water23/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-09T09:13:29Z","updated_at":"2016-08-10T03:00:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54ca7f4231f96c9b155e2d154691a31d85b58955","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/water23/chat_app/pulls/7/commits","review_comments_url":"https://api.github.com/repos/water23/chat_app/pulls/7/comments","review_comment_url":"https://api.github.com/repos/water23/chat_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/water23/chat_app/issues/7/comments","statuses_url":"https://api.github.com/repos/water23/chat_app/statuses/35d4209f6aaa3265ce113c62e8a6ebcbf233ae13","head":{"label":"water23:fix_chat","ref":"fix_chat","sha":"35d4209f6aaa3265ce113c62e8a6ebcbf233ae13","user":{"login":"water23","id":11143216,"avatar_url":"https://avatars.githubusercontent.com/u/11143216?v=3","gravatar_id":"","url":"https://api.github.com/users/water23","html_url":"https://github.com/water23","followers_url":"https://api.github.com/users/water23/followers","following_url":"https://api.github.com/users/water23/following{/other_user}","gists_url":"https://api.github.com/users/water23/gists{/gist_id}","starred_url":"https://api.github.com/users/water23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water23/subscriptions","organizations_url":"https://api.github.com/users/water23/orgs","repos_url":"https://api.github.com/users/water23/repos","events_url":"https://api.github.com/users/water23/events{/privacy}","received_events_url":"https://api.github.com/users/water23/received_events","type":"User","site_admin":false},"repo":{"id":60885574,"name":"chat_app","full_name":"water23/chat_app","owner":{"login":"water23","id":11143216,"avatar_url":"https://avatars.githubusercontent.com/u/11143216?v=3","gravatar_id":"","url":"https://api.github.com/users/water23","html_url":"https://github.com/water23","followers_url":"https://api.github.com/users/water23/followers","following_url":"https://api.github.com/users/water23/following{/other_user}","gists_url":"https://api.github.com/users/water23/gists{/gist_id}","starred_url":"https://api.github.com/users/water23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water23/subscriptions","organizations_url":"https://api.github.com/users/water23/orgs","repos_url":"https://api.github.com/users/water23/repos","events_url":"https://api.github.com/users/water23/events{/privacy}","received_events_url":"https://api.github.com/users/water23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/water23/chat_app","description":"","fork":false,"url":"https://api.github.com/repos/water23/chat_app","forks_url":"https://api.github.com/repos/water23/chat_app/forks","keys_url":"https://api.github.com/repos/water23/chat_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/water23/chat_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/water23/chat_app/teams","hooks_url":"https://api.github.com/repos/water23/chat_app/hooks","issue_events_url":"https://api.github.com/repos/water23/chat_app/issues/events{/number}","events_url":"https://api.github.com/repos/water23/chat_app/events","assignees_url":"https://api.github.com/repos/water23/chat_app/assignees{/user}","branches_url":"https://api.github.com/repos/water23/chat_app/branches{/branch}","tags_url":"https://api.github.com/repos/water23/chat_app/tags","blobs_url":"https://api.github.com/repos/water23/chat_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/water23/chat_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/water23/chat_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/water23/chat_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/water23/chat_app/statuses/{sha}","languages_url":"https://api.github.com/repos/water23/chat_app/languages","stargazers_url":"https://api.github.com/repos/water23/chat_app/stargazers","contributors_url":"https://api.github.com/repos/water23/chat_app/contributors","subscribers_url":"https://api.github.com/repos/water23/chat_app/subscribers","subscription_url":"https://api.github.com/repos/water23/chat_app/subscription","commits_url":"https://api.github.com/repos/water23/chat_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/water23/chat_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/water23/chat_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/water23/chat_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/water23/chat_app/contents/{+path}","compare_url":"https://api.github.com/repos/water23/chat_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/water23/chat_app/merges","archive_url":"https://api.github.com/repos/water23/chat_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/water23/chat_app/downloads","issues_url":"https://api.github.com/repos/water23/chat_app/issues{/number}","pulls_url":"https://api.github.com/repos/water23/chat_app/pulls{/number}","milestones_url":"https://api.github.com/repos/water23/chat_app/milestones{/number}","notifications_url":"https://api.github.com/repos/water23/chat_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/water23/chat_app/labels{/name}","releases_url":"https://api.github.com/repos/water23/chat_app/releases{/id}","deployments_url":"https://api.github.com/repos/water23/chat_app/deployments","created_at":"2016-06-11T01:23:37Z","updated_at":"2016-07-28T08:44:23Z","pushed_at":"2016-08-10T02:06:41Z","git_url":"git://github.com/water23/chat_app.git","ssh_url":"git@github.com:water23/chat_app.git","clone_url":"https://github.com/water23/chat_app.git","svn_url":"https://github.com/water23/chat_app","homepage":null,"size":23347,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"water23:master","ref":"master","sha":"2542816c02200324b67ec3623ac88366d5537c8a","user":{"login":"water23","id":11143216,"avatar_url":"https://avatars.githubusercontent.com/u/11143216?v=3","gravatar_id":"","url":"https://api.github.com/users/water23","html_url":"https://github.com/water23","followers_url":"https://api.github.com/users/water23/followers","following_url":"https://api.github.com/users/water23/following{/other_user}","gists_url":"https://api.github.com/users/water23/gists{/gist_id}","starred_url":"https://api.github.com/users/water23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water23/subscriptions","organizations_url":"https://api.github.com/users/water23/orgs","repos_url":"https://api.github.com/users/water23/repos","events_url":"https://api.github.com/users/water23/events{/privacy}","received_events_url":"https://api.github.com/users/water23/received_events","type":"User","site_admin":false},"repo":{"id":60885574,"name":"chat_app","full_name":"water23/chat_app","owner":{"login":"water23","id":11143216,"avatar_url":"https://avatars.githubusercontent.com/u/11143216?v=3","gravatar_id":"","url":"https://api.github.com/users/water23","html_url":"https://github.com/water23","followers_url":"https://api.github.com/users/water23/followers","following_url":"https://api.github.com/users/water23/following{/other_user}","gists_url":"https://api.github.com/users/water23/gists{/gist_id}","starred_url":"https://api.github.com/users/water23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water23/subscriptions","organizations_url":"https://api.github.com/users/water23/orgs","repos_url":"https://api.github.com/users/water23/repos","events_url":"https://api.github.com/users/water23/events{/privacy}","received_events_url":"https://api.github.com/users/water23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/water23/chat_app","description":"","fork":false,"url":"https://api.github.com/repos/water23/chat_app","forks_url":"https://api.github.com/repos/water23/chat_app/forks","keys_url":"https://api.github.com/repos/water23/chat_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/water23/chat_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/water23/chat_app/teams","hooks_url":"https://api.github.com/repos/water23/chat_app/hooks","issue_events_url":"https://api.github.com/repos/water23/chat_app/issues/events{/number}","events_url":"https://api.github.com/repos/water23/chat_app/events","assignees_url":"https://api.github.com/repos/water23/chat_app/assignees{/user}","branches_url":"https://api.github.com/repos/water23/chat_app/branches{/branch}","tags_url":"https://api.github.com/repos/water23/chat_app/tags","blobs_url":"https://api.github.com/repos/water23/chat_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/water23/chat_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/water23/chat_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/water23/chat_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/water23/chat_app/statuses/{sha}","languages_url":"https://api.github.com/repos/water23/chat_app/languages","stargazers_url":"https://api.github.com/repos/water23/chat_app/stargazers","contributors_url":"https://api.github.com/repos/water23/chat_app/contributors","subscribers_url":"https://api.github.com/repos/water23/chat_app/subscribers","subscription_url":"https://api.github.com/repos/water23/chat_app/subscription","commits_url":"https://api.github.com/repos/water23/chat_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/water23/chat_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/water23/chat_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/water23/chat_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/water23/chat_app/contents/{+path}","compare_url":"https://api.github.com/repos/water23/chat_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/water23/chat_app/merges","archive_url":"https://api.github.com/repos/water23/chat_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/water23/chat_app/downloads","issues_url":"https://api.github.com/repos/water23/chat_app/issues{/number}","pulls_url":"https://api.github.com/repos/water23/chat_app/pulls{/number}","milestones_url":"https://api.github.com/repos/water23/chat_app/milestones{/number}","notifications_url":"https://api.github.com/repos/water23/chat_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/water23/chat_app/labels{/name}","releases_url":"https://api.github.com/repos/water23/chat_app/releases{/id}","deployments_url":"https://api.github.com/repos/water23/chat_app/deployments","created_at":"2016-06-11T01:23:37Z","updated_at":"2016-07-28T08:44:23Z","pushed_at":"2016-08-10T02:06:41Z","git_url":"git://github.com/water23/chat_app.git","ssh_url":"git@github.com:water23/chat_app.git","clone_url":"https://github.com/water23/chat_app.git","svn_url":"https://github.com/water23/chat_app","homepage":null,"size":23347,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/water23/chat_app/pulls/7"},"html":{"href":"https://github.com/water23/chat_app/pull/7"},"issue":{"href":"https://api.github.com/repos/water23/chat_app/issues/7"},"comments":{"href":"https://api.github.com/repos/water23/chat_app/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/water23/chat_app/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/water23/chat_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/water23/chat_app/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/water23/chat_app/statuses/35d4209f6aaa3265ce113c62e8a6ebcbf233ae13"}}}}
{"actor":{"display_login":"muraikenta"}}