{"action":"created","comment":{"url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/comments/90840947","pull_request_review_id":11354685,"id":90840947,"diff_hunk":"@@ -1,59 +1,6 @@\n .chat\n-  .chat-side\n-    .chat-user.clearfix\n-      %h5\n-        %b\n-          =current_user.name\n-      .chat-user__actions\n-        =link_to new_chat_group_path,class: \"chat-user__action\" do\n-          %i.fa.fa-pencil-square-o\n-        = link_to edit_user_registration_path,class: \"chat-user__action\" do\n-          %i.fa.fa-cog\n-    %ul.chat-groups\n-      %li.chat-group\n-        - @chat_groups.each do |chat_group|\n-          .chat-group__link\n-            =link_to chat_group_messages_path(chat_group),class:\"chat-group__name\" do\n-              =chat_group.name\n-            .chat-group__message\n-              - if chat_group.messages.present?\n-                = chat_group.messages.first.body\n-              - else\n-                %p\n-                  まだメッセージはありません。\n+  = render \"common/side\"\n   .chat-main\n-    .chat-header.clearfix\n-      .chat-header__left\n-        %h2\n-          = @chat_group.name\n-        %p.chat-header__users\n-          Members:\n-          %span.chat-header__users\n-            - @chat_group.users.each do |user|\n-              = user.name\n-      .chat-header__right\n-        = link_to  \"Edit\",edit_chat_group_path(@chat_group),class:\"chat-header__edit-btn\" \n-           \n-    .chat-body\n-      - @chat_group.messages.each do |message|\n-        %ul.chat-message{id: message.id}\n-          %li.chat-message__header\n-            %p.chat-message__name\n-              = message.user.name\n-            %p.chat-message__time\n-              = message.created_at\n-          %li.chat-message__body\n-            = message.body\n-            - if message.image_url.present?\n-              .chat_message_image\n-                <br>\n-                = image_tag message.image,class: \"chat_img\"\n-\n-    .chat-footer\n-      .form.new-message\n-        .chat-footer-text\n-          =form_for [@chat_group,@message],class:\"chat_footer-text\" do |f|\n-            =f.text_area :body,placeholder: \"type a message\",row: \"1\"\n-            %label.chat_image.fa.fa-image\n-              =f.file_field :image,style: \"display: none;\"\n-            =f.submit value: \"Send\",class: \"chat_submit\",id: \"message_submit\"\n+    = render \"chat-header\"\n+    = render \"chat-body\"\n+    = render \"chat-footer\"","path":"app/views/messages/index.html.haml","position":63,"original_position":63,"commit_id":"45f7e4c0a9dd13fe14085ae47a6d5f30c09ccdbe","original_commit_id":"45f7e4c0a9dd13fe14085ae47a6d5f30c09ccdbe","user":{"login":"ryosukemaehira","id":13879825,"avatar_url":"https://avatars.githubusercontent.com/u/13879825?v=3","gravatar_id":"","url":"https://api.github.com/users/ryosukemaehira","html_url":"https://github.com/ryosukemaehira","followers_url":"https://api.github.com/users/ryosukemaehira/followers","following_url":"https://api.github.com/users/ryosukemaehira/following{/other_user}","gists_url":"https://api.github.com/users/ryosukemaehira/gists{/gist_id}","starred_url":"https://api.github.com/users/ryosukemaehira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryosukemaehira/subscriptions","organizations_url":"https://api.github.com/users/ryosukemaehira/orgs","repos_url":"https://api.github.com/users/ryosukemaehira/repos","events_url":"https://api.github.com/users/ryosukemaehira/events{/privacy}","received_events_url":"https://api.github.com/users/ryosukemaehira/received_events","type":"User","site_admin":false},"body":"コードの見通しが劇的に良くなりましたね！","created_at":"2016-12-05T10:49:31Z","updated_at":"2016-12-05T10:49:31Z","html_url":"https://github.com/kirinkubinagai/chat-space/pull/22#discussion_r90840947","pull_request_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/comments/90840947"},"html":{"href":"https://github.com/kirinkubinagai/chat-space/pull/22#discussion_r90840947"},"pull_request":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22","id":96495640,"html_url":"https://github.com/kirinkubinagai/chat-space/pull/22","diff_url":"https://github.com/kirinkubinagai/chat-space/pull/22.diff","patch_url":"https://github.com/kirinkubinagai/chat-space/pull/22.patch","issue_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/22","number":22,"state":"open","locked":false,"title":"Refactoring","user":{"login":"kirinkubinagai","id":20741515,"avatar_url":"https://avatars.githubusercontent.com/u/20741515?v=3","gravatar_id":"","url":"https://api.github.com/users/kirinkubinagai","html_url":"https://github.com/kirinkubinagai","followers_url":"https://api.github.com/users/kirinkubinagai/followers","following_url":"https://api.github.com/users/kirinkubinagai/following{/other_user}","gists_url":"https://api.github.com/users/kirinkubinagai/gists{/gist_id}","starred_url":"https://api.github.com/users/kirinkubinagai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirinkubinagai/subscriptions","organizations_url":"https://api.github.com/users/kirinkubinagai/orgs","repos_url":"https://api.github.com/users/kirinkubinagai/repos","events_url":"https://api.github.com/users/kirinkubinagai/events{/privacy}","received_events_url":"https://api.github.com/users/kirinkubinagai/received_events","type":"User","site_admin":false},"body":"# what\nリファクタリングしました\n# why\n管理編集しやすくするため","created_at":"2016-12-05T09:38:41Z","updated_at":"2016-12-05T10:49:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecf013a3db357ef41e80bc5aed76cc278ebff582","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22/commits","review_comments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22/comments","review_comment_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/22/comments","statuses_url":"https://api.github.com/repos/kirinkubinagai/chat-space/statuses/45f7e4c0a9dd13fe14085ae47a6d5f30c09ccdbe","head":{"label":"kirinkubinagai:refactoring","ref":"refactoring","sha":"45f7e4c0a9dd13fe14085ae47a6d5f30c09ccdbe","user":{"login":"kirinkubinagai","id":20741515,"avatar_url":"https://avatars.githubusercontent.com/u/20741515?v=3","gravatar_id":"","url":"https://api.github.com/users/kirinkubinagai","html_url":"https://github.com/kirinkubinagai","followers_url":"https://api.github.com/users/kirinkubinagai/followers","following_url":"https://api.github.com/users/kirinkubinagai/following{/other_user}","gists_url":"https://api.github.com/users/kirinkubinagai/gists{/gist_id}","starred_url":"https://api.github.com/users/kirinkubinagai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirinkubinagai/subscriptions","organizations_url":"https://api.github.com/users/kirinkubinagai/orgs","repos_url":"https://api.github.com/users/kirinkubinagai/repos","events_url":"https://api.github.com/users/kirinkubinagai/events{/privacy}","received_events_url":"https://api.github.com/users/kirinkubinagai/received_events","type":"User","site_admin":false},"repo":{"id":73478661,"name":"chat-space","full_name":"kirinkubinagai/chat-space","owner":{"login":"kirinkubinagai","id":20741515,"avatar_url":"https://avatars.githubusercontent.com/u/20741515?v=3","gravatar_id":"","url":"https://api.github.com/users/kirinkubinagai","html_url":"https://github.com/kirinkubinagai","followers_url":"https://api.github.com/users/kirinkubinagai/followers","following_url":"https://api.github.com/users/kirinkubinagai/following{/other_user}","gists_url":"https://api.github.com/users/kirinkubinagai/gists{/gist_id}","starred_url":"https://api.github.com/users/kirinkubinagai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirinkubinagai/subscriptions","organizations_url":"https://api.github.com/users/kirinkubinagai/orgs","repos_url":"https://api.github.com/users/kirinkubinagai/repos","events_url":"https://api.github.com/users/kirinkubinagai/events{/privacy}","received_events_url":"https://api.github.com/users/kirinkubinagai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirinkubinagai/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/kirinkubinagai/chat-space","forks_url":"https://api.github.com/repos/kirinkubinagai/chat-space/forks","keys_url":"https://api.github.com/repos/kirinkubinagai/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirinkubinagai/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirinkubinagai/chat-space/teams","hooks_url":"https://api.github.com/repos/kirinkubinagai/chat-space/hooks","issue_events_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/kirinkubinagai/chat-space/events","assignees_url":"https://api.github.com/repos/kirinkubinagai/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/kirinkubinagai/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/kirinkubinagai/chat-space/tags","blobs_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirinkubinagai/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/kirinkubinagai/chat-space/languages","stargazers_url":"https://api.github.com/repos/kirinkubinagai/chat-space/stargazers","contributors_url":"https://api.github.com/repos/kirinkubinagai/chat-space/contributors","subscribers_url":"https://api.github.com/repos/kirinkubinagai/chat-space/subscribers","subscription_url":"https://api.github.com/repos/kirinkubinagai/chat-space/subscription","commits_url":"https://api.github.com/repos/kirinkubinagai/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirinkubinagai/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/kirinkubinagai/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirinkubinagai/chat-space/merges","archive_url":"https://api.github.com/repos/kirinkubinagai/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirinkubinagai/chat-space/downloads","issues_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/kirinkubinagai/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/kirinkubinagai/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirinkubinagai/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/kirinkubinagai/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/deployments","created_at":"2016-11-11T13:10:28Z","updated_at":"2016-11-12T02:45:56Z","pushed_at":"2016-12-05T09:38:42Z","git_url":"git://github.com/kirinkubinagai/chat-space.git","ssh_url":"git@github.com:kirinkubinagai/chat-space.git","clone_url":"https://github.com/kirinkubinagai/chat-space.git","svn_url":"https://github.com/kirinkubinagai/chat-space","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kirinkubinagai:master","ref":"master","sha":"84155cdc7067f0d922643ac69c6adf8af17aee13","user":{"login":"kirinkubinagai","id":20741515,"avatar_url":"https://avatars.githubusercontent.com/u/20741515?v=3","gravatar_id":"","url":"https://api.github.com/users/kirinkubinagai","html_url":"https://github.com/kirinkubinagai","followers_url":"https://api.github.com/users/kirinkubinagai/followers","following_url":"https://api.github.com/users/kirinkubinagai/following{/other_user}","gists_url":"https://api.github.com/users/kirinkubinagai/gists{/gist_id}","starred_url":"https://api.github.com/users/kirinkubinagai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirinkubinagai/subscriptions","organizations_url":"https://api.github.com/users/kirinkubinagai/orgs","repos_url":"https://api.github.com/users/kirinkubinagai/repos","events_url":"https://api.github.com/users/kirinkubinagai/events{/privacy}","received_events_url":"https://api.github.com/users/kirinkubinagai/received_events","type":"User","site_admin":false},"repo":{"id":73478661,"name":"chat-space","full_name":"kirinkubinagai/chat-space","owner":{"login":"kirinkubinagai","id":20741515,"avatar_url":"https://avatars.githubusercontent.com/u/20741515?v=3","gravatar_id":"","url":"https://api.github.com/users/kirinkubinagai","html_url":"https://github.com/kirinkubinagai","followers_url":"https://api.github.com/users/kirinkubinagai/followers","following_url":"https://api.github.com/users/kirinkubinagai/following{/other_user}","gists_url":"https://api.github.com/users/kirinkubinagai/gists{/gist_id}","starred_url":"https://api.github.com/users/kirinkubinagai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirinkubinagai/subscriptions","organizations_url":"https://api.github.com/users/kirinkubinagai/orgs","repos_url":"https://api.github.com/users/kirinkubinagai/repos","events_url":"https://api.github.com/users/kirinkubinagai/events{/privacy}","received_events_url":"https://api.github.com/users/kirinkubinagai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirinkubinagai/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/kirinkubinagai/chat-space","forks_url":"https://api.github.com/repos/kirinkubinagai/chat-space/forks","keys_url":"https://api.github.com/repos/kirinkubinagai/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirinkubinagai/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirinkubinagai/chat-space/teams","hooks_url":"https://api.github.com/repos/kirinkubinagai/chat-space/hooks","issue_events_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/kirinkubinagai/chat-space/events","assignees_url":"https://api.github.com/repos/kirinkubinagai/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/kirinkubinagai/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/kirinkubinagai/chat-space/tags","blobs_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirinkubinagai/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/kirinkubinagai/chat-space/languages","stargazers_url":"https://api.github.com/repos/kirinkubinagai/chat-space/stargazers","contributors_url":"https://api.github.com/repos/kirinkubinagai/chat-space/contributors","subscribers_url":"https://api.github.com/repos/kirinkubinagai/chat-space/subscribers","subscription_url":"https://api.github.com/repos/kirinkubinagai/chat-space/subscription","commits_url":"https://api.github.com/repos/kirinkubinagai/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirinkubinagai/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirinkubinagai/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/kirinkubinagai/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirinkubinagai/chat-space/merges","archive_url":"https://api.github.com/repos/kirinkubinagai/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirinkubinagai/chat-space/downloads","issues_url":"https://api.github.com/repos/kirinkubinagai/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/kirinkubinagai/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/kirinkubinagai/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirinkubinagai/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/kirinkubinagai/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/kirinkubinagai/chat-space/deployments","created_at":"2016-11-11T13:10:28Z","updated_at":"2016-11-12T02:45:56Z","pushed_at":"2016-12-05T09:38:42Z","git_url":"git://github.com/kirinkubinagai/chat-space.git","ssh_url":"git@github.com:kirinkubinagai/chat-space.git","clone_url":"https://github.com/kirinkubinagai/chat-space.git","svn_url":"https://github.com/kirinkubinagai/chat-space","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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/kirinkubinagai/chat-space/pulls/22"},"html":{"href":"https://github.com/kirinkubinagai/chat-space/pull/22"},"issue":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/22"},"comments":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/kirinkubinagai/chat-space/statuses/45f7e4c0a9dd13fe14085ae47a6d5f30c09ccdbe"}}}}
{"actor":{"display_login":"ryosukemaehira"}}