{"action":"created","comment":{"url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/comments/95588193","pull_request_review_id":16147939,"id":95588193,"diff_hunk":"@@ -1,4 +1,21 @@\n export default function progress(state = [], action) {\n-  console.log(state, action);\n+  switch(action.type) {\n+    case 'ANSWER_QUESTION':\n+      const questionId = action.questionId\n+      const answerId = action.answerId\n+\n+      return Object.assign({}, state, {\n+        answers: [\n+          ...state.answers,\n+          {\n+            questionId,\n+            answerId\n+          }\n+        ]\n+      })\n+      // Goto next question\n+      return newState;","path":"src/reducers/progress.js","position":null,"original_position":18,"commit_id":"34eee3b08dd74e5d9f9b70c25e5818bbf41ca090","original_commit_id":"3a4ba2b59705edfd26b0e0f59bd782a8c343894a","user":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"body":"Removed","created_at":"2017-01-11T14:30:19Z","updated_at":"2017-01-11T14:30:20Z","html_url":"https://github.com/Hacklor/adventure-game/pull/1#discussion_r95588193","pull_request_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/comments/95588193"},"html":{"href":"https://github.com/Hacklor/adventure-game/pull/1#discussion_r95588193"},"pull_request":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1","id":101065473,"html_url":"https://github.com/Hacklor/adventure-game/pull/1","diff_url":"https://github.com/Hacklor/adventure-game/pull/1.diff","patch_url":"https://github.com/Hacklor/adventure-game/pull/1.patch","issue_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/1","number":1,"state":"open","locked":false,"title":"Add action and reducer that changes the state when answering a question","user":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"body":"This does not go to the next question yet","created_at":"2017-01-11T13:24:54Z","updated_at":"2017-01-11T14:30:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48275e57f7c89b9afcc84ff281a1b0a2fa3f9e58","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/1/comments","statuses_url":"https://api.github.com/repos/Hacklor/adventure-game/statuses/34eee3b08dd74e5d9f9b70c25e5818bbf41ca090","head":{"label":"Hacklor:feature/answer-first-question","ref":"feature/answer-first-question","sha":"34eee3b08dd74e5d9f9b70c25e5818bbf41ca090","user":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"repo":{"id":78641240,"name":"adventure-game","full_name":"Hacklor/adventure-game","owner":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hacklor/adventure-game","description":"Simple adventure-game engine in React with Redux","fork":false,"url":"https://api.github.com/repos/Hacklor/adventure-game","forks_url":"https://api.github.com/repos/Hacklor/adventure-game/forks","keys_url":"https://api.github.com/repos/Hacklor/adventure-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hacklor/adventure-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hacklor/adventure-game/teams","hooks_url":"https://api.github.com/repos/Hacklor/adventure-game/hooks","issue_events_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/events{/number}","events_url":"https://api.github.com/repos/Hacklor/adventure-game/events","assignees_url":"https://api.github.com/repos/Hacklor/adventure-game/assignees{/user}","branches_url":"https://api.github.com/repos/Hacklor/adventure-game/branches{/branch}","tags_url":"https://api.github.com/repos/Hacklor/adventure-game/tags","blobs_url":"https://api.github.com/repos/Hacklor/adventure-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hacklor/adventure-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hacklor/adventure-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hacklor/adventure-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hacklor/adventure-game/statuses/{sha}","languages_url":"https://api.github.com/repos/Hacklor/adventure-game/languages","stargazers_url":"https://api.github.com/repos/Hacklor/adventure-game/stargazers","contributors_url":"https://api.github.com/repos/Hacklor/adventure-game/contributors","subscribers_url":"https://api.github.com/repos/Hacklor/adventure-game/subscribers","subscription_url":"https://api.github.com/repos/Hacklor/adventure-game/subscription","commits_url":"https://api.github.com/repos/Hacklor/adventure-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hacklor/adventure-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hacklor/adventure-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hacklor/adventure-game/contents/{+path}","compare_url":"https://api.github.com/repos/Hacklor/adventure-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hacklor/adventure-game/merges","archive_url":"https://api.github.com/repos/Hacklor/adventure-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hacklor/adventure-game/downloads","issues_url":"https://api.github.com/repos/Hacklor/adventure-game/issues{/number}","pulls_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls{/number}","milestones_url":"https://api.github.com/repos/Hacklor/adventure-game/milestones{/number}","notifications_url":"https://api.github.com/repos/Hacklor/adventure-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hacklor/adventure-game/labels{/name}","releases_url":"https://api.github.com/repos/Hacklor/adventure-game/releases{/id}","deployments_url":"https://api.github.com/repos/Hacklor/adventure-game/deployments","created_at":"2017-01-11T13:23:53Z","updated_at":"2017-01-11T13:24:14Z","pushed_at":"2017-01-11T14:30:10Z","git_url":"git://github.com/Hacklor/adventure-game.git","ssh_url":"git@github.com:Hacklor/adventure-game.git","clone_url":"https://github.com/Hacklor/adventure-game.git","svn_url":"https://github.com/Hacklor/adventure-game","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Hacklor:master","ref":"master","sha":"0db50f780cf8ee8ba55852f1a039b9ec3b63b07c","user":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"repo":{"id":78641240,"name":"adventure-game","full_name":"Hacklor/adventure-game","owner":{"login":"Hacklor","id":3730478,"avatar_url":"https://avatars.githubusercontent.com/u/3730478?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklor","html_url":"https://github.com/Hacklor","followers_url":"https://api.github.com/users/Hacklor/followers","following_url":"https://api.github.com/users/Hacklor/following{/other_user}","gists_url":"https://api.github.com/users/Hacklor/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklor/subscriptions","organizations_url":"https://api.github.com/users/Hacklor/orgs","repos_url":"https://api.github.com/users/Hacklor/repos","events_url":"https://api.github.com/users/Hacklor/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hacklor/adventure-game","description":"Simple adventure-game engine in React with Redux","fork":false,"url":"https://api.github.com/repos/Hacklor/adventure-game","forks_url":"https://api.github.com/repos/Hacklor/adventure-game/forks","keys_url":"https://api.github.com/repos/Hacklor/adventure-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hacklor/adventure-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hacklor/adventure-game/teams","hooks_url":"https://api.github.com/repos/Hacklor/adventure-game/hooks","issue_events_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/events{/number}","events_url":"https://api.github.com/repos/Hacklor/adventure-game/events","assignees_url":"https://api.github.com/repos/Hacklor/adventure-game/assignees{/user}","branches_url":"https://api.github.com/repos/Hacklor/adventure-game/branches{/branch}","tags_url":"https://api.github.com/repos/Hacklor/adventure-game/tags","blobs_url":"https://api.github.com/repos/Hacklor/adventure-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hacklor/adventure-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hacklor/adventure-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hacklor/adventure-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hacklor/adventure-game/statuses/{sha}","languages_url":"https://api.github.com/repos/Hacklor/adventure-game/languages","stargazers_url":"https://api.github.com/repos/Hacklor/adventure-game/stargazers","contributors_url":"https://api.github.com/repos/Hacklor/adventure-game/contributors","subscribers_url":"https://api.github.com/repos/Hacklor/adventure-game/subscribers","subscription_url":"https://api.github.com/repos/Hacklor/adventure-game/subscription","commits_url":"https://api.github.com/repos/Hacklor/adventure-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hacklor/adventure-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hacklor/adventure-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hacklor/adventure-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hacklor/adventure-game/contents/{+path}","compare_url":"https://api.github.com/repos/Hacklor/adventure-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hacklor/adventure-game/merges","archive_url":"https://api.github.com/repos/Hacklor/adventure-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hacklor/adventure-game/downloads","issues_url":"https://api.github.com/repos/Hacklor/adventure-game/issues{/number}","pulls_url":"https://api.github.com/repos/Hacklor/adventure-game/pulls{/number}","milestones_url":"https://api.github.com/repos/Hacklor/adventure-game/milestones{/number}","notifications_url":"https://api.github.com/repos/Hacklor/adventure-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hacklor/adventure-game/labels{/name}","releases_url":"https://api.github.com/repos/Hacklor/adventure-game/releases{/id}","deployments_url":"https://api.github.com/repos/Hacklor/adventure-game/deployments","created_at":"2017-01-11T13:23:53Z","updated_at":"2017-01-11T13:24:14Z","pushed_at":"2017-01-11T14:30:10Z","git_url":"git://github.com/Hacklor/adventure-game.git","ssh_url":"git@github.com:Hacklor/adventure-game.git","clone_url":"https://github.com/Hacklor/adventure-game.git","svn_url":"https://github.com/Hacklor/adventure-game","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1"},"html":{"href":"https://github.com/Hacklor/adventure-game/pull/1"},"issue":{"href":"https://api.github.com/repos/Hacklor/adventure-game/issues/1"},"comments":{"href":"https://api.github.com/repos/Hacklor/adventure-game/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hacklor/adventure-game/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Hacklor/adventure-game/statuses/34eee3b08dd74e5d9f9b70c25e5818bbf41ca090"}}}}
{"actor":{"display_login":"Hacklor"}}