{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/comments/239708264","pull_request_review_id":182566920,"id":239708264,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTcwODI2NA==","diff_hunk":"@@ -0,0 +1,32 @@\n+import { GET_USER_ARTICLES } from '../constants';\n+import initialState from './initialState';\n+\n+const userArticlesReducer = (state = initialState.userArticles, action) => {\n+  const { payload, type } = action;\n+  switch (type) {\n+    case `${GET_USER_ARTICLES}_PENDING`:\n+      return {\n+        ...state,\n+        loading: true,\n+        success: false,\n+      };\n+    case `${GET_USER_ARTICLES}_FULFILLED`:\n+      return {\n+        ...state,\n+        articles: payload.data.article.results,\n+        loading: false,\n+        success: true,\n+      };\n+    case `${GET_USER_ARTICLES}_REJECTED`:","path":"src/reducers/userArticles.reducer.js","position":20,"original_position":20,"commit_id":"785db8f38f88e5282cb267260eb41cbf81ac38fb","original_commit_id":"785db8f38f88e5282cb267260eb41cbf81ac38fb","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Similar blocks of code found in 2 locations. Consider refactoring.","created_at":"2018-12-07T06:47:14Z","updated_at":"2018-12-07T06:47:15Z","html_url":"https://github.com/andela/ah-orcas-frontend/pull/19#discussion_r239708264","pull_request_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/comments/239708264"},"html":{"href":"https://github.com/andela/ah-orcas-frontend/pull/19#discussion_r239708264"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19","id":236770324,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NzcwMzI0","html_url":"https://github.com/andela/ah-orcas-frontend/pull/19","diff_url":"https://github.com/andela/ah-orcas-frontend/pull/19.diff","patch_url":"https://github.com/andela/ah-orcas-frontend/pull/19.patch","issue_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/19","number":19,"state":"open","locked":false,"title":"#161254620 view/edit profile","user":{"login":"abadojack","id":8406752,"node_id":"MDQ6VXNlcjg0MDY3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/8406752?v=4","gravatar_id":"","url":"https://api.github.com/users/abadojack","html_url":"https://github.com/abadojack","followers_url":"https://api.github.com/users/abadojack/followers","following_url":"https://api.github.com/users/abadojack/following{/other_user}","gists_url":"https://api.github.com/users/abadojack/gists{/gist_id}","starred_url":"https://api.github.com/users/abadojack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadojack/subscriptions","organizations_url":"https://api.github.com/users/abadojack/orgs","repos_url":"https://api.github.com/users/abadojack/repos","events_url":"https://api.github.com/users/abadojack/events{/privacy}","received_events_url":"https://api.github.com/users/abadojack/received_events","type":"User","site_admin":false},"body":"- user can view their profile\r\n- user can edit their profile\r\n\r\n[Delivers #161254620]\r\n\r\n#### What does this PR do?\r\n``` Allow user to edit/view their profile```\r\n#### Description of Task to be completed?\r\n```\r\n- user can view their profile\r\n- user can edit their profile\r\n ```\r\n#### How should this be manually tested?\r\n```\r\n- [view profile](https://ah-orcas-frontend-staging.herokuapp.com/profile) \r\n- edit the profile using the edit button\r\n ```\r\n#### What are the relevant pivotal tracker stories?\r\n [#161254620](https://www.pivotaltracker.com/story/show/161254620)\r\n\r\n#### Screenshots (if appropriate)\r\n<img width=\"1680\" alt=\"screenshot 2018-12-07 at 09 45 28\" src=\"https://user-images.githubusercontent.com/8406752/49631920-e7c41280-fa04-11e8-8051-6525937b2252.png\">\r\n\r\n#### Checklist:\r\n\r\n- [X] My code follows the style guidelines of this project\r\n- [ ] At least 2 people have reviewed my PR\r\n- [X] I have commented my code, particularly in hard-to-understand areas\r\n- [ ] I have made corresponding changes to the documentation\r\n- [ ] My changes generate no new warnings\r\n- [X] I have added tests that prove my fix is effective or that my feature works\r\n- [X] New and existing unit tests pass locally with my changes\r\n- [X] My PR has one commit.","created_at":"2018-12-07T06:46:59Z","updated_at":"2018-12-07T06:47:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ec5430830e7c5921b65749ffccea1dcbf8480c6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1142859654,"node_id":"MDU6TGFiZWwxMTQyODU5NjU0","url":"https://api.github.com/repos/andela/ah-orcas-frontend/labels/WIP","name":"WIP","color":"9b99e8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19/commits","review_comments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19/comments","review_comment_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/19/comments","statuses_url":"https://api.github.com/repos/andela/ah-orcas-frontend/statuses/785db8f38f88e5282cb267260eb41cbf81ac38fb","head":{"label":"andela:ft-profile-161254620","ref":"ft-profile-161254620","sha":"785db8f38f88e5282cb267260eb41cbf81ac38fb","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":153309690,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzMDk2OTA=","name":"ah-orcas-frontend","full_name":"andela/ah-orcas-frontend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-orcas-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-orcas-frontend","forks_url":"https://api.github.com/repos/andela/ah-orcas-frontend/forks","keys_url":"https://api.github.com/repos/andela/ah-orcas-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-orcas-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-orcas-frontend/teams","hooks_url":"https://api.github.com/repos/andela/ah-orcas-frontend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-orcas-frontend/events","assignees_url":"https://api.github.com/repos/andela/ah-orcas-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-orcas-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-orcas-frontend/tags","blobs_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-orcas-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-orcas-frontend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-orcas-frontend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-orcas-frontend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-orcas-frontend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-orcas-frontend/subscription","commits_url":"https://api.github.com/repos/andela/ah-orcas-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-orcas-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-orcas-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-orcas-frontend/merges","archive_url":"https://api.github.com/repos/andela/ah-orcas-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-orcas-frontend/downloads","issues_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-orcas-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-orcas-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-orcas-frontend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-orcas-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/deployments","created_at":"2018-10-16T15:31:07Z","updated_at":"2018-12-06T13:04:44Z","pushed_at":"2018-12-07T06:46:59Z","git_url":"git://github.com/andela/ah-orcas-frontend.git","ssh_url":"git@github.com:andela/ah-orcas-frontend.git","clone_url":"https://github.com/andela/ah-orcas-frontend.git","svn_url":"https://github.com/andela/ah-orcas-frontend","homepage":null,"size":792,"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":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"a51c6ba9038d502ba7976eb8e017343290a49773","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":153309690,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzMDk2OTA=","name":"ah-orcas-frontend","full_name":"andela/ah-orcas-frontend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-orcas-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-orcas-frontend","forks_url":"https://api.github.com/repos/andela/ah-orcas-frontend/forks","keys_url":"https://api.github.com/repos/andela/ah-orcas-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-orcas-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-orcas-frontend/teams","hooks_url":"https://api.github.com/repos/andela/ah-orcas-frontend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-orcas-frontend/events","assignees_url":"https://api.github.com/repos/andela/ah-orcas-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-orcas-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-orcas-frontend/tags","blobs_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-orcas-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-orcas-frontend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-orcas-frontend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-orcas-frontend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-orcas-frontend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-orcas-frontend/subscription","commits_url":"https://api.github.com/repos/andela/ah-orcas-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-orcas-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-orcas-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-orcas-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-orcas-frontend/merges","archive_url":"https://api.github.com/repos/andela/ah-orcas-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-orcas-frontend/downloads","issues_url":"https://api.github.com/repos/andela/ah-orcas-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-orcas-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-orcas-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-orcas-frontend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-orcas-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-orcas-frontend/deployments","created_at":"2018-10-16T15:31:07Z","updated_at":"2018-12-06T13:04:44Z","pushed_at":"2018-12-07T06:46:59Z","git_url":"git://github.com/andela/ah-orcas-frontend.git","ssh_url":"git@github.com:andela/ah-orcas-frontend.git","clone_url":"https://github.com/andela/ah-orcas-frontend.git","svn_url":"https://github.com/andela/ah-orcas-frontend","homepage":null,"size":792,"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":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19"},"html":{"href":"https://github.com/andela/ah-orcas-frontend/pull/19"},"issue":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/19"},"comments":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-orcas-frontend/statuses/785db8f38f88e5282cb267260eb41cbf81ac38fb"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codeclimate"}}