{"action":"created","comment":{"url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/comments/221858996","pull_request_review_id":160606797,"id":221858996,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTg1ODk5Ng==","diff_hunk":"@@ -15,8 +15,10 @@ def index\n \n     @shop_images = [\"https://img4.zozo.jp/common/shop/shop_1982.jpg\", \"https://img4.zozo.jp/common/shop/shop_752.jpg\", \"https://img4.zozo.jp/common/shop/shop_361.jpg\", \"https://img4.zozo.jp/common/shop/shop_273.jpg\", \"https://img4.zozo.jp/common/shop/shop_1320.jpg\",\n     \"https://img4.zozo.jp/common/shop/shop_100.jpg\", \"https://img4.zozo.jp/common/shop/shop_1889.jpg\", \"https://img4.zozo.jp/common/shop/shop_71.jpg\", \"https://img4.zozo.jp/common/shop/shop_197.jpg\", \"https://img4.zozo.jp/common/shop/shop_1144.jpg\", \"https://img4.zozo.jp/common/shop/shop_72.jpg\"]\n+  end\n \n-\n-\n+  def register\n+    Cart.create(user_id: current_user.id, total_price: 0)","path":"app/controllers/carts_controller.rb","position":9,"original_position":9,"commit_id":"1f69169c88bdbf0d00372b0fecf2310265477535","original_commit_id":"1f69169c88bdbf0d00372b0fecf2310265477535","user":{"login":"miyagit","id":17040491,"node_id":"MDQ6VXNlcjE3MDQwNDkx","avatar_url":"https://avatars3.githubusercontent.com/u/17040491?v=4","gravatar_id":"","url":"https://api.github.com/users/miyagit","html_url":"https://github.com/miyagit","followers_url":"https://api.github.com/users/miyagit/followers","following_url":"https://api.github.com/users/miyagit/following{/other_user}","gists_url":"https://api.github.com/users/miyagit/gists{/gist_id}","starred_url":"https://api.github.com/users/miyagit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyagit/subscriptions","organizations_url":"https://api.github.com/users/miyagit/orgs","repos_url":"https://api.github.com/users/miyagit/repos","events_url":"https://api.github.com/users/miyagit/events{/privacy}","received_events_url":"https://api.github.com/users/miyagit/received_events","type":"User","site_admin":false},"body":"total_priceが決め打ちならdefaultにしたほうが良いですね。","created_at":"2018-10-02T08:15:22Z","updated_at":"2018-10-02T08:15:44Z","html_url":"https://github.com/Suguru-Nakayama/zozotown/pull/22#discussion_r221858996","pull_request_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/comments/221858996"},"html":{"href":"https://github.com/Suguru-Nakayama/zozotown/pull/22#discussion_r221858996"},"pull_request":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22"}},"in_reply_to_id":221843858},"pull_request":{"url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22","id":219601968,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NjAxOTY4","html_url":"https://github.com/Suguru-Nakayama/zozotown/pull/22","diff_url":"https://github.com/Suguru-Nakayama/zozotown/pull/22.diff","patch_url":"https://github.com/Suguru-Nakayama/zozotown/pull/22.patch","issue_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/22","number":22,"state":"open","locked":false,"title":"ユーザー登録機能の実装","user":{"login":"Suguru-Nakayama","id":42260360,"node_id":"MDQ6VXNlcjQyMjYwMzYw","avatar_url":"https://avatars1.githubusercontent.com/u/42260360?v=4","gravatar_id":"","url":"https://api.github.com/users/Suguru-Nakayama","html_url":"https://github.com/Suguru-Nakayama","followers_url":"https://api.github.com/users/Suguru-Nakayama/followers","following_url":"https://api.github.com/users/Suguru-Nakayama/following{/other_user}","gists_url":"https://api.github.com/users/Suguru-Nakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/Suguru-Nakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suguru-Nakayama/subscriptions","organizations_url":"https://api.github.com/users/Suguru-Nakayama/orgs","repos_url":"https://api.github.com/users/Suguru-Nakayama/repos","events_url":"https://api.github.com/users/Suguru-Nakayama/events{/privacy}","received_events_url":"https://api.github.com/users/Suguru-Nakayama/received_events","type":"User","site_admin":false},"body":"# what\r\n・サインアップ画面を実装した\r\n・Deviseによるユーザーのログイン・ログアウト機能を実装した\r\n・ユーザー登録後にショッピングカートを登録するようにした\r\n\r\n# why\r\n基本機能実装のため","created_at":"2018-10-02T06:54:07Z","updated_at":"2018-10-02T08:15:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b216a4ad16e89840bd0f96ff0b255f8e478e718","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/22/comments","statuses_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/statuses/1f69169c88bdbf0d00372b0fecf2310265477535","head":{"label":"Suguru-Nakayama:013_install_devise","ref":"013_install_devise","sha":"1f69169c88bdbf0d00372b0fecf2310265477535","user":{"login":"Suguru-Nakayama","id":42260360,"node_id":"MDQ6VXNlcjQyMjYwMzYw","avatar_url":"https://avatars1.githubusercontent.com/u/42260360?v=4","gravatar_id":"","url":"https://api.github.com/users/Suguru-Nakayama","html_url":"https://github.com/Suguru-Nakayama","followers_url":"https://api.github.com/users/Suguru-Nakayama/followers","following_url":"https://api.github.com/users/Suguru-Nakayama/following{/other_user}","gists_url":"https://api.github.com/users/Suguru-Nakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/Suguru-Nakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suguru-Nakayama/subscriptions","organizations_url":"https://api.github.com/users/Suguru-Nakayama/orgs","repos_url":"https://api.github.com/users/Suguru-Nakayama/repos","events_url":"https://api.github.com/users/Suguru-Nakayama/events{/privacy}","received_events_url":"https://api.github.com/users/Suguru-Nakayama/received_events","type":"User","site_admin":false},"repo":{"id":149951340,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk5NTEzNDA=","name":"zozotown","full_name":"Suguru-Nakayama/zozotown","private":false,"owner":{"login":"Suguru-Nakayama","id":42260360,"node_id":"MDQ6VXNlcjQyMjYwMzYw","avatar_url":"https://avatars1.githubusercontent.com/u/42260360?v=4","gravatar_id":"","url":"https://api.github.com/users/Suguru-Nakayama","html_url":"https://github.com/Suguru-Nakayama","followers_url":"https://api.github.com/users/Suguru-Nakayama/followers","following_url":"https://api.github.com/users/Suguru-Nakayama/following{/other_user}","gists_url":"https://api.github.com/users/Suguru-Nakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/Suguru-Nakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suguru-Nakayama/subscriptions","organizations_url":"https://api.github.com/users/Suguru-Nakayama/orgs","repos_url":"https://api.github.com/users/Suguru-Nakayama/repos","events_url":"https://api.github.com/users/Suguru-Nakayama/events{/privacy}","received_events_url":"https://api.github.com/users/Suguru-Nakayama/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Suguru-Nakayama/zozotown","description":null,"fork":false,"url":"https://api.github.com/repos/Suguru-Nakayama/zozotown","forks_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/forks","keys_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/teams","hooks_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/hooks","issue_events_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/events{/number}","events_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/events","assignees_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/assignees{/user}","branches_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/branches{/branch}","tags_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/tags","blobs_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/statuses/{sha}","languages_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/languages","stargazers_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/stargazers","contributors_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/contributors","subscribers_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/subscribers","subscription_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/subscription","commits_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/comments{/number}","contents_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/contents/{+path}","compare_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/merges","archive_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/downloads","issues_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues{/number}","pulls_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls{/number}","milestones_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/milestones{/number}","notifications_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/labels{/name}","releases_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/releases{/id}","deployments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/deployments","created_at":"2018-09-23T05:36:46Z","updated_at":"2018-10-02T02:16:05Z","pushed_at":"2018-10-02T06:57:08Z","git_url":"git://github.com/Suguru-Nakayama/zozotown.git","ssh_url":"git@github.com:Suguru-Nakayama/zozotown.git","clone_url":"https://github.com/Suguru-Nakayama/zozotown.git","svn_url":"https://github.com/Suguru-Nakayama/zozotown","homepage":null,"size":276,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Suguru-Nakayama:master","ref":"master","sha":"eb1c6e79361d5a174bbcce31d8ea9db4fe15d56b","user":{"login":"Suguru-Nakayama","id":42260360,"node_id":"MDQ6VXNlcjQyMjYwMzYw","avatar_url":"https://avatars1.githubusercontent.com/u/42260360?v=4","gravatar_id":"","url":"https://api.github.com/users/Suguru-Nakayama","html_url":"https://github.com/Suguru-Nakayama","followers_url":"https://api.github.com/users/Suguru-Nakayama/followers","following_url":"https://api.github.com/users/Suguru-Nakayama/following{/other_user}","gists_url":"https://api.github.com/users/Suguru-Nakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/Suguru-Nakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suguru-Nakayama/subscriptions","organizations_url":"https://api.github.com/users/Suguru-Nakayama/orgs","repos_url":"https://api.github.com/users/Suguru-Nakayama/repos","events_url":"https://api.github.com/users/Suguru-Nakayama/events{/privacy}","received_events_url":"https://api.github.com/users/Suguru-Nakayama/received_events","type":"User","site_admin":false},"repo":{"id":149951340,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk5NTEzNDA=","name":"zozotown","full_name":"Suguru-Nakayama/zozotown","private":false,"owner":{"login":"Suguru-Nakayama","id":42260360,"node_id":"MDQ6VXNlcjQyMjYwMzYw","avatar_url":"https://avatars1.githubusercontent.com/u/42260360?v=4","gravatar_id":"","url":"https://api.github.com/users/Suguru-Nakayama","html_url":"https://github.com/Suguru-Nakayama","followers_url":"https://api.github.com/users/Suguru-Nakayama/followers","following_url":"https://api.github.com/users/Suguru-Nakayama/following{/other_user}","gists_url":"https://api.github.com/users/Suguru-Nakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/Suguru-Nakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suguru-Nakayama/subscriptions","organizations_url":"https://api.github.com/users/Suguru-Nakayama/orgs","repos_url":"https://api.github.com/users/Suguru-Nakayama/repos","events_url":"https://api.github.com/users/Suguru-Nakayama/events{/privacy}","received_events_url":"https://api.github.com/users/Suguru-Nakayama/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Suguru-Nakayama/zozotown","description":null,"fork":false,"url":"https://api.github.com/repos/Suguru-Nakayama/zozotown","forks_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/forks","keys_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/teams","hooks_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/hooks","issue_events_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/events{/number}","events_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/events","assignees_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/assignees{/user}","branches_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/branches{/branch}","tags_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/tags","blobs_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/statuses/{sha}","languages_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/languages","stargazers_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/stargazers","contributors_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/contributors","subscribers_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/subscribers","subscription_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/subscription","commits_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/comments{/number}","contents_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/contents/{+path}","compare_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/merges","archive_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/downloads","issues_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues{/number}","pulls_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls{/number}","milestones_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/milestones{/number}","notifications_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/labels{/name}","releases_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/releases{/id}","deployments_url":"https://api.github.com/repos/Suguru-Nakayama/zozotown/deployments","created_at":"2018-09-23T05:36:46Z","updated_at":"2018-10-02T02:16:05Z","pushed_at":"2018-10-02T06:57:08Z","git_url":"git://github.com/Suguru-Nakayama/zozotown.git","ssh_url":"git@github.com:Suguru-Nakayama/zozotown.git","clone_url":"https://github.com/Suguru-Nakayama/zozotown.git","svn_url":"https://github.com/Suguru-Nakayama/zozotown","homepage":null,"size":276,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22"},"html":{"href":"https://github.com/Suguru-Nakayama/zozotown/pull/22"},"issue":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/22"},"comments":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Suguru-Nakayama/zozotown/statuses/1f69169c88bdbf0d00372b0fecf2310265477535"}},"author_association":"OWNER"}}
{"actor":{"display_login":"miyagit"}}