{"action":"created","comment":{"url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/comments/171244171","pull_request_review_id":100057778,"id":171244171,"diff_hunk":"@@ -1,5 +1,5 @@\n class Post < ApplicationRecord\n-  belongs_to :administrator\n+  belongs_to :author, class_name: \"Administrator\", foreign_key: \"administrator_id\"","path":"app/models/post.rb","position":3,"original_position":3,"commit_id":"97785b93a1ed4ebf1ba05ec8a72f8ea83407867e","original_commit_id":"97785b93a1ed4ebf1ba05ec8a72f8ea83407867e","user":{"login":"YukiJikumaru","id":1757915,"avatar_url":"https://avatars2.githubusercontent.com/u/1757915?v=4","gravatar_id":"","url":"https://api.github.com/users/YukiJikumaru","html_url":"https://github.com/YukiJikumaru","followers_url":"https://api.github.com/users/YukiJikumaru/followers","following_url":"https://api.github.com/users/YukiJikumaru/following{/other_user}","gists_url":"https://api.github.com/users/YukiJikumaru/gists{/gist_id}","starred_url":"https://api.github.com/users/YukiJikumaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YukiJikumaru/subscriptions","organizations_url":"https://api.github.com/users/YukiJikumaru/orgs","repos_url":"https://api.github.com/users/YukiJikumaru/repos","events_url":"https://api.github.com/users/YukiJikumaru/events{/privacy}","received_events_url":"https://api.github.com/users/YukiJikumaru/received_events","type":"User","site_admin":false},"body":"なんで`administrator`ではなく`author`にしたの？","created_at":"2018-02-28T13:30:16Z","updated_at":"2018-02-28T13:39:49Z","html_url":"https://github.com/yon-b/blog_app_for_training/pull/33#discussion_r171244171","pull_request_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/comments/171244171"},"html":{"href":"https://github.com/yon-b/blog_app_for_training/pull/33#discussion_r171244171"},"pull_request":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33","id":171928192,"html_url":"https://github.com/yon-b/blog_app_for_training/pull/33","diff_url":"https://github.com/yon-b/blog_app_for_training/pull/33.diff","patch_url":"https://github.com/yon-b/blog_app_for_training/pull/33.patch","issue_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/33","number":33,"state":"open","locked":false,"title":"記事のCRUD作成","user":{"login":"yomoda07","id":24503508,"avatar_url":"https://avatars0.githubusercontent.com/u/24503508?v=4","gravatar_id":"","url":"https://api.github.com/users/yomoda07","html_url":"https://github.com/yomoda07","followers_url":"https://api.github.com/users/yomoda07/followers","following_url":"https://api.github.com/users/yomoda07/following{/other_user}","gists_url":"https://api.github.com/users/yomoda07/gists{/gist_id}","starred_url":"https://api.github.com/users/yomoda07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yomoda07/subscriptions","organizations_url":"https://api.github.com/users/yomoda07/orgs","repos_url":"https://api.github.com/users/yomoda07/repos","events_url":"https://api.github.com/users/yomoda07/events{/privacy}","received_events_url":"https://api.github.com/users/yomoda07/received_events","type":"User","site_admin":false},"body":"#32 \r\n- posts_controllerを下記機能別に二つ作成しました\r\n    - 管理者向けのアクションを定義した`admins/posts_controller`\r\n    - 誰でもアクセスできるアクションを定義した`posts_controller`\r\n\r\nお忙しい中恐縮ですが、レビューを宜しくお願い致します！","created_at":"2018-02-28T11:36:02Z","updated_at":"2018-02-28T13:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ce56029ecc98d190a7eb55dda957ea819ea8f23","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33/commits","review_comments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33/comments","review_comment_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/33/comments","statuses_url":"https://api.github.com/repos/yon-b/blog_app_for_training/statuses/97785b93a1ed4ebf1ba05ec8a72f8ea83407867e","head":{"label":"yon-b:feature/32","ref":"feature/32","sha":"97785b93a1ed4ebf1ba05ec8a72f8ea83407867e","user":{"login":"yon-b","id":21333953,"avatar_url":"https://avatars2.githubusercontent.com/u/21333953?v=4","gravatar_id":"","url":"https://api.github.com/users/yon-b","html_url":"https://github.com/yon-b","followers_url":"https://api.github.com/users/yon-b/followers","following_url":"https://api.github.com/users/yon-b/following{/other_user}","gists_url":"https://api.github.com/users/yon-b/gists{/gist_id}","starred_url":"https://api.github.com/users/yon-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yon-b/subscriptions","organizations_url":"https://api.github.com/users/yon-b/orgs","repos_url":"https://api.github.com/users/yon-b/repos","events_url":"https://api.github.com/users/yon-b/events{/privacy}","received_events_url":"https://api.github.com/users/yon-b/received_events","type":"Organization","site_admin":false},"repo":{"id":122600236,"name":"blog_app_for_training","full_name":"yon-b/blog_app_for_training","owner":{"login":"yon-b","id":21333953,"avatar_url":"https://avatars2.githubusercontent.com/u/21333953?v=4","gravatar_id":"","url":"https://api.github.com/users/yon-b","html_url":"https://github.com/yon-b","followers_url":"https://api.github.com/users/yon-b/followers","following_url":"https://api.github.com/users/yon-b/following{/other_user}","gists_url":"https://api.github.com/users/yon-b/gists{/gist_id}","starred_url":"https://api.github.com/users/yon-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yon-b/subscriptions","organizations_url":"https://api.github.com/users/yon-b/orgs","repos_url":"https://api.github.com/users/yon-b/repos","events_url":"https://api.github.com/users/yon-b/events{/privacy}","received_events_url":"https://api.github.com/users/yon-b/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yon-b/blog_app_for_training","description":null,"fork":false,"url":"https://api.github.com/repos/yon-b/blog_app_for_training","forks_url":"https://api.github.com/repos/yon-b/blog_app_for_training/forks","keys_url":"https://api.github.com/repos/yon-b/blog_app_for_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yon-b/blog_app_for_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yon-b/blog_app_for_training/teams","hooks_url":"https://api.github.com/repos/yon-b/blog_app_for_training/hooks","issue_events_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/events{/number}","events_url":"https://api.github.com/repos/yon-b/blog_app_for_training/events","assignees_url":"https://api.github.com/repos/yon-b/blog_app_for_training/assignees{/user}","branches_url":"https://api.github.com/repos/yon-b/blog_app_for_training/branches{/branch}","tags_url":"https://api.github.com/repos/yon-b/blog_app_for_training/tags","blobs_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yon-b/blog_app_for_training/statuses/{sha}","languages_url":"https://api.github.com/repos/yon-b/blog_app_for_training/languages","stargazers_url":"https://api.github.com/repos/yon-b/blog_app_for_training/stargazers","contributors_url":"https://api.github.com/repos/yon-b/blog_app_for_training/contributors","subscribers_url":"https://api.github.com/repos/yon-b/blog_app_for_training/subscribers","subscription_url":"https://api.github.com/repos/yon-b/blog_app_for_training/subscription","commits_url":"https://api.github.com/repos/yon-b/blog_app_for_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/yon-b/blog_app_for_training/contents/{+path}","compare_url":"https://api.github.com/repos/yon-b/blog_app_for_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yon-b/blog_app_for_training/merges","archive_url":"https://api.github.com/repos/yon-b/blog_app_for_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yon-b/blog_app_for_training/downloads","issues_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues{/number}","pulls_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls{/number}","milestones_url":"https://api.github.com/repos/yon-b/blog_app_for_training/milestones{/number}","notifications_url":"https://api.github.com/repos/yon-b/blog_app_for_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yon-b/blog_app_for_training/labels{/name}","releases_url":"https://api.github.com/repos/yon-b/blog_app_for_training/releases{/id}","deployments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/deployments","created_at":"2018-02-23T09:26:01Z","updated_at":"2018-02-23T09:39:06Z","pushed_at":"2018-02-28T11:36:02Z","git_url":"git://github.com/yon-b/blog_app_for_training.git","ssh_url":"git@github.com:yon-b/blog_app_for_training.git","clone_url":"https://github.com/yon-b/blog_app_for_training.git","svn_url":"https://github.com/yon-b/blog_app_for_training","homepage":null,"size":175,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"yon-b:develop","ref":"develop","sha":"9a42d49d2104c1cf8361a4f9cbd78192c065b35b","user":{"login":"yon-b","id":21333953,"avatar_url":"https://avatars2.githubusercontent.com/u/21333953?v=4","gravatar_id":"","url":"https://api.github.com/users/yon-b","html_url":"https://github.com/yon-b","followers_url":"https://api.github.com/users/yon-b/followers","following_url":"https://api.github.com/users/yon-b/following{/other_user}","gists_url":"https://api.github.com/users/yon-b/gists{/gist_id}","starred_url":"https://api.github.com/users/yon-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yon-b/subscriptions","organizations_url":"https://api.github.com/users/yon-b/orgs","repos_url":"https://api.github.com/users/yon-b/repos","events_url":"https://api.github.com/users/yon-b/events{/privacy}","received_events_url":"https://api.github.com/users/yon-b/received_events","type":"Organization","site_admin":false},"repo":{"id":122600236,"name":"blog_app_for_training","full_name":"yon-b/blog_app_for_training","owner":{"login":"yon-b","id":21333953,"avatar_url":"https://avatars2.githubusercontent.com/u/21333953?v=4","gravatar_id":"","url":"https://api.github.com/users/yon-b","html_url":"https://github.com/yon-b","followers_url":"https://api.github.com/users/yon-b/followers","following_url":"https://api.github.com/users/yon-b/following{/other_user}","gists_url":"https://api.github.com/users/yon-b/gists{/gist_id}","starred_url":"https://api.github.com/users/yon-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yon-b/subscriptions","organizations_url":"https://api.github.com/users/yon-b/orgs","repos_url":"https://api.github.com/users/yon-b/repos","events_url":"https://api.github.com/users/yon-b/events{/privacy}","received_events_url":"https://api.github.com/users/yon-b/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yon-b/blog_app_for_training","description":null,"fork":false,"url":"https://api.github.com/repos/yon-b/blog_app_for_training","forks_url":"https://api.github.com/repos/yon-b/blog_app_for_training/forks","keys_url":"https://api.github.com/repos/yon-b/blog_app_for_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yon-b/blog_app_for_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yon-b/blog_app_for_training/teams","hooks_url":"https://api.github.com/repos/yon-b/blog_app_for_training/hooks","issue_events_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/events{/number}","events_url":"https://api.github.com/repos/yon-b/blog_app_for_training/events","assignees_url":"https://api.github.com/repos/yon-b/blog_app_for_training/assignees{/user}","branches_url":"https://api.github.com/repos/yon-b/blog_app_for_training/branches{/branch}","tags_url":"https://api.github.com/repos/yon-b/blog_app_for_training/tags","blobs_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yon-b/blog_app_for_training/statuses/{sha}","languages_url":"https://api.github.com/repos/yon-b/blog_app_for_training/languages","stargazers_url":"https://api.github.com/repos/yon-b/blog_app_for_training/stargazers","contributors_url":"https://api.github.com/repos/yon-b/blog_app_for_training/contributors","subscribers_url":"https://api.github.com/repos/yon-b/blog_app_for_training/subscribers","subscription_url":"https://api.github.com/repos/yon-b/blog_app_for_training/subscription","commits_url":"https://api.github.com/repos/yon-b/blog_app_for_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/yon-b/blog_app_for_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/yon-b/blog_app_for_training/contents/{+path}","compare_url":"https://api.github.com/repos/yon-b/blog_app_for_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yon-b/blog_app_for_training/merges","archive_url":"https://api.github.com/repos/yon-b/blog_app_for_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yon-b/blog_app_for_training/downloads","issues_url":"https://api.github.com/repos/yon-b/blog_app_for_training/issues{/number}","pulls_url":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls{/number}","milestones_url":"https://api.github.com/repos/yon-b/blog_app_for_training/milestones{/number}","notifications_url":"https://api.github.com/repos/yon-b/blog_app_for_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yon-b/blog_app_for_training/labels{/name}","releases_url":"https://api.github.com/repos/yon-b/blog_app_for_training/releases{/id}","deployments_url":"https://api.github.com/repos/yon-b/blog_app_for_training/deployments","created_at":"2018-02-23T09:26:01Z","updated_at":"2018-02-23T09:39:06Z","pushed_at":"2018-02-28T11:36:02Z","git_url":"git://github.com/yon-b/blog_app_for_training.git","ssh_url":"git@github.com:yon-b/blog_app_for_training.git","clone_url":"https://github.com/yon-b/blog_app_for_training.git","svn_url":"https://github.com/yon-b/blog_app_for_training","homepage":null,"size":175,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33"},"html":{"href":"https://github.com/yon-b/blog_app_for_training/pull/33"},"issue":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/33"},"comments":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/yon-b/blog_app_for_training/statuses/97785b93a1ed4ebf1ba05ec8a72f8ea83407867e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"YukiJikumaru"}}