{"action":"created","comment":{"url":"https://api.github.com/repos/tedexample/shumishareca/pulls/comments/201267593","pull_request_review_id":135733183,"id":201267593,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTI2NzU5Mw==","diff_hunk":"@@ -69,6 +69,11 @@\n     t.index [\"user_id\"], name: \"index_posts_on_user_id\"\n   end\n \n+  create_table \"searches\", force: :cascade do |t|","path":"db/schema.rb","position":null,"original_position":13,"commit_id":"7d60fd0aac3d8c5f9f5b06d8a3f514e25d4f0e70","original_commit_id":"a690d7dbb371e9c3c99448ea3f9522fa47005b2e","user":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"body":"@ms2sato 最近はgit addでファイル毎にaddしていましたが、編集したファイル名が色づいていたのでそれをザーッとaddしていたので余計なファイルまでコミットしてしまってようですね。\r\n次回から気をつけますね。","created_at":"2018-07-10T09:03:36Z","updated_at":"2018-07-10T09:03:36Z","html_url":"https://github.com/tedexample/shumishareca/pull/49#discussion_r201267593","pull_request_url":"https://api.github.com/repos/tedexample/shumishareca/pulls/49","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/comments/201267593"},"html":{"href":"https://github.com/tedexample/shumishareca/pull/49#discussion_r201267593"},"pull_request":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/49"}},"in_reply_to_id":201211346},"pull_request":{"url":"https://api.github.com/repos/tedexample/shumishareca/pulls/49","id":198283500,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MjgzNTAw","html_url":"https://github.com/tedexample/shumishareca/pull/49","diff_url":"https://github.com/tedexample/shumishareca/pull/49.diff","patch_url":"https://github.com/tedexample/shumishareca/pull/49.patch","issue_url":"https://api.github.com/repos/tedexample/shumishareca/issues/49","number":49,"state":"open","locked":false,"title":"【WIP】 reedit comment","user":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"body":"#46 の対応\r\n編集内容\r\n・投稿詳細画面にコメントの一覧を表示\r\n＝＞コントローラーとエラーメッセージを表示するコードの中に空のcommentインスタンスをbuildするコードがいるために\r\ncomment.user.nameでコメントインスタンスのユーザーの名前がnilになっているのが原因でした。\r\n#47　コメントのエラー表示の件と関連があるのでひとまず（欲しいタイミングで）ユーザー名が読み出せない不具合を一旦修正しています。\r\n※エラー表示コードを丸ごと消しているのでエラーを吐かずに動いてます。\r\n\r\n練習と原因調査にbinding.pryのgemを入れてます。","created_at":"2018-06-29T10:56:22Z","updated_at":"2018-07-10T09:03:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d653c973beb15060898aabb1d006ba8ec02a048","assignee":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"assignees":[{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tedexample/shumishareca/pulls/49/commits","review_comments_url":"https://api.github.com/repos/tedexample/shumishareca/pulls/49/comments","review_comment_url":"https://api.github.com/repos/tedexample/shumishareca/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tedexample/shumishareca/issues/49/comments","statuses_url":"https://api.github.com/repos/tedexample/shumishareca/statuses/7d60fd0aac3d8c5f9f5b06d8a3f514e25d4f0e70","head":{"label":"tedexample:reedit_comment","ref":"reedit_comment","sha":"7d60fd0aac3d8c5f9f5b06d8a3f514e25d4f0e70","user":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"repo":{"id":137558191,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1NTgxOTE=","name":"shumishareca","full_name":"tedexample/shumishareca","owner":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tedexample/shumishareca","description":"shumishare　趣味共有アプリケーション","fork":false,"url":"https://api.github.com/repos/tedexample/shumishareca","forks_url":"https://api.github.com/repos/tedexample/shumishareca/forks","keys_url":"https://api.github.com/repos/tedexample/shumishareca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tedexample/shumishareca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tedexample/shumishareca/teams","hooks_url":"https://api.github.com/repos/tedexample/shumishareca/hooks","issue_events_url":"https://api.github.com/repos/tedexample/shumishareca/issues/events{/number}","events_url":"https://api.github.com/repos/tedexample/shumishareca/events","assignees_url":"https://api.github.com/repos/tedexample/shumishareca/assignees{/user}","branches_url":"https://api.github.com/repos/tedexample/shumishareca/branches{/branch}","tags_url":"https://api.github.com/repos/tedexample/shumishareca/tags","blobs_url":"https://api.github.com/repos/tedexample/shumishareca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tedexample/shumishareca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tedexample/shumishareca/git/refs{/sha}","trees_url":"https://api.github.com/repos/tedexample/shumishareca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tedexample/shumishareca/statuses/{sha}","languages_url":"https://api.github.com/repos/tedexample/shumishareca/languages","stargazers_url":"https://api.github.com/repos/tedexample/shumishareca/stargazers","contributors_url":"https://api.github.com/repos/tedexample/shumishareca/contributors","subscribers_url":"https://api.github.com/repos/tedexample/shumishareca/subscribers","subscription_url":"https://api.github.com/repos/tedexample/shumishareca/subscription","commits_url":"https://api.github.com/repos/tedexample/shumishareca/commits{/sha}","git_commits_url":"https://api.github.com/repos/tedexample/shumishareca/git/commits{/sha}","comments_url":"https://api.github.com/repos/tedexample/shumishareca/comments{/number}","issue_comment_url":"https://api.github.com/repos/tedexample/shumishareca/issues/comments{/number}","contents_url":"https://api.github.com/repos/tedexample/shumishareca/contents/{+path}","compare_url":"https://api.github.com/repos/tedexample/shumishareca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tedexample/shumishareca/merges","archive_url":"https://api.github.com/repos/tedexample/shumishareca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tedexample/shumishareca/downloads","issues_url":"https://api.github.com/repos/tedexample/shumishareca/issues{/number}","pulls_url":"https://api.github.com/repos/tedexample/shumishareca/pulls{/number}","milestones_url":"https://api.github.com/repos/tedexample/shumishareca/milestones{/number}","notifications_url":"https://api.github.com/repos/tedexample/shumishareca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tedexample/shumishareca/labels{/name}","releases_url":"https://api.github.com/repos/tedexample/shumishareca/releases{/id}","deployments_url":"https://api.github.com/repos/tedexample/shumishareca/deployments","created_at":"2018-06-16T06:16:00Z","updated_at":"2018-07-10T06:27:18Z","pushed_at":"2018-07-10T08:57:21Z","git_url":"git://github.com/tedexample/shumishareca.git","ssh_url":"git@github.com:tedexample/shumishareca.git","clone_url":"https://github.com/tedexample/shumishareca.git","svn_url":"https://github.com/tedexample/shumishareca","homepage":null,"size":210,"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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"tedexample:master","ref":"master","sha":"d7b76a0c230aa400a4f125e8d82da199bafeb585","user":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"repo":{"id":137558191,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1NTgxOTE=","name":"shumishareca","full_name":"tedexample/shumishareca","owner":{"login":"tedexample","id":38160229,"node_id":"MDQ6VXNlcjM4MTYwMjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38160229?v=4","gravatar_id":"","url":"https://api.github.com/users/tedexample","html_url":"https://github.com/tedexample","followers_url":"https://api.github.com/users/tedexample/followers","following_url":"https://api.github.com/users/tedexample/following{/other_user}","gists_url":"https://api.github.com/users/tedexample/gists{/gist_id}","starred_url":"https://api.github.com/users/tedexample/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedexample/subscriptions","organizations_url":"https://api.github.com/users/tedexample/orgs","repos_url":"https://api.github.com/users/tedexample/repos","events_url":"https://api.github.com/users/tedexample/events{/privacy}","received_events_url":"https://api.github.com/users/tedexample/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tedexample/shumishareca","description":"shumishare　趣味共有アプリケーション","fork":false,"url":"https://api.github.com/repos/tedexample/shumishareca","forks_url":"https://api.github.com/repos/tedexample/shumishareca/forks","keys_url":"https://api.github.com/repos/tedexample/shumishareca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tedexample/shumishareca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tedexample/shumishareca/teams","hooks_url":"https://api.github.com/repos/tedexample/shumishareca/hooks","issue_events_url":"https://api.github.com/repos/tedexample/shumishareca/issues/events{/number}","events_url":"https://api.github.com/repos/tedexample/shumishareca/events","assignees_url":"https://api.github.com/repos/tedexample/shumishareca/assignees{/user}","branches_url":"https://api.github.com/repos/tedexample/shumishareca/branches{/branch}","tags_url":"https://api.github.com/repos/tedexample/shumishareca/tags","blobs_url":"https://api.github.com/repos/tedexample/shumishareca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tedexample/shumishareca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tedexample/shumishareca/git/refs{/sha}","trees_url":"https://api.github.com/repos/tedexample/shumishareca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tedexample/shumishareca/statuses/{sha}","languages_url":"https://api.github.com/repos/tedexample/shumishareca/languages","stargazers_url":"https://api.github.com/repos/tedexample/shumishareca/stargazers","contributors_url":"https://api.github.com/repos/tedexample/shumishareca/contributors","subscribers_url":"https://api.github.com/repos/tedexample/shumishareca/subscribers","subscription_url":"https://api.github.com/repos/tedexample/shumishareca/subscription","commits_url":"https://api.github.com/repos/tedexample/shumishareca/commits{/sha}","git_commits_url":"https://api.github.com/repos/tedexample/shumishareca/git/commits{/sha}","comments_url":"https://api.github.com/repos/tedexample/shumishareca/comments{/number}","issue_comment_url":"https://api.github.com/repos/tedexample/shumishareca/issues/comments{/number}","contents_url":"https://api.github.com/repos/tedexample/shumishareca/contents/{+path}","compare_url":"https://api.github.com/repos/tedexample/shumishareca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tedexample/shumishareca/merges","archive_url":"https://api.github.com/repos/tedexample/shumishareca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tedexample/shumishareca/downloads","issues_url":"https://api.github.com/repos/tedexample/shumishareca/issues{/number}","pulls_url":"https://api.github.com/repos/tedexample/shumishareca/pulls{/number}","milestones_url":"https://api.github.com/repos/tedexample/shumishareca/milestones{/number}","notifications_url":"https://api.github.com/repos/tedexample/shumishareca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tedexample/shumishareca/labels{/name}","releases_url":"https://api.github.com/repos/tedexample/shumishareca/releases{/id}","deployments_url":"https://api.github.com/repos/tedexample/shumishareca/deployments","created_at":"2018-06-16T06:16:00Z","updated_at":"2018-07-10T06:27:18Z","pushed_at":"2018-07-10T08:57:21Z","git_url":"git://github.com/tedexample/shumishareca.git","ssh_url":"git@github.com:tedexample/shumishareca.git","clone_url":"https://github.com/tedexample/shumishareca.git","svn_url":"https://github.com/tedexample/shumishareca","homepage":null,"size":210,"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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/49"},"html":{"href":"https://github.com/tedexample/shumishareca/pull/49"},"issue":{"href":"https://api.github.com/repos/tedexample/shumishareca/issues/49"},"comments":{"href":"https://api.github.com/repos/tedexample/shumishareca/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tedexample/shumishareca/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/tedexample/shumishareca/statuses/7d60fd0aac3d8c5f9f5b06d8a3f514e25d4f0e70"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tedexample"}}