{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/3","id":182622606,"html_url":"https://github.com/Tinusw/ReactReduxFrontend/pull/3","diff_url":"https://github.com/Tinusw/ReactReduxFrontend/pull/3.diff","patch_url":"https://github.com/Tinusw/ReactReduxFrontend/pull/3.patch","issue_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/3","number":3,"state":"open","locked":false,"title":"Feature/authentication v2","user":{"login":"Tinusw","id":5845731,"avatar_url":"https://avatars1.githubusercontent.com/u/5845731?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinusw","html_url":"https://github.com/Tinusw","followers_url":"https://api.github.com/users/Tinusw/followers","following_url":"https://api.github.com/users/Tinusw/following{/other_user}","gists_url":"https://api.github.com/users/Tinusw/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinusw/subscriptions","organizations_url":"https://api.github.com/users/Tinusw/orgs","repos_url":"https://api.github.com/users/Tinusw/repos","events_url":"https://api.github.com/users/Tinusw/events{/privacy}","received_events_url":"https://api.github.com/users/Tinusw/received_events","type":"User","site_admin":false},"body":"# What does this PR do?\r\n\r\nAdds a FETCH_CAMPAIGN action creator &  reducer so when our user reaches an auth'd state and then access the protected path `/campaign/index`, another thunk promise can be dispatched and return a list of items or an error.\r\n\r\n- Action creator makes API request using token stored in localStorage as a header for auth\r\n- updated `components/campaign/campaign_index` to either render a collection of items from API or API Error response\r\n- New action creator & reducer for `FETCH_CAMPAIGNS`\r\n  - Just a dummy route that spits out a collection \r\n  - Route is hidden behind auth and can only be accessed by attaching user Auth Token in header of request\r\n  - associated tests\r\n\r\n- Cleanup up the initialization of redux store\r\n  - on initialization will now check for an auth token in `localStorage`\r\n  - abstracted some store config to constants for readability\r\n","created_at":"2018-04-18T22:44:30Z","updated_at":"2018-04-18T22:44:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/3/comments","statuses_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/statuses/29dba76d57879fb076ab2fb9cb17a03448e62246","head":{"label":"Tinusw:Feature/AuthenticationV2","ref":"Feature/AuthenticationV2","sha":"29dba76d57879fb076ab2fb9cb17a03448e62246","user":{"login":"Tinusw","id":5845731,"avatar_url":"https://avatars1.githubusercontent.com/u/5845731?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinusw","html_url":"https://github.com/Tinusw","followers_url":"https://api.github.com/users/Tinusw/followers","following_url":"https://api.github.com/users/Tinusw/following{/other_user}","gists_url":"https://api.github.com/users/Tinusw/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinusw/subscriptions","organizations_url":"https://api.github.com/users/Tinusw/orgs","repos_url":"https://api.github.com/users/Tinusw/repos","events_url":"https://api.github.com/users/Tinusw/events{/privacy}","received_events_url":"https://api.github.com/users/Tinusw/received_events","type":"User","site_admin":false},"repo":{"id":129537463,"name":"ReactReduxFrontend","full_name":"Tinusw/ReactReduxFrontend","owner":{"login":"Tinusw","id":5845731,"avatar_url":"https://avatars1.githubusercontent.com/u/5845731?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinusw","html_url":"https://github.com/Tinusw","followers_url":"https://api.github.com/users/Tinusw/followers","following_url":"https://api.github.com/users/Tinusw/following{/other_user}","gists_url":"https://api.github.com/users/Tinusw/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinusw/subscriptions","organizations_url":"https://api.github.com/users/Tinusw/orgs","repos_url":"https://api.github.com/users/Tinusw/repos","events_url":"https://api.github.com/users/Tinusw/events{/privacy}","received_events_url":"https://api.github.com/users/Tinusw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tinusw/ReactReduxFrontend","description":"A ReactRedux App that interacts with an authenticated backend API and does CRUD stuff","fork":false,"url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend","forks_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/forks","keys_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/teams","hooks_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/hooks","issue_events_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/events{/number}","events_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/events","assignees_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/assignees{/user}","branches_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/branches{/branch}","tags_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/tags","blobs_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/languages","stargazers_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/stargazers","contributors_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/contributors","subscribers_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/subscribers","subscription_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/subscription","commits_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/contents/{+path}","compare_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/merges","archive_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/downloads","issues_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues{/number}","pulls_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/labels{/name}","releases_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/releases{/id}","deployments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/deployments","created_at":"2018-04-14T17:05:43Z","updated_at":"2018-04-18T20:17:59Z","pushed_at":"2018-04-18T22:38:38Z","git_url":"git://github.com/Tinusw/ReactReduxFrontend.git","ssh_url":"git@github.com:Tinusw/ReactReduxFrontend.git","clone_url":"https://github.com/Tinusw/ReactReduxFrontend.git","svn_url":"https://github.com/Tinusw/ReactReduxFrontend","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":"Tinusw:master","ref":"master","sha":"766dc160f0741fc70d2209a06060ed1db783c83b","user":{"login":"Tinusw","id":5845731,"avatar_url":"https://avatars1.githubusercontent.com/u/5845731?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinusw","html_url":"https://github.com/Tinusw","followers_url":"https://api.github.com/users/Tinusw/followers","following_url":"https://api.github.com/users/Tinusw/following{/other_user}","gists_url":"https://api.github.com/users/Tinusw/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinusw/subscriptions","organizations_url":"https://api.github.com/users/Tinusw/orgs","repos_url":"https://api.github.com/users/Tinusw/repos","events_url":"https://api.github.com/users/Tinusw/events{/privacy}","received_events_url":"https://api.github.com/users/Tinusw/received_events","type":"User","site_admin":false},"repo":{"id":129537463,"name":"ReactReduxFrontend","full_name":"Tinusw/ReactReduxFrontend","owner":{"login":"Tinusw","id":5845731,"avatar_url":"https://avatars1.githubusercontent.com/u/5845731?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinusw","html_url":"https://github.com/Tinusw","followers_url":"https://api.github.com/users/Tinusw/followers","following_url":"https://api.github.com/users/Tinusw/following{/other_user}","gists_url":"https://api.github.com/users/Tinusw/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinusw/subscriptions","organizations_url":"https://api.github.com/users/Tinusw/orgs","repos_url":"https://api.github.com/users/Tinusw/repos","events_url":"https://api.github.com/users/Tinusw/events{/privacy}","received_events_url":"https://api.github.com/users/Tinusw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tinusw/ReactReduxFrontend","description":"A ReactRedux App that interacts with an authenticated backend API and does CRUD stuff","fork":false,"url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend","forks_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/forks","keys_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/teams","hooks_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/hooks","issue_events_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/events{/number}","events_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/events","assignees_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/assignees{/user}","branches_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/branches{/branch}","tags_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/tags","blobs_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/languages","stargazers_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/stargazers","contributors_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/contributors","subscribers_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/subscribers","subscription_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/subscription","commits_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/contents/{+path}","compare_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/merges","archive_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/downloads","issues_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues{/number}","pulls_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/labels{/name}","releases_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/releases{/id}","deployments_url":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/deployments","created_at":"2018-04-14T17:05:43Z","updated_at":"2018-04-18T20:17:59Z","pushed_at":"2018-04-18T22:38:38Z","git_url":"git://github.com/Tinusw/ReactReduxFrontend.git","ssh_url":"git@github.com:Tinusw/ReactReduxFrontend.git","clone_url":"https://github.com/Tinusw/ReactReduxFrontend.git","svn_url":"https://github.com/Tinusw/ReactReduxFrontend","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/Tinusw/ReactReduxFrontend/pulls/3"},"html":{"href":"https://github.com/Tinusw/ReactReduxFrontend/pull/3"},"issue":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/3"},"comments":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Tinusw/ReactReduxFrontend/statuses/29dba76d57879fb076ab2fb9cb17a03448e62246"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":181,"deletions":12,"changed_files":10}}
{"actor":{"display_login":"Tinusw"}}