{"action":"created","comment":{"url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/comments/133655497","pull_request_review_id":56809744,"id":133655497,"diff_hunk":"@@ -0,0 +1,50 @@\n+class ItemsController < ApplicationController\n+\n+  def new\n+    @item = current_user.items.new\n+    @thumbnails = []\n+    5.times { @thumbnails << @item.thumbnails.build }\n+  end\n+\n+  def create\n+    @item = current_user.items.new(params_with_type_category)\n+    if @item.save\n+      redirect_to root_path\n+    else\n+      render :new\n+    end\n+  end\n+\n+  private\n+\n+  def item_type\n+    \"Item::#{main_category.camelize}\"","path":"app/controllers/items_controller.rb","position":21,"original_position":21,"commit_id":"75a4fc2888290c3ede174a16c498851019f42bd4","original_commit_id":"75a4fc2888290c3ede174a16c498851019f42bd4","user":{"login":"taca10","id":25317424,"avatar_url":"https://avatars0.githubusercontent.com/u/25317424?v=4","gravatar_id":"","url":"https://api.github.com/users/taca10","html_url":"https://github.com/taca10","followers_url":"https://api.github.com/users/taca10/followers","following_url":"https://api.github.com/users/taca10/following{/other_user}","gists_url":"https://api.github.com/users/taca10/gists{/gist_id}","starred_url":"https://api.github.com/users/taca10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taca10/subscriptions","organizations_url":"https://api.github.com/users/taca10/orgs","repos_url":"https://api.github.com/users/taca10/repos","events_url":"https://api.github.com/users/taca10/events{/privacy}","received_events_url":"https://api.github.com/users/taca10/received_events","type":"User","site_admin":false},"body":"ここはどういうことでしょうか？","created_at":"2017-08-17T08:45:25Z","updated_at":"2017-08-17T08:48:29Z","html_url":"https://github.com/RyoMasuda4611/clothes/pull/8#discussion_r133655497","pull_request_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/comments/133655497"},"html":{"href":"https://github.com/RyoMasuda4611/clothes/pull/8#discussion_r133655497"},"pull_request":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8","id":136025676,"html_url":"https://github.com/RyoMasuda4611/clothes/pull/8","diff_url":"https://github.com/RyoMasuda4611/clothes/pull/8.diff","patch_url":"https://github.com/RyoMasuda4611/clothes/pull/8.patch","issue_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/8","number":8,"state":"open","locked":false,"title":"Introduce posting clothes function","user":{"login":"RyoMasuda4611","id":18863318,"avatar_url":"https://avatars2.githubusercontent.com/u/18863318?v=4","gravatar_id":"","url":"https://api.github.com/users/RyoMasuda4611","html_url":"https://github.com/RyoMasuda4611","followers_url":"https://api.github.com/users/RyoMasuda4611/followers","following_url":"https://api.github.com/users/RyoMasuda4611/following{/other_user}","gists_url":"https://api.github.com/users/RyoMasuda4611/gists{/gist_id}","starred_url":"https://api.github.com/users/RyoMasuda4611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyoMasuda4611/subscriptions","organizations_url":"https://api.github.com/users/RyoMasuda4611/orgs","repos_url":"https://api.github.com/users/RyoMasuda4611/repos","events_url":"https://api.github.com/users/RyoMasuda4611/events{/privacy}","received_events_url":"https://api.github.com/users/RyoMasuda4611/received_events","type":"User","site_admin":false},"body":"# what\r\nitemの投稿機能の実装」\r\n \r\n# why\r\n必要だから\r\n","created_at":"2017-08-16T13:34:40Z","updated_at":"2017-08-17T08:48:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67bead15ea075461d2b1f5855bee95ff8e79ba38","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8/commits","review_comments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8/comments","review_comment_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/8/comments","statuses_url":"https://api.github.com/repos/RyoMasuda4611/clothes/statuses/75a4fc2888290c3ede174a16c498851019f42bd4","head":{"label":"RyoMasuda4611:introduce_posting_clothes_function","ref":"introduce_posting_clothes_function","sha":"75a4fc2888290c3ede174a16c498851019f42bd4","user":{"login":"RyoMasuda4611","id":18863318,"avatar_url":"https://avatars2.githubusercontent.com/u/18863318?v=4","gravatar_id":"","url":"https://api.github.com/users/RyoMasuda4611","html_url":"https://github.com/RyoMasuda4611","followers_url":"https://api.github.com/users/RyoMasuda4611/followers","following_url":"https://api.github.com/users/RyoMasuda4611/following{/other_user}","gists_url":"https://api.github.com/users/RyoMasuda4611/gists{/gist_id}","starred_url":"https://api.github.com/users/RyoMasuda4611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyoMasuda4611/subscriptions","organizations_url":"https://api.github.com/users/RyoMasuda4611/orgs","repos_url":"https://api.github.com/users/RyoMasuda4611/repos","events_url":"https://api.github.com/users/RyoMasuda4611/events{/privacy}","received_events_url":"https://api.github.com/users/RyoMasuda4611/received_events","type":"User","site_admin":false},"repo":{"id":98069122,"name":"clothes","full_name":"RyoMasuda4611/clothes","owner":{"login":"RyoMasuda4611","id":18863318,"avatar_url":"https://avatars2.githubusercontent.com/u/18863318?v=4","gravatar_id":"","url":"https://api.github.com/users/RyoMasuda4611","html_url":"https://github.com/RyoMasuda4611","followers_url":"https://api.github.com/users/RyoMasuda4611/followers","following_url":"https://api.github.com/users/RyoMasuda4611/following{/other_user}","gists_url":"https://api.github.com/users/RyoMasuda4611/gists{/gist_id}","starred_url":"https://api.github.com/users/RyoMasuda4611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyoMasuda4611/subscriptions","organizations_url":"https://api.github.com/users/RyoMasuda4611/orgs","repos_url":"https://api.github.com/users/RyoMasuda4611/repos","events_url":"https://api.github.com/users/RyoMasuda4611/events{/privacy}","received_events_url":"https://api.github.com/users/RyoMasuda4611/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyoMasuda4611/clothes","description":null,"fork":false,"url":"https://api.github.com/repos/RyoMasuda4611/clothes","forks_url":"https://api.github.com/repos/RyoMasuda4611/clothes/forks","keys_url":"https://api.github.com/repos/RyoMasuda4611/clothes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyoMasuda4611/clothes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyoMasuda4611/clothes/teams","hooks_url":"https://api.github.com/repos/RyoMasuda4611/clothes/hooks","issue_events_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/events{/number}","events_url":"https://api.github.com/repos/RyoMasuda4611/clothes/events","assignees_url":"https://api.github.com/repos/RyoMasuda4611/clothes/assignees{/user}","branches_url":"https://api.github.com/repos/RyoMasuda4611/clothes/branches{/branch}","tags_url":"https://api.github.com/repos/RyoMasuda4611/clothes/tags","blobs_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyoMasuda4611/clothes/statuses/{sha}","languages_url":"https://api.github.com/repos/RyoMasuda4611/clothes/languages","stargazers_url":"https://api.github.com/repos/RyoMasuda4611/clothes/stargazers","contributors_url":"https://api.github.com/repos/RyoMasuda4611/clothes/contributors","subscribers_url":"https://api.github.com/repos/RyoMasuda4611/clothes/subscribers","subscription_url":"https://api.github.com/repos/RyoMasuda4611/clothes/subscription","commits_url":"https://api.github.com/repos/RyoMasuda4611/clothes/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyoMasuda4611/clothes/contents/{+path}","compare_url":"https://api.github.com/repos/RyoMasuda4611/clothes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyoMasuda4611/clothes/merges","archive_url":"https://api.github.com/repos/RyoMasuda4611/clothes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyoMasuda4611/clothes/downloads","issues_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues{/number}","pulls_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls{/number}","milestones_url":"https://api.github.com/repos/RyoMasuda4611/clothes/milestones{/number}","notifications_url":"https://api.github.com/repos/RyoMasuda4611/clothes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyoMasuda4611/clothes/labels{/name}","releases_url":"https://api.github.com/repos/RyoMasuda4611/clothes/releases{/id}","deployments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/deployments","created_at":"2017-07-23T02:13:32Z","updated_at":"2017-08-06T13:42:38Z","pushed_at":"2017-08-16T15:48:43Z","git_url":"git://github.com/RyoMasuda4611/clothes.git","ssh_url":"git@github.com:RyoMasuda4611/clothes.git","clone_url":"https://github.com/RyoMasuda4611/clothes.git","svn_url":"https://github.com/RyoMasuda4611/clothes","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"RyoMasuda4611:master","ref":"master","sha":"d83758da378c8d426059c18c9e8d79d8c692df04","user":{"login":"RyoMasuda4611","id":18863318,"avatar_url":"https://avatars2.githubusercontent.com/u/18863318?v=4","gravatar_id":"","url":"https://api.github.com/users/RyoMasuda4611","html_url":"https://github.com/RyoMasuda4611","followers_url":"https://api.github.com/users/RyoMasuda4611/followers","following_url":"https://api.github.com/users/RyoMasuda4611/following{/other_user}","gists_url":"https://api.github.com/users/RyoMasuda4611/gists{/gist_id}","starred_url":"https://api.github.com/users/RyoMasuda4611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyoMasuda4611/subscriptions","organizations_url":"https://api.github.com/users/RyoMasuda4611/orgs","repos_url":"https://api.github.com/users/RyoMasuda4611/repos","events_url":"https://api.github.com/users/RyoMasuda4611/events{/privacy}","received_events_url":"https://api.github.com/users/RyoMasuda4611/received_events","type":"User","site_admin":false},"repo":{"id":98069122,"name":"clothes","full_name":"RyoMasuda4611/clothes","owner":{"login":"RyoMasuda4611","id":18863318,"avatar_url":"https://avatars2.githubusercontent.com/u/18863318?v=4","gravatar_id":"","url":"https://api.github.com/users/RyoMasuda4611","html_url":"https://github.com/RyoMasuda4611","followers_url":"https://api.github.com/users/RyoMasuda4611/followers","following_url":"https://api.github.com/users/RyoMasuda4611/following{/other_user}","gists_url":"https://api.github.com/users/RyoMasuda4611/gists{/gist_id}","starred_url":"https://api.github.com/users/RyoMasuda4611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyoMasuda4611/subscriptions","organizations_url":"https://api.github.com/users/RyoMasuda4611/orgs","repos_url":"https://api.github.com/users/RyoMasuda4611/repos","events_url":"https://api.github.com/users/RyoMasuda4611/events{/privacy}","received_events_url":"https://api.github.com/users/RyoMasuda4611/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyoMasuda4611/clothes","description":null,"fork":false,"url":"https://api.github.com/repos/RyoMasuda4611/clothes","forks_url":"https://api.github.com/repos/RyoMasuda4611/clothes/forks","keys_url":"https://api.github.com/repos/RyoMasuda4611/clothes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyoMasuda4611/clothes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyoMasuda4611/clothes/teams","hooks_url":"https://api.github.com/repos/RyoMasuda4611/clothes/hooks","issue_events_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/events{/number}","events_url":"https://api.github.com/repos/RyoMasuda4611/clothes/events","assignees_url":"https://api.github.com/repos/RyoMasuda4611/clothes/assignees{/user}","branches_url":"https://api.github.com/repos/RyoMasuda4611/clothes/branches{/branch}","tags_url":"https://api.github.com/repos/RyoMasuda4611/clothes/tags","blobs_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyoMasuda4611/clothes/statuses/{sha}","languages_url":"https://api.github.com/repos/RyoMasuda4611/clothes/languages","stargazers_url":"https://api.github.com/repos/RyoMasuda4611/clothes/stargazers","contributors_url":"https://api.github.com/repos/RyoMasuda4611/clothes/contributors","subscribers_url":"https://api.github.com/repos/RyoMasuda4611/clothes/subscribers","subscription_url":"https://api.github.com/repos/RyoMasuda4611/clothes/subscription","commits_url":"https://api.github.com/repos/RyoMasuda4611/clothes/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyoMasuda4611/clothes/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyoMasuda4611/clothes/contents/{+path}","compare_url":"https://api.github.com/repos/RyoMasuda4611/clothes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyoMasuda4611/clothes/merges","archive_url":"https://api.github.com/repos/RyoMasuda4611/clothes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyoMasuda4611/clothes/downloads","issues_url":"https://api.github.com/repos/RyoMasuda4611/clothes/issues{/number}","pulls_url":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls{/number}","milestones_url":"https://api.github.com/repos/RyoMasuda4611/clothes/milestones{/number}","notifications_url":"https://api.github.com/repos/RyoMasuda4611/clothes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyoMasuda4611/clothes/labels{/name}","releases_url":"https://api.github.com/repos/RyoMasuda4611/clothes/releases{/id}","deployments_url":"https://api.github.com/repos/RyoMasuda4611/clothes/deployments","created_at":"2017-07-23T02:13:32Z","updated_at":"2017-08-06T13:42:38Z","pushed_at":"2017-08-16T15:48:43Z","git_url":"git://github.com/RyoMasuda4611/clothes.git","ssh_url":"git@github.com:RyoMasuda4611/clothes.git","clone_url":"https://github.com/RyoMasuda4611/clothes.git","svn_url":"https://github.com/RyoMasuda4611/clothes","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8"},"html":{"href":"https://github.com/RyoMasuda4611/clothes/pull/8"},"issue":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/8"},"comments":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/RyoMasuda4611/clothes/statuses/75a4fc2888290c3ede174a16c498851019f42bd4"}}}}
{"actor":{"display_login":"taca10"}}