{"action":"created","comment":{"url":"https://api.github.com/repos/fukuty/lance_note/pulls/comments/202513561","pull_request_review_id":137236558,"id":202513561,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjUxMzU2MQ==","diff_hunk":"@@ -1,12 +1,16 @@\n class BlogsController < ApplicationController\n   protect_from_forgery :except => [:create]\n+  before_action :set_blog, only: [:edit, :update, :destroy, :show]\n+\n \n   def index\n     @blogs = Blog.all\n   end\n \n   def show\n-    @blog = Blog.find(params[:id])\n+    @blog = Blog.includes(:user).find(params[:id])\n+    @comments = @blog.blog_comments.includes(:user).all","path":"app/controllers/blogs_controller.rb","position":13,"original_position":13,"commit_id":"0c6e9d37935cb35e30d8de29b63355cb45f44e6f","original_commit_id":"0c6e9d37935cb35e30d8de29b63355cb45f44e6f","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":".allって必要ですか？","created_at":"2018-07-14T12:05:31Z","updated_at":"2018-07-14T12:15:03Z","html_url":"https://github.com/fukuty/lance_note/pull/16#discussion_r202513561","pull_request_url":"https://api.github.com/repos/fukuty/lance_note/pulls/16","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/comments/202513561"},"html":{"href":"https://github.com/fukuty/lance_note/pull/16#discussion_r202513561"},"pull_request":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/fukuty/lance_note/pulls/16","id":200919236,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwOTE5MjM2","html_url":"https://github.com/fukuty/lance_note/pull/16","diff_url":"https://github.com/fukuty/lance_note/pull/16.diff","patch_url":"https://github.com/fukuty/lance_note/pull/16.patch","issue_url":"https://api.github.com/repos/fukuty/lance_note/issues/16","number":16,"state":"open","locked":false,"title":"【WIP】コメント機能実装完了　","user":{"login":"fukuty","id":18551496,"node_id":"MDQ6VXNlcjE4NTUxNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/18551496?v=4","gravatar_id":"","url":"https://api.github.com/users/fukuty","html_url":"https://github.com/fukuty","followers_url":"https://api.github.com/users/fukuty/followers","following_url":"https://api.github.com/users/fukuty/following{/other_user}","gists_url":"https://api.github.com/users/fukuty/gists{/gist_id}","starred_url":"https://api.github.com/users/fukuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukuty/subscriptions","organizations_url":"https://api.github.com/users/fukuty/orgs","repos_url":"https://api.github.com/users/fukuty/repos","events_url":"https://api.github.com/users/fukuty/events{/privacy}","received_events_url":"https://api.github.com/users/fukuty/received_events","type":"User","site_admin":false},"body":"記事詳細ページにて、\r\n・コメントの投稿→記事と紐づいたコメントの表示\r\nまで実装しました。","created_at":"2018-07-12T08:07:39Z","updated_at":"2018-07-14T12:15:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3a174af22a34a98e9dd46f1c0f0f295fa886230","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fukuty/lance_note/pulls/16/commits","review_comments_url":"https://api.github.com/repos/fukuty/lance_note/pulls/16/comments","review_comment_url":"https://api.github.com/repos/fukuty/lance_note/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fukuty/lance_note/issues/16/comments","statuses_url":"https://api.github.com/repos/fukuty/lance_note/statuses/0c6e9d37935cb35e30d8de29b63355cb45f44e6f","head":{"label":"fukuty:コメント機能実装","ref":"コメント機能実装","sha":"0c6e9d37935cb35e30d8de29b63355cb45f44e6f","user":{"login":"fukuty","id":18551496,"node_id":"MDQ6VXNlcjE4NTUxNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/18551496?v=4","gravatar_id":"","url":"https://api.github.com/users/fukuty","html_url":"https://github.com/fukuty","followers_url":"https://api.github.com/users/fukuty/followers","following_url":"https://api.github.com/users/fukuty/following{/other_user}","gists_url":"https://api.github.com/users/fukuty/gists{/gist_id}","starred_url":"https://api.github.com/users/fukuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukuty/subscriptions","organizations_url":"https://api.github.com/users/fukuty/orgs","repos_url":"https://api.github.com/users/fukuty/repos","events_url":"https://api.github.com/users/fukuty/events{/privacy}","received_events_url":"https://api.github.com/users/fukuty/received_events","type":"User","site_admin":false},"repo":{"id":132312499,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIzMTI0OTk=","name":"lance_note","full_name":"fukuty/lance_note","owner":{"login":"fukuty","id":18551496,"node_id":"MDQ6VXNlcjE4NTUxNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/18551496?v=4","gravatar_id":"","url":"https://api.github.com/users/fukuty","html_url":"https://github.com/fukuty","followers_url":"https://api.github.com/users/fukuty/followers","following_url":"https://api.github.com/users/fukuty/following{/other_user}","gists_url":"https://api.github.com/users/fukuty/gists{/gist_id}","starred_url":"https://api.github.com/users/fukuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukuty/subscriptions","organizations_url":"https://api.github.com/users/fukuty/orgs","repos_url":"https://api.github.com/users/fukuty/repos","events_url":"https://api.github.com/users/fukuty/events{/privacy}","received_events_url":"https://api.github.com/users/fukuty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fukuty/lance_note","description":null,"fork":false,"url":"https://api.github.com/repos/fukuty/lance_note","forks_url":"https://api.github.com/repos/fukuty/lance_note/forks","keys_url":"https://api.github.com/repos/fukuty/lance_note/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fukuty/lance_note/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fukuty/lance_note/teams","hooks_url":"https://api.github.com/repos/fukuty/lance_note/hooks","issue_events_url":"https://api.github.com/repos/fukuty/lance_note/issues/events{/number}","events_url":"https://api.github.com/repos/fukuty/lance_note/events","assignees_url":"https://api.github.com/repos/fukuty/lance_note/assignees{/user}","branches_url":"https://api.github.com/repos/fukuty/lance_note/branches{/branch}","tags_url":"https://api.github.com/repos/fukuty/lance_note/tags","blobs_url":"https://api.github.com/repos/fukuty/lance_note/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fukuty/lance_note/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fukuty/lance_note/git/refs{/sha}","trees_url":"https://api.github.com/repos/fukuty/lance_note/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fukuty/lance_note/statuses/{sha}","languages_url":"https://api.github.com/repos/fukuty/lance_note/languages","stargazers_url":"https://api.github.com/repos/fukuty/lance_note/stargazers","contributors_url":"https://api.github.com/repos/fukuty/lance_note/contributors","subscribers_url":"https://api.github.com/repos/fukuty/lance_note/subscribers","subscription_url":"https://api.github.com/repos/fukuty/lance_note/subscription","commits_url":"https://api.github.com/repos/fukuty/lance_note/commits{/sha}","git_commits_url":"https://api.github.com/repos/fukuty/lance_note/git/commits{/sha}","comments_url":"https://api.github.com/repos/fukuty/lance_note/comments{/number}","issue_comment_url":"https://api.github.com/repos/fukuty/lance_note/issues/comments{/number}","contents_url":"https://api.github.com/repos/fukuty/lance_note/contents/{+path}","compare_url":"https://api.github.com/repos/fukuty/lance_note/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fukuty/lance_note/merges","archive_url":"https://api.github.com/repos/fukuty/lance_note/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fukuty/lance_note/downloads","issues_url":"https://api.github.com/repos/fukuty/lance_note/issues{/number}","pulls_url":"https://api.github.com/repos/fukuty/lance_note/pulls{/number}","milestones_url":"https://api.github.com/repos/fukuty/lance_note/milestones{/number}","notifications_url":"https://api.github.com/repos/fukuty/lance_note/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fukuty/lance_note/labels{/name}","releases_url":"https://api.github.com/repos/fukuty/lance_note/releases{/id}","deployments_url":"https://api.github.com/repos/fukuty/lance_note/deployments","created_at":"2018-05-06T06:21:28Z","updated_at":"2018-07-09T04:07:09Z","pushed_at":"2018-07-14T05:45:43Z","git_url":"git://github.com/fukuty/lance_note.git","ssh_url":"git@github.com:fukuty/lance_note.git","clone_url":"https://github.com/fukuty/lance_note.git","svn_url":"https://github.com/fukuty/lance_note","homepage":"","size":115118,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"fukuty:master","ref":"master","sha":"e2098380c5117298344113ae6f1a56b044c89614","user":{"login":"fukuty","id":18551496,"node_id":"MDQ6VXNlcjE4NTUxNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/18551496?v=4","gravatar_id":"","url":"https://api.github.com/users/fukuty","html_url":"https://github.com/fukuty","followers_url":"https://api.github.com/users/fukuty/followers","following_url":"https://api.github.com/users/fukuty/following{/other_user}","gists_url":"https://api.github.com/users/fukuty/gists{/gist_id}","starred_url":"https://api.github.com/users/fukuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukuty/subscriptions","organizations_url":"https://api.github.com/users/fukuty/orgs","repos_url":"https://api.github.com/users/fukuty/repos","events_url":"https://api.github.com/users/fukuty/events{/privacy}","received_events_url":"https://api.github.com/users/fukuty/received_events","type":"User","site_admin":false},"repo":{"id":132312499,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIzMTI0OTk=","name":"lance_note","full_name":"fukuty/lance_note","owner":{"login":"fukuty","id":18551496,"node_id":"MDQ6VXNlcjE4NTUxNDk2","avatar_url":"https://avatars0.githubusercontent.com/u/18551496?v=4","gravatar_id":"","url":"https://api.github.com/users/fukuty","html_url":"https://github.com/fukuty","followers_url":"https://api.github.com/users/fukuty/followers","following_url":"https://api.github.com/users/fukuty/following{/other_user}","gists_url":"https://api.github.com/users/fukuty/gists{/gist_id}","starred_url":"https://api.github.com/users/fukuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukuty/subscriptions","organizations_url":"https://api.github.com/users/fukuty/orgs","repos_url":"https://api.github.com/users/fukuty/repos","events_url":"https://api.github.com/users/fukuty/events{/privacy}","received_events_url":"https://api.github.com/users/fukuty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fukuty/lance_note","description":null,"fork":false,"url":"https://api.github.com/repos/fukuty/lance_note","forks_url":"https://api.github.com/repos/fukuty/lance_note/forks","keys_url":"https://api.github.com/repos/fukuty/lance_note/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fukuty/lance_note/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fukuty/lance_note/teams","hooks_url":"https://api.github.com/repos/fukuty/lance_note/hooks","issue_events_url":"https://api.github.com/repos/fukuty/lance_note/issues/events{/number}","events_url":"https://api.github.com/repos/fukuty/lance_note/events","assignees_url":"https://api.github.com/repos/fukuty/lance_note/assignees{/user}","branches_url":"https://api.github.com/repos/fukuty/lance_note/branches{/branch}","tags_url":"https://api.github.com/repos/fukuty/lance_note/tags","blobs_url":"https://api.github.com/repos/fukuty/lance_note/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fukuty/lance_note/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fukuty/lance_note/git/refs{/sha}","trees_url":"https://api.github.com/repos/fukuty/lance_note/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fukuty/lance_note/statuses/{sha}","languages_url":"https://api.github.com/repos/fukuty/lance_note/languages","stargazers_url":"https://api.github.com/repos/fukuty/lance_note/stargazers","contributors_url":"https://api.github.com/repos/fukuty/lance_note/contributors","subscribers_url":"https://api.github.com/repos/fukuty/lance_note/subscribers","subscription_url":"https://api.github.com/repos/fukuty/lance_note/subscription","commits_url":"https://api.github.com/repos/fukuty/lance_note/commits{/sha}","git_commits_url":"https://api.github.com/repos/fukuty/lance_note/git/commits{/sha}","comments_url":"https://api.github.com/repos/fukuty/lance_note/comments{/number}","issue_comment_url":"https://api.github.com/repos/fukuty/lance_note/issues/comments{/number}","contents_url":"https://api.github.com/repos/fukuty/lance_note/contents/{+path}","compare_url":"https://api.github.com/repos/fukuty/lance_note/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fukuty/lance_note/merges","archive_url":"https://api.github.com/repos/fukuty/lance_note/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fukuty/lance_note/downloads","issues_url":"https://api.github.com/repos/fukuty/lance_note/issues{/number}","pulls_url":"https://api.github.com/repos/fukuty/lance_note/pulls{/number}","milestones_url":"https://api.github.com/repos/fukuty/lance_note/milestones{/number}","notifications_url":"https://api.github.com/repos/fukuty/lance_note/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fukuty/lance_note/labels{/name}","releases_url":"https://api.github.com/repos/fukuty/lance_note/releases{/id}","deployments_url":"https://api.github.com/repos/fukuty/lance_note/deployments","created_at":"2018-05-06T06:21:28Z","updated_at":"2018-07-09T04:07:09Z","pushed_at":"2018-07-14T05:45:43Z","git_url":"git://github.com/fukuty/lance_note.git","ssh_url":"git@github.com:fukuty/lance_note.git","clone_url":"https://github.com/fukuty/lance_note.git","svn_url":"https://github.com/fukuty/lance_note","homepage":"","size":115118,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/16"},"html":{"href":"https://github.com/fukuty/lance_note/pull/16"},"issue":{"href":"https://api.github.com/repos/fukuty/lance_note/issues/16"},"comments":{"href":"https://api.github.com/repos/fukuty/lance_note/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fukuty/lance_note/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/fukuty/lance_note/statuses/0c6e9d37935cb35e30d8de29b63355cb45f44e6f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"miyagit"}}