{"action":"created","comment":{"url":"https://api.github.com/repos/stelisevil/react-project/pulls/comments/211620217","pull_request_review_id":148078446,"id":211620217,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTYyMDIxNw==","diff_hunk":"@@ -10,21 +12,43 @@ class TodoList extends React.Component {\n     this.pressEnter = this.pressEnter.bind(this)\n     this.changeCompleted = this.changeCompleted.bind(this)\n     this.confirmEditTask = this.confirmEditTask.bind(this)\n+    this.toggleCheckBox = this.toggleCheckBox.bind(this)\n+    this.addCategory = this.addCategory.bind(this)\n     this.state = {\n       todos: [\n-        { task: 'Take out the bins', completed: false, isEditing: false, editingTask: '' },\n-        { task: 'Put a wash load on', completed: true, isEditing: false, editingTask: '' },\n-        { task: 'Learn React', completed: false, isEditing: false, editingTask: '' }\n+        { task: 'Take out the bins', completed: false, isEditing: false, editingTask: '', categories: [1,2,3,4] },\n+        { task: 'Put a wash load on', completed: true, isEditing: false, editingTask: '', categories: [1,4] },\n+        { task: 'Learn React', completed: false, isEditing: false, editingTask: '', categories: [3] }\n       ],\n-      newItem: ''\n+      newItem: '',\n+      categories: [\n+        { id: 1, category: \"Urgent\", colour: \"#dc3545\", text: \"white\", checked: false },\n+        { id: 2, category: \"Housework\", colour: \"#007bff\", text: \"white\", checked: false },\n+        { id: 3, category: \"Shopping\", colour: \"#28a745\", text: \"white\", checked: false },\n+        { id: 4, category: \"Birthday\", colour: \"#ffc107\", text: \"black\", checked: false }","path":"src/projects/TodoList/index.js","position":29,"original_position":29,"commit_id":"bf29cad3f3b9008f0d6572ee911685c0e18306ea","original_commit_id":"bf29cad3f3b9008f0d6572ee911685c0e18306ea","user":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-08-21T14:10:54Z","updated_at":"2018-08-21T14:10:55Z","html_url":"https://github.com/stelisevil/react-project/pull/6#discussion_r211620217","pull_request_url":"https://api.github.com/repos/stelisevil/react-project/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/comments/211620217"},"html":{"href":"https://github.com/stelisevil/react-project/pull/6#discussion_r211620217"},"pull_request":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/6"}},"in_reply_to_id":211605126},"pull_request":{"url":"https://api.github.com/repos/stelisevil/react-project/pulls/6","id":209040761,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDQwNzYx","html_url":"https://github.com/stelisevil/react-project/pull/6","diff_url":"https://github.com/stelisevil/react-project/pull/6.diff","patch_url":"https://github.com/stelisevil/react-project/pull/6.patch","issue_url":"https://api.github.com/repos/stelisevil/react-project/issues/6","number":6,"state":"open","locked":false,"title":"Todolist 6","user":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-17T04:06:25Z","updated_at":"2018-08-21T14:10:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81430c7bda9ef4fec206641fbd31bf9b442fe38c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stelisevil/react-project/pulls/6/commits","review_comments_url":"https://api.github.com/repos/stelisevil/react-project/pulls/6/comments","review_comment_url":"https://api.github.com/repos/stelisevil/react-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stelisevil/react-project/issues/6/comments","statuses_url":"https://api.github.com/repos/stelisevil/react-project/statuses/bf29cad3f3b9008f0d6572ee911685c0e18306ea","head":{"label":"stelisevil:todolist-6","ref":"todolist-6","sha":"bf29cad3f3b9008f0d6572ee911685c0e18306ea","user":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"repo":{"id":143912451,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MTI0NTE=","name":"react-project","full_name":"stelisevil/react-project","owner":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stelisevil/react-project","description":null,"fork":false,"url":"https://api.github.com/repos/stelisevil/react-project","forks_url":"https://api.github.com/repos/stelisevil/react-project/forks","keys_url":"https://api.github.com/repos/stelisevil/react-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stelisevil/react-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stelisevil/react-project/teams","hooks_url":"https://api.github.com/repos/stelisevil/react-project/hooks","issue_events_url":"https://api.github.com/repos/stelisevil/react-project/issues/events{/number}","events_url":"https://api.github.com/repos/stelisevil/react-project/events","assignees_url":"https://api.github.com/repos/stelisevil/react-project/assignees{/user}","branches_url":"https://api.github.com/repos/stelisevil/react-project/branches{/branch}","tags_url":"https://api.github.com/repos/stelisevil/react-project/tags","blobs_url":"https://api.github.com/repos/stelisevil/react-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stelisevil/react-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stelisevil/react-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/stelisevil/react-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stelisevil/react-project/statuses/{sha}","languages_url":"https://api.github.com/repos/stelisevil/react-project/languages","stargazers_url":"https://api.github.com/repos/stelisevil/react-project/stargazers","contributors_url":"https://api.github.com/repos/stelisevil/react-project/contributors","subscribers_url":"https://api.github.com/repos/stelisevil/react-project/subscribers","subscription_url":"https://api.github.com/repos/stelisevil/react-project/subscription","commits_url":"https://api.github.com/repos/stelisevil/react-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/stelisevil/react-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/stelisevil/react-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/stelisevil/react-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/stelisevil/react-project/contents/{+path}","compare_url":"https://api.github.com/repos/stelisevil/react-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stelisevil/react-project/merges","archive_url":"https://api.github.com/repos/stelisevil/react-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stelisevil/react-project/downloads","issues_url":"https://api.github.com/repos/stelisevil/react-project/issues{/number}","pulls_url":"https://api.github.com/repos/stelisevil/react-project/pulls{/number}","milestones_url":"https://api.github.com/repos/stelisevil/react-project/milestones{/number}","notifications_url":"https://api.github.com/repos/stelisevil/react-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stelisevil/react-project/labels{/name}","releases_url":"https://api.github.com/repos/stelisevil/react-project/releases{/id}","deployments_url":"https://api.github.com/repos/stelisevil/react-project/deployments","created_at":"2018-08-07T18:31:44Z","updated_at":"2018-08-17T09:22:38Z","pushed_at":"2018-08-21T03:27:24Z","git_url":"git://github.com/stelisevil/react-project.git","ssh_url":"git@github.com:stelisevil/react-project.git","clone_url":"https://github.com/stelisevil/react-project.git","svn_url":"https://github.com/stelisevil/react-project","homepage":null,"size":306,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"stelisevil:master","ref":"master","sha":"853fd5dfe7a9a222232ba83cdacef21725689fab","user":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"repo":{"id":143912451,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MTI0NTE=","name":"react-project","full_name":"stelisevil/react-project","owner":{"login":"stelisevil","id":41406137,"node_id":"MDQ6VXNlcjQxNDA2MTM3","avatar_url":"https://avatars0.githubusercontent.com/u/41406137?v=4","gravatar_id":"","url":"https://api.github.com/users/stelisevil","html_url":"https://github.com/stelisevil","followers_url":"https://api.github.com/users/stelisevil/followers","following_url":"https://api.github.com/users/stelisevil/following{/other_user}","gists_url":"https://api.github.com/users/stelisevil/gists{/gist_id}","starred_url":"https://api.github.com/users/stelisevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelisevil/subscriptions","organizations_url":"https://api.github.com/users/stelisevil/orgs","repos_url":"https://api.github.com/users/stelisevil/repos","events_url":"https://api.github.com/users/stelisevil/events{/privacy}","received_events_url":"https://api.github.com/users/stelisevil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stelisevil/react-project","description":null,"fork":false,"url":"https://api.github.com/repos/stelisevil/react-project","forks_url":"https://api.github.com/repos/stelisevil/react-project/forks","keys_url":"https://api.github.com/repos/stelisevil/react-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stelisevil/react-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stelisevil/react-project/teams","hooks_url":"https://api.github.com/repos/stelisevil/react-project/hooks","issue_events_url":"https://api.github.com/repos/stelisevil/react-project/issues/events{/number}","events_url":"https://api.github.com/repos/stelisevil/react-project/events","assignees_url":"https://api.github.com/repos/stelisevil/react-project/assignees{/user}","branches_url":"https://api.github.com/repos/stelisevil/react-project/branches{/branch}","tags_url":"https://api.github.com/repos/stelisevil/react-project/tags","blobs_url":"https://api.github.com/repos/stelisevil/react-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stelisevil/react-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stelisevil/react-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/stelisevil/react-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stelisevil/react-project/statuses/{sha}","languages_url":"https://api.github.com/repos/stelisevil/react-project/languages","stargazers_url":"https://api.github.com/repos/stelisevil/react-project/stargazers","contributors_url":"https://api.github.com/repos/stelisevil/react-project/contributors","subscribers_url":"https://api.github.com/repos/stelisevil/react-project/subscribers","subscription_url":"https://api.github.com/repos/stelisevil/react-project/subscription","commits_url":"https://api.github.com/repos/stelisevil/react-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/stelisevil/react-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/stelisevil/react-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/stelisevil/react-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/stelisevil/react-project/contents/{+path}","compare_url":"https://api.github.com/repos/stelisevil/react-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stelisevil/react-project/merges","archive_url":"https://api.github.com/repos/stelisevil/react-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stelisevil/react-project/downloads","issues_url":"https://api.github.com/repos/stelisevil/react-project/issues{/number}","pulls_url":"https://api.github.com/repos/stelisevil/react-project/pulls{/number}","milestones_url":"https://api.github.com/repos/stelisevil/react-project/milestones{/number}","notifications_url":"https://api.github.com/repos/stelisevil/react-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stelisevil/react-project/labels{/name}","releases_url":"https://api.github.com/repos/stelisevil/react-project/releases{/id}","deployments_url":"https://api.github.com/repos/stelisevil/react-project/deployments","created_at":"2018-08-07T18:31:44Z","updated_at":"2018-08-17T09:22:38Z","pushed_at":"2018-08-21T03:27:24Z","git_url":"git://github.com/stelisevil/react-project.git","ssh_url":"git@github.com:stelisevil/react-project.git","clone_url":"https://github.com/stelisevil/react-project.git","svn_url":"https://github.com/stelisevil/react-project","homepage":null,"size":306,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/6"},"html":{"href":"https://github.com/stelisevil/react-project/pull/6"},"issue":{"href":"https://api.github.com/repos/stelisevil/react-project/issues/6"},"comments":{"href":"https://api.github.com/repos/stelisevil/react-project/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stelisevil/react-project/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/stelisevil/react-project/statuses/bf29cad3f3b9008f0d6572ee911685c0e18306ea"}},"author_association":"OWNER"}}
{"actor":{"display_login":"stelisevil"}}