{"action":"created","comment":{"url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/comments/240860662","pull_request_review_id":183987390,"id":240860662,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDg2MDY2Mg==","diff_hunk":"@@ -1,2 +1,8 @@\n class Task < ApplicationRecord\n+  enum status:   { 未着手: 0, 着手: 1, 完了: 2 }\n+  enum priority: { 低: 0, 中: 1, 高: 2 }","path":"app/models/task.rb","position":3,"original_position":3,"commit_id":"a426e3b7d89f3fcb0be08e22406419095903a13e","original_commit_id":"a426e3b7d89f3fcb0be08e22406419095903a13e","user":{"login":"yiworks","id":37338201,"node_id":"MDQ6VXNlcjM3MzM4MjAx","avatar_url":"https://avatars1.githubusercontent.com/u/37338201?v=4","gravatar_id":"","url":"https://api.github.com/users/yiworks","html_url":"https://github.com/yiworks","followers_url":"https://api.github.com/users/yiworks/followers","following_url":"https://api.github.com/users/yiworks/following{/other_user}","gists_url":"https://api.github.com/users/yiworks/gists{/gist_id}","starred_url":"https://api.github.com/users/yiworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiworks/subscriptions","organizations_url":"https://api.github.com/users/yiworks/orgs","repos_url":"https://api.github.com/users/yiworks/repos","events_url":"https://api.github.com/users/yiworks/events{/privacy}","received_events_url":"https://api.github.com/users/yiworks/received_events","type":"User","site_admin":false},"body":"enumのキーは英語にしておいたほうが扱いやすいかもしれません。\r\n状態の変更や確認をする際に`task.完了?`, `task.完了!`みたいに日本語混じりのメソッドを使用することになります。\r\n\r\nviewに表示する際に日本語化する必要がでてくるので、そちらの手間はかかりますが。。","created_at":"2018-12-12T02:07:46Z","updated_at":"2018-12-12T02:13:41Z","html_url":"https://github.com/Lynns0416/task-tracker/pull/3#discussion_r240860662","pull_request_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/comments/240860662"},"html":{"href":"https://github.com/Lynns0416/task-tracker/pull/3#discussion_r240860662"},"pull_request":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3","id":237554164,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NTU0MTY0","html_url":"https://github.com/Lynns0416/task-tracker/pull/3","diff_url":"https://github.com/Lynns0416/task-tracker/pull/3.diff","patch_url":"https://github.com/Lynns0416/task-tracker/pull/3.patch","issue_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/3","number":3,"state":"open","locked":false,"title":"[fixed #162536259] 7. タスクの表示・登録・更新・削除","user":{"login":"Lynns0416","id":13435384,"node_id":"MDQ6VXNlcjEzNDM1Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/13435384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynns0416","html_url":"https://github.com/Lynns0416","followers_url":"https://api.github.com/users/Lynns0416/followers","following_url":"https://api.github.com/users/Lynns0416/following{/other_user}","gists_url":"https://api.github.com/users/Lynns0416/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynns0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynns0416/subscriptions","organizations_url":"https://api.github.com/users/Lynns0416/orgs","repos_url":"https://api.github.com/users/Lynns0416/repos","events_url":"https://api.github.com/users/Lynns0416/events{/privacy}","received_events_url":"https://api.github.com/users/Lynns0416/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/story/show/162536259\r\n\r\n**【part 1】タスクの表示・登録**\r\n変更が多いため、PRを分割しました。\r\nはじめに、show, new(create) コントローラとビューをそれぞれ実装しました。\r\n- flash の表示は、後続のPRで実装します\r\n","created_at":"2018-12-11T05:22:50Z","updated_at":"2018-12-12T02:13:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e736ee246cf719efb4b58b31d4908064a684d56a","assignee":{"login":"yiworks","id":37338201,"node_id":"MDQ6VXNlcjM3MzM4MjAx","avatar_url":"https://avatars1.githubusercontent.com/u/37338201?v=4","gravatar_id":"","url":"https://api.github.com/users/yiworks","html_url":"https://github.com/yiworks","followers_url":"https://api.github.com/users/yiworks/followers","following_url":"https://api.github.com/users/yiworks/following{/other_user}","gists_url":"https://api.github.com/users/yiworks/gists{/gist_id}","starred_url":"https://api.github.com/users/yiworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiworks/subscriptions","organizations_url":"https://api.github.com/users/yiworks/orgs","repos_url":"https://api.github.com/users/yiworks/repos","events_url":"https://api.github.com/users/yiworks/events{/privacy}","received_events_url":"https://api.github.com/users/yiworks/received_events","type":"User","site_admin":false},"assignees":[{"login":"yiworks","id":37338201,"node_id":"MDQ6VXNlcjM3MzM4MjAx","avatar_url":"https://avatars1.githubusercontent.com/u/37338201?v=4","gravatar_id":"","url":"https://api.github.com/users/yiworks","html_url":"https://github.com/yiworks","followers_url":"https://api.github.com/users/yiworks/followers","following_url":"https://api.github.com/users/yiworks/following{/other_user}","gists_url":"https://api.github.com/users/yiworks/gists{/gist_id}","starred_url":"https://api.github.com/users/yiworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiworks/subscriptions","organizations_url":"https://api.github.com/users/yiworks/orgs","repos_url":"https://api.github.com/users/yiworks/repos","events_url":"https://api.github.com/users/yiworks/events{/privacy}","received_events_url":"https://api.github.com/users/yiworks/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/3/comments","statuses_url":"https://api.github.com/repos/Lynns0416/task-tracker/statuses/a426e3b7d89f3fcb0be08e22406419095903a13e","head":{"label":"Lynns0416:7_create_task_view_and_controller","ref":"7_create_task_view_and_controller","sha":"a426e3b7d89f3fcb0be08e22406419095903a13e","user":{"login":"Lynns0416","id":13435384,"node_id":"MDQ6VXNlcjEzNDM1Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/13435384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynns0416","html_url":"https://github.com/Lynns0416","followers_url":"https://api.github.com/users/Lynns0416/followers","following_url":"https://api.github.com/users/Lynns0416/following{/other_user}","gists_url":"https://api.github.com/users/Lynns0416/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynns0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynns0416/subscriptions","organizations_url":"https://api.github.com/users/Lynns0416/orgs","repos_url":"https://api.github.com/users/Lynns0416/repos","events_url":"https://api.github.com/users/Lynns0416/events{/privacy}","received_events_url":"https://api.github.com/users/Lynns0416/received_events","type":"User","site_admin":false},"repo":{"id":161132803,"node_id":"MDEwOlJlcG9zaXRvcnkxNjExMzI4MDM=","name":"task-tracker","full_name":"Lynns0416/task-tracker","private":false,"owner":{"login":"Lynns0416","id":13435384,"node_id":"MDQ6VXNlcjEzNDM1Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/13435384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynns0416","html_url":"https://github.com/Lynns0416","followers_url":"https://api.github.com/users/Lynns0416/followers","following_url":"https://api.github.com/users/Lynns0416/following{/other_user}","gists_url":"https://api.github.com/users/Lynns0416/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynns0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynns0416/subscriptions","organizations_url":"https://api.github.com/users/Lynns0416/orgs","repos_url":"https://api.github.com/users/Lynns0416/repos","events_url":"https://api.github.com/users/Lynns0416/events{/privacy}","received_events_url":"https://api.github.com/users/Lynns0416/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Lynns0416/task-tracker","description":null,"fork":false,"url":"https://api.github.com/repos/Lynns0416/task-tracker","forks_url":"https://api.github.com/repos/Lynns0416/task-tracker/forks","keys_url":"https://api.github.com/repos/Lynns0416/task-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lynns0416/task-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lynns0416/task-tracker/teams","hooks_url":"https://api.github.com/repos/Lynns0416/task-tracker/hooks","issue_events_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/Lynns0416/task-tracker/events","assignees_url":"https://api.github.com/repos/Lynns0416/task-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/Lynns0416/task-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/Lynns0416/task-tracker/tags","blobs_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lynns0416/task-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/Lynns0416/task-tracker/languages","stargazers_url":"https://api.github.com/repos/Lynns0416/task-tracker/stargazers","contributors_url":"https://api.github.com/repos/Lynns0416/task-tracker/contributors","subscribers_url":"https://api.github.com/repos/Lynns0416/task-tracker/subscribers","subscription_url":"https://api.github.com/repos/Lynns0416/task-tracker/subscription","commits_url":"https://api.github.com/repos/Lynns0416/task-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lynns0416/task-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lynns0416/task-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/Lynns0416/task-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lynns0416/task-tracker/merges","archive_url":"https://api.github.com/repos/Lynns0416/task-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lynns0416/task-tracker/downloads","issues_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/Lynns0416/task-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/Lynns0416/task-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lynns0416/task-tracker/labels{/name}","releases_url":"https://api.github.com/repos/Lynns0416/task-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/Lynns0416/task-tracker/deployments","created_at":"2018-12-10T07:12:19Z","updated_at":"2018-12-10T07:13:01Z","pushed_at":"2018-12-12T02:10:24Z","git_url":"git://github.com/Lynns0416/task-tracker.git","ssh_url":"git@github.com:Lynns0416/task-tracker.git","clone_url":"https://github.com/Lynns0416/task-tracker.git","svn_url":"https://github.com/Lynns0416/task-tracker","homepage":null,"size":193,"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":"master"}},"base":{"label":"Lynns0416:develop","ref":"develop","sha":"41f414d5553e07f92bc460f403f18313d9a5e91f","user":{"login":"Lynns0416","id":13435384,"node_id":"MDQ6VXNlcjEzNDM1Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/13435384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynns0416","html_url":"https://github.com/Lynns0416","followers_url":"https://api.github.com/users/Lynns0416/followers","following_url":"https://api.github.com/users/Lynns0416/following{/other_user}","gists_url":"https://api.github.com/users/Lynns0416/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynns0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynns0416/subscriptions","organizations_url":"https://api.github.com/users/Lynns0416/orgs","repos_url":"https://api.github.com/users/Lynns0416/repos","events_url":"https://api.github.com/users/Lynns0416/events{/privacy}","received_events_url":"https://api.github.com/users/Lynns0416/received_events","type":"User","site_admin":false},"repo":{"id":161132803,"node_id":"MDEwOlJlcG9zaXRvcnkxNjExMzI4MDM=","name":"task-tracker","full_name":"Lynns0416/task-tracker","private":false,"owner":{"login":"Lynns0416","id":13435384,"node_id":"MDQ6VXNlcjEzNDM1Mzg0","avatar_url":"https://avatars1.githubusercontent.com/u/13435384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynns0416","html_url":"https://github.com/Lynns0416","followers_url":"https://api.github.com/users/Lynns0416/followers","following_url":"https://api.github.com/users/Lynns0416/following{/other_user}","gists_url":"https://api.github.com/users/Lynns0416/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynns0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynns0416/subscriptions","organizations_url":"https://api.github.com/users/Lynns0416/orgs","repos_url":"https://api.github.com/users/Lynns0416/repos","events_url":"https://api.github.com/users/Lynns0416/events{/privacy}","received_events_url":"https://api.github.com/users/Lynns0416/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Lynns0416/task-tracker","description":null,"fork":false,"url":"https://api.github.com/repos/Lynns0416/task-tracker","forks_url":"https://api.github.com/repos/Lynns0416/task-tracker/forks","keys_url":"https://api.github.com/repos/Lynns0416/task-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lynns0416/task-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lynns0416/task-tracker/teams","hooks_url":"https://api.github.com/repos/Lynns0416/task-tracker/hooks","issue_events_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/Lynns0416/task-tracker/events","assignees_url":"https://api.github.com/repos/Lynns0416/task-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/Lynns0416/task-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/Lynns0416/task-tracker/tags","blobs_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lynns0416/task-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/Lynns0416/task-tracker/languages","stargazers_url":"https://api.github.com/repos/Lynns0416/task-tracker/stargazers","contributors_url":"https://api.github.com/repos/Lynns0416/task-tracker/contributors","subscribers_url":"https://api.github.com/repos/Lynns0416/task-tracker/subscribers","subscription_url":"https://api.github.com/repos/Lynns0416/task-tracker/subscription","commits_url":"https://api.github.com/repos/Lynns0416/task-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lynns0416/task-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lynns0416/task-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lynns0416/task-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/Lynns0416/task-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lynns0416/task-tracker/merges","archive_url":"https://api.github.com/repos/Lynns0416/task-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lynns0416/task-tracker/downloads","issues_url":"https://api.github.com/repos/Lynns0416/task-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/Lynns0416/task-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/Lynns0416/task-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/Lynns0416/task-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lynns0416/task-tracker/labels{/name}","releases_url":"https://api.github.com/repos/Lynns0416/task-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/Lynns0416/task-tracker/deployments","created_at":"2018-12-10T07:12:19Z","updated_at":"2018-12-10T07:13:01Z","pushed_at":"2018-12-12T02:10:24Z","git_url":"git://github.com/Lynns0416/task-tracker.git","ssh_url":"git@github.com:Lynns0416/task-tracker.git","clone_url":"https://github.com/Lynns0416/task-tracker.git","svn_url":"https://github.com/Lynns0416/task-tracker","homepage":null,"size":193,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3"},"html":{"href":"https://github.com/Lynns0416/task-tracker/pull/3"},"issue":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/issues/3"},"comments":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Lynns0416/task-tracker/statuses/a426e3b7d89f3fcb0be08e22406419095903a13e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yiworks"}}