{"action":"created","comment":{"url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/comments/196690936","pull_request_review_id":130286106,"id":196690936,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjY5MDkzNg==","diff_hunk":"@@ -0,0 +1,13 @@\n+class Book < ApplicationRecord\n+  belongs_to :user\n+\n+  validates :name, presence: true\n+  validates :price, numericality: true\n+  validates :purchase_date, date: true\n+  before_save :upload_image\n+\n+  private\n+    def upload_image\n+      self.image = Imgur.register_image(image)","path":"app/models/book.rb","position":11,"original_position":11,"commit_id":"4c4d81bcd199c2e7a066b4aaf2825fe01d64d91b","original_commit_id":"4c4d81bcd199c2e7a066b4aaf2825fe01d64d91b","user":{"login":"kfukazawa-cq","id":13075221,"node_id":"MDQ6VXNlcjEzMDc1MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/13075221?v=4","gravatar_id":"","url":"https://api.github.com/users/kfukazawa-cq","html_url":"https://github.com/kfukazawa-cq","followers_url":"https://api.github.com/users/kfukazawa-cq/followers","following_url":"https://api.github.com/users/kfukazawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/kfukazawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/kfukazawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfukazawa-cq/subscriptions","organizations_url":"https://api.github.com/users/kfukazawa-cq/orgs","repos_url":"https://api.github.com/users/kfukazawa-cq/repos","events_url":"https://api.github.com/users/kfukazawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/kfukazawa-cq/received_events","type":"User","site_admin":false},"body":"`image`ってカラム名が良くないですね:sweat: (image_urlのがいいね)\r\n仕様なので変えなくて良いですが。","created_at":"2018-06-20T08:36:25Z","updated_at":"2018-06-20T08:40:05Z","html_url":"https://github.com/daikawa-cq/BookServer/pull/1#discussion_r196690936","pull_request_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/comments/196690936"},"html":{"href":"https://github.com/daikawa-cq/BookServer/pull/1#discussion_r196690936"},"pull_request":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1","id":195149087,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MTQ5MDg3","html_url":"https://github.com/daikawa-cq/BookServer/pull/1","diff_url":"https://github.com/daikawa-cq/BookServer/pull/1.diff","patch_url":"https://github.com/daikawa-cq/BookServer/pull/1.patch","issue_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/1","number":1,"state":"open","locked":false,"title":"BookServerの実装","user":{"login":"daikawa-cq","id":37997585,"node_id":"MDQ6VXNlcjM3OTk3NTg1","avatar_url":"https://avatars1.githubusercontent.com/u/37997585?v=4","gravatar_id":"","url":"https://api.github.com/users/daikawa-cq","html_url":"https://github.com/daikawa-cq","followers_url":"https://api.github.com/users/daikawa-cq/followers","following_url":"https://api.github.com/users/daikawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/daikawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/daikawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikawa-cq/subscriptions","organizations_url":"https://api.github.com/users/daikawa-cq/orgs","repos_url":"https://api.github.com/users/daikawa-cq/repos","events_url":"https://api.github.com/users/daikawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/daikawa-cq/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-15T11:34:55Z","updated_at":"2018-06-20T08:40:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bf7c01cf63f47208396357860b2f3108939e84a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/1/comments","statuses_url":"https://api.github.com/repos/daikawa-cq/BookServer/statuses/4c4d81bcd199c2e7a066b4aaf2825fe01d64d91b","head":{"label":"daikawa-cq:develop","ref":"develop","sha":"4c4d81bcd199c2e7a066b4aaf2825fe01d64d91b","user":{"login":"daikawa-cq","id":37997585,"node_id":"MDQ6VXNlcjM3OTk3NTg1","avatar_url":"https://avatars1.githubusercontent.com/u/37997585?v=4","gravatar_id":"","url":"https://api.github.com/users/daikawa-cq","html_url":"https://github.com/daikawa-cq","followers_url":"https://api.github.com/users/daikawa-cq/followers","following_url":"https://api.github.com/users/daikawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/daikawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/daikawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikawa-cq/subscriptions","organizations_url":"https://api.github.com/users/daikawa-cq/orgs","repos_url":"https://api.github.com/users/daikawa-cq/repos","events_url":"https://api.github.com/users/daikawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/daikawa-cq/received_events","type":"User","site_admin":false},"repo":{"id":136594821,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1OTQ4MjE=","name":"BookServer","full_name":"daikawa-cq/BookServer","owner":{"login":"daikawa-cq","id":37997585,"node_id":"MDQ6VXNlcjM3OTk3NTg1","avatar_url":"https://avatars1.githubusercontent.com/u/37997585?v=4","gravatar_id":"","url":"https://api.github.com/users/daikawa-cq","html_url":"https://github.com/daikawa-cq","followers_url":"https://api.github.com/users/daikawa-cq/followers","following_url":"https://api.github.com/users/daikawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/daikawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/daikawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikawa-cq/subscriptions","organizations_url":"https://api.github.com/users/daikawa-cq/orgs","repos_url":"https://api.github.com/users/daikawa-cq/repos","events_url":"https://api.github.com/users/daikawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/daikawa-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daikawa-cq/BookServer","description":null,"fork":false,"url":"https://api.github.com/repos/daikawa-cq/BookServer","forks_url":"https://api.github.com/repos/daikawa-cq/BookServer/forks","keys_url":"https://api.github.com/repos/daikawa-cq/BookServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daikawa-cq/BookServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daikawa-cq/BookServer/teams","hooks_url":"https://api.github.com/repos/daikawa-cq/BookServer/hooks","issue_events_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/events{/number}","events_url":"https://api.github.com/repos/daikawa-cq/BookServer/events","assignees_url":"https://api.github.com/repos/daikawa-cq/BookServer/assignees{/user}","branches_url":"https://api.github.com/repos/daikawa-cq/BookServer/branches{/branch}","tags_url":"https://api.github.com/repos/daikawa-cq/BookServer/tags","blobs_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daikawa-cq/BookServer/statuses/{sha}","languages_url":"https://api.github.com/repos/daikawa-cq/BookServer/languages","stargazers_url":"https://api.github.com/repos/daikawa-cq/BookServer/stargazers","contributors_url":"https://api.github.com/repos/daikawa-cq/BookServer/contributors","subscribers_url":"https://api.github.com/repos/daikawa-cq/BookServer/subscribers","subscription_url":"https://api.github.com/repos/daikawa-cq/BookServer/subscription","commits_url":"https://api.github.com/repos/daikawa-cq/BookServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/daikawa-cq/BookServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/daikawa-cq/BookServer/contents/{+path}","compare_url":"https://api.github.com/repos/daikawa-cq/BookServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daikawa-cq/BookServer/merges","archive_url":"https://api.github.com/repos/daikawa-cq/BookServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daikawa-cq/BookServer/downloads","issues_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues{/number}","pulls_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls{/number}","milestones_url":"https://api.github.com/repos/daikawa-cq/BookServer/milestones{/number}","notifications_url":"https://api.github.com/repos/daikawa-cq/BookServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daikawa-cq/BookServer/labels{/name}","releases_url":"https://api.github.com/repos/daikawa-cq/BookServer/releases{/id}","deployments_url":"https://api.github.com/repos/daikawa-cq/BookServer/deployments","created_at":"2018-06-08T09:05:36Z","updated_at":"2018-06-20T07:56:52Z","pushed_at":"2018-06-20T07:56:51Z","git_url":"git://github.com/daikawa-cq/BookServer.git","ssh_url":"git@github.com:daikawa-cq/BookServer.git","clone_url":"https://github.com/daikawa-cq/BookServer.git","svn_url":"https://github.com/daikawa-cq/BookServer","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"daikawa-cq:master","ref":"master","sha":"7ca67adb573f84eaa5e7fbae44391d51fa38a41c","user":{"login":"daikawa-cq","id":37997585,"node_id":"MDQ6VXNlcjM3OTk3NTg1","avatar_url":"https://avatars1.githubusercontent.com/u/37997585?v=4","gravatar_id":"","url":"https://api.github.com/users/daikawa-cq","html_url":"https://github.com/daikawa-cq","followers_url":"https://api.github.com/users/daikawa-cq/followers","following_url":"https://api.github.com/users/daikawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/daikawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/daikawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikawa-cq/subscriptions","organizations_url":"https://api.github.com/users/daikawa-cq/orgs","repos_url":"https://api.github.com/users/daikawa-cq/repos","events_url":"https://api.github.com/users/daikawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/daikawa-cq/received_events","type":"User","site_admin":false},"repo":{"id":136594821,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1OTQ4MjE=","name":"BookServer","full_name":"daikawa-cq/BookServer","owner":{"login":"daikawa-cq","id":37997585,"node_id":"MDQ6VXNlcjM3OTk3NTg1","avatar_url":"https://avatars1.githubusercontent.com/u/37997585?v=4","gravatar_id":"","url":"https://api.github.com/users/daikawa-cq","html_url":"https://github.com/daikawa-cq","followers_url":"https://api.github.com/users/daikawa-cq/followers","following_url":"https://api.github.com/users/daikawa-cq/following{/other_user}","gists_url":"https://api.github.com/users/daikawa-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/daikawa-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daikawa-cq/subscriptions","organizations_url":"https://api.github.com/users/daikawa-cq/orgs","repos_url":"https://api.github.com/users/daikawa-cq/repos","events_url":"https://api.github.com/users/daikawa-cq/events{/privacy}","received_events_url":"https://api.github.com/users/daikawa-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daikawa-cq/BookServer","description":null,"fork":false,"url":"https://api.github.com/repos/daikawa-cq/BookServer","forks_url":"https://api.github.com/repos/daikawa-cq/BookServer/forks","keys_url":"https://api.github.com/repos/daikawa-cq/BookServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daikawa-cq/BookServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daikawa-cq/BookServer/teams","hooks_url":"https://api.github.com/repos/daikawa-cq/BookServer/hooks","issue_events_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/events{/number}","events_url":"https://api.github.com/repos/daikawa-cq/BookServer/events","assignees_url":"https://api.github.com/repos/daikawa-cq/BookServer/assignees{/user}","branches_url":"https://api.github.com/repos/daikawa-cq/BookServer/branches{/branch}","tags_url":"https://api.github.com/repos/daikawa-cq/BookServer/tags","blobs_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daikawa-cq/BookServer/statuses/{sha}","languages_url":"https://api.github.com/repos/daikawa-cq/BookServer/languages","stargazers_url":"https://api.github.com/repos/daikawa-cq/BookServer/stargazers","contributors_url":"https://api.github.com/repos/daikawa-cq/BookServer/contributors","subscribers_url":"https://api.github.com/repos/daikawa-cq/BookServer/subscribers","subscription_url":"https://api.github.com/repos/daikawa-cq/BookServer/subscription","commits_url":"https://api.github.com/repos/daikawa-cq/BookServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/daikawa-cq/BookServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/daikawa-cq/BookServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/daikawa-cq/BookServer/contents/{+path}","compare_url":"https://api.github.com/repos/daikawa-cq/BookServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daikawa-cq/BookServer/merges","archive_url":"https://api.github.com/repos/daikawa-cq/BookServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daikawa-cq/BookServer/downloads","issues_url":"https://api.github.com/repos/daikawa-cq/BookServer/issues{/number}","pulls_url":"https://api.github.com/repos/daikawa-cq/BookServer/pulls{/number}","milestones_url":"https://api.github.com/repos/daikawa-cq/BookServer/milestones{/number}","notifications_url":"https://api.github.com/repos/daikawa-cq/BookServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daikawa-cq/BookServer/labels{/name}","releases_url":"https://api.github.com/repos/daikawa-cq/BookServer/releases{/id}","deployments_url":"https://api.github.com/repos/daikawa-cq/BookServer/deployments","created_at":"2018-06-08T09:05:36Z","updated_at":"2018-06-20T07:56:52Z","pushed_at":"2018-06-20T07:56:51Z","git_url":"git://github.com/daikawa-cq/BookServer.git","ssh_url":"git@github.com:daikawa-cq/BookServer.git","clone_url":"https://github.com/daikawa-cq/BookServer.git","svn_url":"https://github.com/daikawa-cq/BookServer","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1"},"html":{"href":"https://github.com/daikawa-cq/BookServer/pull/1"},"issue":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/issues/1"},"comments":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/daikawa-cq/BookServer/statuses/4c4d81bcd199c2e7a066b4aaf2825fe01d64d91b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kfukazawa-cq"}}