{"action":"created","comment":{"url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/comments/314299869","pull_request_review_id":275417675,"id":314299869,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNDI5OTg2OQ==","diff_hunk":"@@ -1,14 +1,16 @@\n class TasksController < ApplicationController\n   def index\n-    @tasks = Task.all.order(created_at: :desc)\n+    @tasks = Task.joins(:priority).includes(:priority).order(created_at: :desc)\n   end\n \n   def new\n     @task = Task.new\n+    @priorities = Priority.all\n   end\n \n   def create\n     @task = Task.new(task_params)\n+    @task.status = 3","path":"app/controllers/tasks_controller.rb","position":14,"original_position":14,"commit_id":"b90f758770d081a2ff1ca71e57df9d3c37eb2699","original_commit_id":"b90f758770d081a2ff1ca71e57df9d3c37eb2699","user":{"login":"hihats","id":2120249,"node_id":"MDQ6VXNlcjIxMjAyNDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2120249?v=4","gravatar_id":"","url":"https://api.github.com/users/hihats","html_url":"https://github.com/hihats","followers_url":"https://api.github.com/users/hihats/followers","following_url":"https://api.github.com/users/hihats/following{/other_user}","gists_url":"https://api.github.com/users/hihats/gists{/gist_id}","starred_url":"https://api.github.com/users/hihats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hihats/subscriptions","organizations_url":"https://api.github.com/users/hihats/orgs","repos_url":"https://api.github.com/users/hihats/repos","events_url":"https://api.github.com/users/hihats/events{/privacy}","received_events_url":"https://api.github.com/users/hihats/received_events","type":"User","site_admin":false},"body":"仮で３を入れてるだけだと思うけど、こういうときはコメントでTODOアノテーションを書いておきましょう","created_at":"2019-08-15T13:10:30Z","updated_at":"2019-08-15T13:11:41Z","html_url":"https://github.com/takashi-5/TaskManagement/pull/10#discussion_r314299869","pull_request_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/comments/314299869"},"html":{"href":"https://github.com/takashi-5/TaskManagement/pull/10#discussion_r314299869"},"pull_request":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10","id":304183146,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA0MTgzMTQ2","html_url":"https://github.com/takashi-5/TaskManagement/pull/10","diff_url":"https://github.com/takashi-5/TaskManagement/pull/10.diff","patch_url":"https://github.com/takashi-5/TaskManagement/pull/10.patch","issue_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/10","number":10,"state":"open","locked":false,"title":"Regist status","user":{"login":"takashi-5","id":48540301,"node_id":"MDQ6VXNlcjQ4NTQwMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/48540301?v=4","gravatar_id":"","url":"https://api.github.com/users/takashi-5","html_url":"https://github.com/takashi-5","followers_url":"https://api.github.com/users/takashi-5/followers","following_url":"https://api.github.com/users/takashi-5/following{/other_user}","gists_url":"https://api.github.com/users/takashi-5/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-5/subscriptions","organizations_url":"https://api.github.com/users/takashi-5/orgs","repos_url":"https://api.github.com/users/takashi-5/repos","events_url":"https://api.github.com/users/takashi-5/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-5/received_events","type":"User","site_admin":false},"body":"## 処理概要\r\n\r\n- タスク作成時にデフォルトで3(未着手に対応)がstatusカラムに格納されるようにしました。\r\n\r\n- 編集画面にステータス欄を追加し、数字を変更できるようにしました。\r\n\r\n## 要件・仕様\r\n\r\n- 今回はstatus_idに直さずにassociation名を変更してみようと思います。\r\n\r\n## 特記\r\n- 一覧と詳細画面での表示は数字になっているので優先順位と同様、文字列を引っ張ってくる予定です。\r\n","created_at":"2019-08-05T07:53:47Z","updated_at":"2019-08-15T13:11:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6484049015c5f6ca4c6b9c60f75a6146b911232b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10/commits","review_comments_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10/comments","review_comment_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/10/comments","statuses_url":"https://api.github.com/repos/takashi-5/TaskManagement/statuses/b90f758770d081a2ff1ca71e57df9d3c37eb2699","head":{"label":"takashi-5:regist-status","ref":"regist-status","sha":"b90f758770d081a2ff1ca71e57df9d3c37eb2699","user":{"login":"takashi-5","id":48540301,"node_id":"MDQ6VXNlcjQ4NTQwMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/48540301?v=4","gravatar_id":"","url":"https://api.github.com/users/takashi-5","html_url":"https://github.com/takashi-5","followers_url":"https://api.github.com/users/takashi-5/followers","following_url":"https://api.github.com/users/takashi-5/following{/other_user}","gists_url":"https://api.github.com/users/takashi-5/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-5/subscriptions","organizations_url":"https://api.github.com/users/takashi-5/orgs","repos_url":"https://api.github.com/users/takashi-5/repos","events_url":"https://api.github.com/users/takashi-5/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-5/received_events","type":"User","site_admin":false},"repo":{"id":194999204,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQ5OTkyMDQ=","name":"TaskManagement","full_name":"takashi-5/TaskManagement","private":false,"owner":{"login":"takashi-5","id":48540301,"node_id":"MDQ6VXNlcjQ4NTQwMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/48540301?v=4","gravatar_id":"","url":"https://api.github.com/users/takashi-5","html_url":"https://github.com/takashi-5","followers_url":"https://api.github.com/users/takashi-5/followers","following_url":"https://api.github.com/users/takashi-5/following{/other_user}","gists_url":"https://api.github.com/users/takashi-5/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-5/subscriptions","organizations_url":"https://api.github.com/users/takashi-5/orgs","repos_url":"https://api.github.com/users/takashi-5/repos","events_url":"https://api.github.com/users/takashi-5/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-5/received_events","type":"User","site_admin":false},"html_url":"https://github.com/takashi-5/TaskManagement","description":null,"fork":true,"url":"https://api.github.com/repos/takashi-5/TaskManagement","forks_url":"https://api.github.com/repos/takashi-5/TaskManagement/forks","keys_url":"https://api.github.com/repos/takashi-5/TaskManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takashi-5/TaskManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takashi-5/TaskManagement/teams","hooks_url":"https://api.github.com/repos/takashi-5/TaskManagement/hooks","issue_events_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/events{/number}","events_url":"https://api.github.com/repos/takashi-5/TaskManagement/events","assignees_url":"https://api.github.com/repos/takashi-5/TaskManagement/assignees{/user}","branches_url":"https://api.github.com/repos/takashi-5/TaskManagement/branches{/branch}","tags_url":"https://api.github.com/repos/takashi-5/TaskManagement/tags","blobs_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takashi-5/TaskManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/takashi-5/TaskManagement/languages","stargazers_url":"https://api.github.com/repos/takashi-5/TaskManagement/stargazers","contributors_url":"https://api.github.com/repos/takashi-5/TaskManagement/contributors","subscribers_url":"https://api.github.com/repos/takashi-5/TaskManagement/subscribers","subscription_url":"https://api.github.com/repos/takashi-5/TaskManagement/subscription","commits_url":"https://api.github.com/repos/takashi-5/TaskManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/takashi-5/TaskManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/takashi-5/TaskManagement/contents/{+path}","compare_url":"https://api.github.com/repos/takashi-5/TaskManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takashi-5/TaskManagement/merges","archive_url":"https://api.github.com/repos/takashi-5/TaskManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takashi-5/TaskManagement/downloads","issues_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues{/number}","pulls_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/takashi-5/TaskManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/takashi-5/TaskManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takashi-5/TaskManagement/labels{/name}","releases_url":"https://api.github.com/repos/takashi-5/TaskManagement/releases{/id}","deployments_url":"https://api.github.com/repos/takashi-5/TaskManagement/deployments","created_at":"2019-07-03T07:09:52Z","updated_at":"2019-08-15T13:09:13Z","pushed_at":"2019-08-15T13:09:14Z","git_url":"git://github.com/takashi-5/TaskManagement.git","ssh_url":"git@github.com:takashi-5/TaskManagement.git","clone_url":"https://github.com/takashi-5/TaskManagement.git","svn_url":"https://github.com/takashi-5/TaskManagement","homepage":null,"size":3555,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"takashi-5:master","ref":"master","sha":"0174e4b4ecb03b1bbb6baa1e82c08a6c05552acc","user":{"login":"takashi-5","id":48540301,"node_id":"MDQ6VXNlcjQ4NTQwMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/48540301?v=4","gravatar_id":"","url":"https://api.github.com/users/takashi-5","html_url":"https://github.com/takashi-5","followers_url":"https://api.github.com/users/takashi-5/followers","following_url":"https://api.github.com/users/takashi-5/following{/other_user}","gists_url":"https://api.github.com/users/takashi-5/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-5/subscriptions","organizations_url":"https://api.github.com/users/takashi-5/orgs","repos_url":"https://api.github.com/users/takashi-5/repos","events_url":"https://api.github.com/users/takashi-5/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-5/received_events","type":"User","site_admin":false},"repo":{"id":194999204,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQ5OTkyMDQ=","name":"TaskManagement","full_name":"takashi-5/TaskManagement","private":false,"owner":{"login":"takashi-5","id":48540301,"node_id":"MDQ6VXNlcjQ4NTQwMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/48540301?v=4","gravatar_id":"","url":"https://api.github.com/users/takashi-5","html_url":"https://github.com/takashi-5","followers_url":"https://api.github.com/users/takashi-5/followers","following_url":"https://api.github.com/users/takashi-5/following{/other_user}","gists_url":"https://api.github.com/users/takashi-5/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-5/subscriptions","organizations_url":"https://api.github.com/users/takashi-5/orgs","repos_url":"https://api.github.com/users/takashi-5/repos","events_url":"https://api.github.com/users/takashi-5/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-5/received_events","type":"User","site_admin":false},"html_url":"https://github.com/takashi-5/TaskManagement","description":null,"fork":true,"url":"https://api.github.com/repos/takashi-5/TaskManagement","forks_url":"https://api.github.com/repos/takashi-5/TaskManagement/forks","keys_url":"https://api.github.com/repos/takashi-5/TaskManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takashi-5/TaskManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takashi-5/TaskManagement/teams","hooks_url":"https://api.github.com/repos/takashi-5/TaskManagement/hooks","issue_events_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/events{/number}","events_url":"https://api.github.com/repos/takashi-5/TaskManagement/events","assignees_url":"https://api.github.com/repos/takashi-5/TaskManagement/assignees{/user}","branches_url":"https://api.github.com/repos/takashi-5/TaskManagement/branches{/branch}","tags_url":"https://api.github.com/repos/takashi-5/TaskManagement/tags","blobs_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takashi-5/TaskManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/takashi-5/TaskManagement/languages","stargazers_url":"https://api.github.com/repos/takashi-5/TaskManagement/stargazers","contributors_url":"https://api.github.com/repos/takashi-5/TaskManagement/contributors","subscribers_url":"https://api.github.com/repos/takashi-5/TaskManagement/subscribers","subscription_url":"https://api.github.com/repos/takashi-5/TaskManagement/subscription","commits_url":"https://api.github.com/repos/takashi-5/TaskManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/takashi-5/TaskManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/takashi-5/TaskManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues/comments{/number}","contents_url":"https://api.github.com/repos/takashi-5/TaskManagement/contents/{+path}","compare_url":"https://api.github.com/repos/takashi-5/TaskManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takashi-5/TaskManagement/merges","archive_url":"https://api.github.com/repos/takashi-5/TaskManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takashi-5/TaskManagement/downloads","issues_url":"https://api.github.com/repos/takashi-5/TaskManagement/issues{/number}","pulls_url":"https://api.github.com/repos/takashi-5/TaskManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/takashi-5/TaskManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/takashi-5/TaskManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takashi-5/TaskManagement/labels{/name}","releases_url":"https://api.github.com/repos/takashi-5/TaskManagement/releases{/id}","deployments_url":"https://api.github.com/repos/takashi-5/TaskManagement/deployments","created_at":"2019-07-03T07:09:52Z","updated_at":"2019-08-15T13:09:13Z","pushed_at":"2019-08-15T13:09:14Z","git_url":"git://github.com/takashi-5/TaskManagement.git","ssh_url":"git@github.com:takashi-5/TaskManagement.git","clone_url":"https://github.com/takashi-5/TaskManagement.git","svn_url":"https://github.com/takashi-5/TaskManagement","homepage":null,"size":3555,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10"},"html":{"href":"https://github.com/takashi-5/TaskManagement/pull/10"},"issue":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/issues/10"},"comments":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/takashi-5/TaskManagement/statuses/b90f758770d081a2ff1ca71e57df9d3c37eb2699"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hihats"}}