{"action":"created","comment":{"url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/comments/139470622","pull_request_review_id":63407722,"id":139470622,"diff_hunk":"@@ -94,6 +97,34 @@ const actionCreators = {\n       type: actions.DELETE_BOARD_FAILURE,\n       payload: { error }\n     };\n+  },\n+  addBoard(boardName, boardColor) {\n+    return async dispatch => {\n+      dispatch({ type: actions.ADD_BOARD });\n+      try {\n+        const response = await BoardService.addBoard(boardName, boardColor);\n+        if (response.ok) {\n+          dispatch(actionCreators.addBoardSuccess());\n+          dispatch(actionCreators.getBoards());\n+        } else {\n+          throw new Error(response);","path":"src/redux/boards/actions.js","position":26,"original_position":26,"commit_id":"7123e116f05111edc6cadb6a19afb164d780dcb0","original_commit_id":"7123e116f05111edc6cadb6a19afb164d780dcb0","user":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"body":"this way you avoid duplicating the dispatch here and in the `catch` block","created_at":"2017-09-18T16:20:37Z","updated_at":"2017-09-18T16:20:37Z","html_url":"https://github.com/sbalay/trello-redux-example/pull/3#discussion_r139470622","pull_request_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/comments/139470622"},"html":{"href":"https://github.com/sbalay/trello-redux-example/pull/3#discussion_r139470622"},"pull_request":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3"}},"in_reply_to_id":138972118},"pull_request":{"url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3","id":141136458,"html_url":"https://github.com/sbalay/trello-redux-example/pull/3","diff_url":"https://github.com/sbalay/trello-redux-example/pull/3.diff","patch_url":"https://github.com/sbalay/trello-redux-example/pull/3.patch","issue_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/3","number":3,"state":"open","locked":false,"title":"implemented modal to add board and board request","user":{"login":"IgnacioAbadie","id":24418053,"avatar_url":"https://avatars2.githubusercontent.com/u/24418053?v=4","gravatar_id":"","url":"https://api.github.com/users/IgnacioAbadie","html_url":"https://github.com/IgnacioAbadie","followers_url":"https://api.github.com/users/IgnacioAbadie/followers","following_url":"https://api.github.com/users/IgnacioAbadie/following{/other_user}","gists_url":"https://api.github.com/users/IgnacioAbadie/gists{/gist_id}","starred_url":"https://api.github.com/users/IgnacioAbadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgnacioAbadie/subscriptions","organizations_url":"https://api.github.com/users/IgnacioAbadie/orgs","repos_url":"https://api.github.com/users/IgnacioAbadie/repos","events_url":"https://api.github.com/users/IgnacioAbadie/events{/privacy}","received_events_url":"https://api.github.com/users/IgnacioAbadie/received_events","type":"User","site_admin":false},"body":"\r\n## Summary\r\nImplemented modal to add board and board request\r\n\r\n## Screenshots\r\n![asd](https://user-images.githubusercontent.com/24418053/30445581-d3427068-995c-11e7-9537-bbe3b11dcc72.gif)\r\n\r\n\r\n## Trello Card\r\nhttps://trello.com/c/LKonCM2d/2-permite-crear-otro-board\r\n","created_at":"2017-09-14T17:44:23Z","updated_at":"2017-09-18T16:20:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8a0f260efa5942c1ae08e5791ec751fc8205cdd","assignee":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},{"login":"IgnacioAbadie","id":24418053,"avatar_url":"https://avatars2.githubusercontent.com/u/24418053?v=4","gravatar_id":"","url":"https://api.github.com/users/IgnacioAbadie","html_url":"https://github.com/IgnacioAbadie","followers_url":"https://api.github.com/users/IgnacioAbadie/followers","following_url":"https://api.github.com/users/IgnacioAbadie/following{/other_user}","gists_url":"https://api.github.com/users/IgnacioAbadie/gists{/gist_id}","starred_url":"https://api.github.com/users/IgnacioAbadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgnacioAbadie/subscriptions","organizations_url":"https://api.github.com/users/IgnacioAbadie/orgs","repos_url":"https://api.github.com/users/IgnacioAbadie/repos","events_url":"https://api.github.com/users/IgnacioAbadie/events{/privacy}","received_events_url":"https://api.github.com/users/IgnacioAbadie/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/3/comments","statuses_url":"https://api.github.com/repos/sbalay/trello-redux-example/statuses/7123e116f05111edc6cadb6a19afb164d780dcb0","head":{"label":"sbalay:add-board","ref":"add-board","sha":"7123e116f05111edc6cadb6a19afb164d780dcb0","user":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"repo":{"id":99372298,"name":"trello-redux-example","full_name":"sbalay/trello-redux-example","owner":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbalay/trello-redux-example","description":null,"fork":false,"url":"https://api.github.com/repos/sbalay/trello-redux-example","forks_url":"https://api.github.com/repos/sbalay/trello-redux-example/forks","keys_url":"https://api.github.com/repos/sbalay/trello-redux-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbalay/trello-redux-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbalay/trello-redux-example/teams","hooks_url":"https://api.github.com/repos/sbalay/trello-redux-example/hooks","issue_events_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/events{/number}","events_url":"https://api.github.com/repos/sbalay/trello-redux-example/events","assignees_url":"https://api.github.com/repos/sbalay/trello-redux-example/assignees{/user}","branches_url":"https://api.github.com/repos/sbalay/trello-redux-example/branches{/branch}","tags_url":"https://api.github.com/repos/sbalay/trello-redux-example/tags","blobs_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbalay/trello-redux-example/statuses/{sha}","languages_url":"https://api.github.com/repos/sbalay/trello-redux-example/languages","stargazers_url":"https://api.github.com/repos/sbalay/trello-redux-example/stargazers","contributors_url":"https://api.github.com/repos/sbalay/trello-redux-example/contributors","subscribers_url":"https://api.github.com/repos/sbalay/trello-redux-example/subscribers","subscription_url":"https://api.github.com/repos/sbalay/trello-redux-example/subscription","commits_url":"https://api.github.com/repos/sbalay/trello-redux-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbalay/trello-redux-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbalay/trello-redux-example/contents/{+path}","compare_url":"https://api.github.com/repos/sbalay/trello-redux-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbalay/trello-redux-example/merges","archive_url":"https://api.github.com/repos/sbalay/trello-redux-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbalay/trello-redux-example/downloads","issues_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues{/number}","pulls_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls{/number}","milestones_url":"https://api.github.com/repos/sbalay/trello-redux-example/milestones{/number}","notifications_url":"https://api.github.com/repos/sbalay/trello-redux-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbalay/trello-redux-example/labels{/name}","releases_url":"https://api.github.com/repos/sbalay/trello-redux-example/releases{/id}","deployments_url":"https://api.github.com/repos/sbalay/trello-redux-example/deployments","created_at":"2017-08-04T19:05:04Z","updated_at":"2017-08-04T21:14:19Z","pushed_at":"2017-09-14T17:44:24Z","git_url":"git://github.com/sbalay/trello-redux-example.git","ssh_url":"git@github.com:sbalay/trello-redux-example.git","clone_url":"https://github.com/sbalay/trello-redux-example.git","svn_url":"https://github.com/sbalay/trello-redux-example","homepage":null,"size":230,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"base":{"label":"sbalay:master","ref":"master","sha":"4a37329d6574354e74e5b9cf10839db53ee9b088","user":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"repo":{"id":99372298,"name":"trello-redux-example","full_name":"sbalay/trello-redux-example","owner":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars3.githubusercontent.com/u/1928544?v=4","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbalay/trello-redux-example","description":null,"fork":false,"url":"https://api.github.com/repos/sbalay/trello-redux-example","forks_url":"https://api.github.com/repos/sbalay/trello-redux-example/forks","keys_url":"https://api.github.com/repos/sbalay/trello-redux-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbalay/trello-redux-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbalay/trello-redux-example/teams","hooks_url":"https://api.github.com/repos/sbalay/trello-redux-example/hooks","issue_events_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/events{/number}","events_url":"https://api.github.com/repos/sbalay/trello-redux-example/events","assignees_url":"https://api.github.com/repos/sbalay/trello-redux-example/assignees{/user}","branches_url":"https://api.github.com/repos/sbalay/trello-redux-example/branches{/branch}","tags_url":"https://api.github.com/repos/sbalay/trello-redux-example/tags","blobs_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbalay/trello-redux-example/statuses/{sha}","languages_url":"https://api.github.com/repos/sbalay/trello-redux-example/languages","stargazers_url":"https://api.github.com/repos/sbalay/trello-redux-example/stargazers","contributors_url":"https://api.github.com/repos/sbalay/trello-redux-example/contributors","subscribers_url":"https://api.github.com/repos/sbalay/trello-redux-example/subscribers","subscription_url":"https://api.github.com/repos/sbalay/trello-redux-example/subscription","commits_url":"https://api.github.com/repos/sbalay/trello-redux-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbalay/trello-redux-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbalay/trello-redux-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbalay/trello-redux-example/contents/{+path}","compare_url":"https://api.github.com/repos/sbalay/trello-redux-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbalay/trello-redux-example/merges","archive_url":"https://api.github.com/repos/sbalay/trello-redux-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbalay/trello-redux-example/downloads","issues_url":"https://api.github.com/repos/sbalay/trello-redux-example/issues{/number}","pulls_url":"https://api.github.com/repos/sbalay/trello-redux-example/pulls{/number}","milestones_url":"https://api.github.com/repos/sbalay/trello-redux-example/milestones{/number}","notifications_url":"https://api.github.com/repos/sbalay/trello-redux-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbalay/trello-redux-example/labels{/name}","releases_url":"https://api.github.com/repos/sbalay/trello-redux-example/releases{/id}","deployments_url":"https://api.github.com/repos/sbalay/trello-redux-example/deployments","created_at":"2017-08-04T19:05:04Z","updated_at":"2017-08-04T21:14:19Z","pushed_at":"2017-09-14T17:44:24Z","git_url":"git://github.com/sbalay/trello-redux-example.git","ssh_url":"git@github.com:sbalay/trello-redux-example.git","clone_url":"https://github.com/sbalay/trello-redux-example.git","svn_url":"https://github.com/sbalay/trello-redux-example","homepage":null,"size":230,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3"},"html":{"href":"https://github.com/sbalay/trello-redux-example/pull/3"},"issue":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/issues/3"},"comments":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sbalay/trello-redux-example/statuses/7123e116f05111edc6cadb6a19afb164d780dcb0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sbalay"}}