{"action":"created","comment":{"url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/comments/93428316","pull_request_review_id":13954832,"id":93428316,"diff_hunk":"@@ -3,5 +3,16 @@ def index\n     @groups = current_user.groups\n     @group = Group.find(params[:group_id])\n     @messages = @group.messages\n+    @message = Message.new\n+  end\n+\n+  def create\n+    @message = Message.create(create_params)\n+    redirect_to group_messages_path","path":"chat-space/app/controllers/messages_controller.rb","position":9,"original_position":9,"commit_id":"e243ebbb99ef52e8b92cb5e504b19e097f021a4e","original_commit_id":"e243ebbb99ef52e8b92cb5e504b19e097f021a4e","user":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"body":"createは成功と失敗で分けましょう！","created_at":"2016-12-21T12:20:15Z","updated_at":"2016-12-21T12:20:15Z","html_url":"https://github.com/koootaaa/Chatspace/pull/13#discussion_r93428316","pull_request_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/comments/93428316"},"html":{"href":"https://github.com/koootaaa/Chatspace/pull/13#discussion_r93428316"},"pull_request":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13","id":98922270,"html_url":"https://github.com/koootaaa/Chatspace/pull/13","diff_url":"https://github.com/koootaaa/Chatspace/pull/13.diff","patch_url":"https://github.com/koootaaa/Chatspace/pull/13.patch","issue_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/13","number":13,"state":"open","locked":false,"title":"add-message","user":{"login":"koootaaa","id":22385925,"avatar_url":"https://avatars.githubusercontent.com/u/22385925?v=3","gravatar_id":"","url":"https://api.github.com/users/koootaaa","html_url":"https://github.com/koootaaa","followers_url":"https://api.github.com/users/koootaaa/followers","following_url":"https://api.github.com/users/koootaaa/following{/other_user}","gists_url":"https://api.github.com/users/koootaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/koootaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koootaaa/subscriptions","organizations_url":"https://api.github.com/users/koootaaa/orgs","repos_url":"https://api.github.com/users/koootaaa/repos","events_url":"https://api.github.com/users/koootaaa/events{/privacy}","received_events_url":"https://api.github.com/users/koootaaa/received_events","type":"User","site_admin":false},"body":"# what\r\nメッセージ投稿機能\r\nバリデーション\r\n\r\n# why\r\nメッセージ投稿できないとおもしろくない\r\nからのメッセージなんていらないから\r\n\r\n2016/12/22","created_at":"2016-12-21T12:13:03Z","updated_at":"2016-12-21T12:21:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a212ffa07c8d0b84168468367988dad5bb3f9583","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13/commits","review_comments_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13/comments","review_comment_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/13/comments","statuses_url":"https://api.github.com/repos/koootaaa/Chatspace/statuses/e243ebbb99ef52e8b92cb5e504b19e097f021a4e","head":{"label":"koootaaa:create-messages-system","ref":"create-messages-system","sha":"e243ebbb99ef52e8b92cb5e504b19e097f021a4e","user":{"login":"koootaaa","id":22385925,"avatar_url":"https://avatars.githubusercontent.com/u/22385925?v=3","gravatar_id":"","url":"https://api.github.com/users/koootaaa","html_url":"https://github.com/koootaaa","followers_url":"https://api.github.com/users/koootaaa/followers","following_url":"https://api.github.com/users/koootaaa/following{/other_user}","gists_url":"https://api.github.com/users/koootaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/koootaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koootaaa/subscriptions","organizations_url":"https://api.github.com/users/koootaaa/orgs","repos_url":"https://api.github.com/users/koootaaa/repos","events_url":"https://api.github.com/users/koootaaa/events{/privacy}","received_events_url":"https://api.github.com/users/koootaaa/received_events","type":"User","site_admin":false},"repo":{"id":71433151,"name":"Chatspace","full_name":"koootaaa/Chatspace","owner":{"login":"koootaaa","id":22385925,"avatar_url":"https://avatars.githubusercontent.com/u/22385925?v=3","gravatar_id":"","url":"https://api.github.com/users/koootaaa","html_url":"https://github.com/koootaaa","followers_url":"https://api.github.com/users/koootaaa/followers","following_url":"https://api.github.com/users/koootaaa/following{/other_user}","gists_url":"https://api.github.com/users/koootaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/koootaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koootaaa/subscriptions","organizations_url":"https://api.github.com/users/koootaaa/orgs","repos_url":"https://api.github.com/users/koootaaa/repos","events_url":"https://api.github.com/users/koootaaa/events{/privacy}","received_events_url":"https://api.github.com/users/koootaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koootaaa/Chatspace","description":null,"fork":false,"url":"https://api.github.com/repos/koootaaa/Chatspace","forks_url":"https://api.github.com/repos/koootaaa/Chatspace/forks","keys_url":"https://api.github.com/repos/koootaaa/Chatspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koootaaa/Chatspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koootaaa/Chatspace/teams","hooks_url":"https://api.github.com/repos/koootaaa/Chatspace/hooks","issue_events_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/events{/number}","events_url":"https://api.github.com/repos/koootaaa/Chatspace/events","assignees_url":"https://api.github.com/repos/koootaaa/Chatspace/assignees{/user}","branches_url":"https://api.github.com/repos/koootaaa/Chatspace/branches{/branch}","tags_url":"https://api.github.com/repos/koootaaa/Chatspace/tags","blobs_url":"https://api.github.com/repos/koootaaa/Chatspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koootaaa/Chatspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koootaaa/Chatspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/koootaaa/Chatspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koootaaa/Chatspace/statuses/{sha}","languages_url":"https://api.github.com/repos/koootaaa/Chatspace/languages","stargazers_url":"https://api.github.com/repos/koootaaa/Chatspace/stargazers","contributors_url":"https://api.github.com/repos/koootaaa/Chatspace/contributors","subscribers_url":"https://api.github.com/repos/koootaaa/Chatspace/subscribers","subscription_url":"https://api.github.com/repos/koootaaa/Chatspace/subscription","commits_url":"https://api.github.com/repos/koootaaa/Chatspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/koootaaa/Chatspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/koootaaa/Chatspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/koootaaa/Chatspace/contents/{+path}","compare_url":"https://api.github.com/repos/koootaaa/Chatspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koootaaa/Chatspace/merges","archive_url":"https://api.github.com/repos/koootaaa/Chatspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koootaaa/Chatspace/downloads","issues_url":"https://api.github.com/repos/koootaaa/Chatspace/issues{/number}","pulls_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls{/number}","milestones_url":"https://api.github.com/repos/koootaaa/Chatspace/milestones{/number}","notifications_url":"https://api.github.com/repos/koootaaa/Chatspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koootaaa/Chatspace/labels{/name}","releases_url":"https://api.github.com/repos/koootaaa/Chatspace/releases{/id}","deployments_url":"https://api.github.com/repos/koootaaa/Chatspace/deployments","created_at":"2016-10-20T06:42:51Z","updated_at":"2016-10-20T06:48:56Z","pushed_at":"2016-12-21T12:13:03Z","git_url":"git://github.com/koootaaa/Chatspace.git","ssh_url":"git@github.com:koootaaa/Chatspace.git","clone_url":"https://github.com/koootaaa/Chatspace.git","svn_url":"https://github.com/koootaaa/Chatspace","homepage":null,"size":89,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"koootaaa:master","ref":"master","sha":"f314473688bc5af472ce66529bd54962bc1c70b4","user":{"login":"koootaaa","id":22385925,"avatar_url":"https://avatars.githubusercontent.com/u/22385925?v=3","gravatar_id":"","url":"https://api.github.com/users/koootaaa","html_url":"https://github.com/koootaaa","followers_url":"https://api.github.com/users/koootaaa/followers","following_url":"https://api.github.com/users/koootaaa/following{/other_user}","gists_url":"https://api.github.com/users/koootaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/koootaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koootaaa/subscriptions","organizations_url":"https://api.github.com/users/koootaaa/orgs","repos_url":"https://api.github.com/users/koootaaa/repos","events_url":"https://api.github.com/users/koootaaa/events{/privacy}","received_events_url":"https://api.github.com/users/koootaaa/received_events","type":"User","site_admin":false},"repo":{"id":71433151,"name":"Chatspace","full_name":"koootaaa/Chatspace","owner":{"login":"koootaaa","id":22385925,"avatar_url":"https://avatars.githubusercontent.com/u/22385925?v=3","gravatar_id":"","url":"https://api.github.com/users/koootaaa","html_url":"https://github.com/koootaaa","followers_url":"https://api.github.com/users/koootaaa/followers","following_url":"https://api.github.com/users/koootaaa/following{/other_user}","gists_url":"https://api.github.com/users/koootaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/koootaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koootaaa/subscriptions","organizations_url":"https://api.github.com/users/koootaaa/orgs","repos_url":"https://api.github.com/users/koootaaa/repos","events_url":"https://api.github.com/users/koootaaa/events{/privacy}","received_events_url":"https://api.github.com/users/koootaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koootaaa/Chatspace","description":null,"fork":false,"url":"https://api.github.com/repos/koootaaa/Chatspace","forks_url":"https://api.github.com/repos/koootaaa/Chatspace/forks","keys_url":"https://api.github.com/repos/koootaaa/Chatspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koootaaa/Chatspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koootaaa/Chatspace/teams","hooks_url":"https://api.github.com/repos/koootaaa/Chatspace/hooks","issue_events_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/events{/number}","events_url":"https://api.github.com/repos/koootaaa/Chatspace/events","assignees_url":"https://api.github.com/repos/koootaaa/Chatspace/assignees{/user}","branches_url":"https://api.github.com/repos/koootaaa/Chatspace/branches{/branch}","tags_url":"https://api.github.com/repos/koootaaa/Chatspace/tags","blobs_url":"https://api.github.com/repos/koootaaa/Chatspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koootaaa/Chatspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koootaaa/Chatspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/koootaaa/Chatspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koootaaa/Chatspace/statuses/{sha}","languages_url":"https://api.github.com/repos/koootaaa/Chatspace/languages","stargazers_url":"https://api.github.com/repos/koootaaa/Chatspace/stargazers","contributors_url":"https://api.github.com/repos/koootaaa/Chatspace/contributors","subscribers_url":"https://api.github.com/repos/koootaaa/Chatspace/subscribers","subscription_url":"https://api.github.com/repos/koootaaa/Chatspace/subscription","commits_url":"https://api.github.com/repos/koootaaa/Chatspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/koootaaa/Chatspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/koootaaa/Chatspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/koootaaa/Chatspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/koootaaa/Chatspace/contents/{+path}","compare_url":"https://api.github.com/repos/koootaaa/Chatspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koootaaa/Chatspace/merges","archive_url":"https://api.github.com/repos/koootaaa/Chatspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koootaaa/Chatspace/downloads","issues_url":"https://api.github.com/repos/koootaaa/Chatspace/issues{/number}","pulls_url":"https://api.github.com/repos/koootaaa/Chatspace/pulls{/number}","milestones_url":"https://api.github.com/repos/koootaaa/Chatspace/milestones{/number}","notifications_url":"https://api.github.com/repos/koootaaa/Chatspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koootaaa/Chatspace/labels{/name}","releases_url":"https://api.github.com/repos/koootaaa/Chatspace/releases{/id}","deployments_url":"https://api.github.com/repos/koootaaa/Chatspace/deployments","created_at":"2016-10-20T06:42:51Z","updated_at":"2016-10-20T06:48:56Z","pushed_at":"2016-12-21T12:13:03Z","git_url":"git://github.com/koootaaa/Chatspace.git","ssh_url":"git@github.com:koootaaa/Chatspace.git","clone_url":"https://github.com/koootaaa/Chatspace.git","svn_url":"https://github.com/koootaaa/Chatspace","homepage":null,"size":89,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13"},"html":{"href":"https://github.com/koootaaa/Chatspace/pull/13"},"issue":{"href":"https://api.github.com/repos/koootaaa/Chatspace/issues/13"},"comments":{"href":"https://api.github.com/repos/koootaaa/Chatspace/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koootaaa/Chatspace/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/koootaaa/Chatspace/statuses/e243ebbb99ef52e8b92cb5e504b19e097f021a4e"}}}}
{"actor":{"display_login":"snowhork"}}