{"action":"created","comment":{"url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments/171075452","pull_request_review_id":99865629,"id":171075452,"diff_hunk":"@@ -35,23 +39,35 @@ class ProductReviews extends React.Component {\n    * @param {obj} theReview\n    * @returns {void} findUser\n    */\n-  findUser(allUsers, theReview) {\n+  findUser(allUsers, theReview, filterUser) {\n     let firstName;\n+    let userInfo;\n     const user = allUsers.find(user => theReview.userId === user.id);\n-    return user ? user.firstName : '';\n+    if (filterUser === 'firstName' && user !== undefined) {\n+      // console.log(user)\n+      return user.firstName\n+    } else if (filterUser === 'email' && user !== undefined) {\n+      return user.email\n+    }\n+  //  return user ? user.firstName : '';\n   }\n \n   /**\n    * @returns {void} renderReviews\n    */\n   renderReviews() {\n     const { allUsers } = this.props;\n+    let user;\n     return this.props.userReviews.map(theReview => (\n       <div className=\"media mt-3\" key={theReview.id}>\n-        <img className=\"mr-3\" src={recipeImage} style={{ width: `${80}px` }} alt=\"Generic placeholder\" />\n-        <div className=\"media-body\">\n+         <Gravatar \n+         email={this.findUser(allUsers, theReview, 'email')} ","path":"client/containers/RecipeReviews.jsx","position":48,"original_position":48,"commit_id":"2318b5b26ec636d858cfcf1f96c173536d96bbe8","original_commit_id":"2318b5b26ec636d858cfcf1f96c173536d96bbe8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected indentation of 11 space characters but found 9    react/jsx-indent-props<br>Trailing spaces not allowed                                no-trailing-spaces","created_at":"2018-02-27T21:40:05Z","updated_at":"2018-02-27T21:40:07Z","html_url":"https://github.com/purpose50/More-Recipes/pull/95#discussion_r171075452","pull_request_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments/171075452"},"html":{"href":"https://github.com/purpose50/More-Recipes/pull/95#discussion_r171075452"},"pull_request":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95","id":171792244,"html_url":"https://github.com/purpose50/More-Recipes/pull/95","diff_url":"https://github.com/purpose50/More-Recipes/pull/95.diff","patch_url":"https://github.com/purpose50/More-Recipes/pull/95.patch","issue_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/95","number":95,"state":"open","locked":false,"title":"#155570415 add gravatar image for users","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nadd gravatar image for users\r\n\r\n#### Description of Task to be completed?\r\n* install react-gravatar\r\n* display gravatar image\r\n\r\n#### How should this be manually tested?\r\nhttps://purpose-more-recipes.herokuapp.com/\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#155570415 add gravatar image for users\r\n\r\n#### Screenshots(is any)\r\n<img width=\"1433\" alt=\"screen shot 2018-02-27 at 10 38 49 pm\" src=\"https://user-images.githubusercontent.com/24475008/36756353-12123230-1c0f-11e8-8d31-7c17cfd72f0d.png\">\r\n\r\n\r\n#### Questions:\r\nN/A","created_at":"2018-02-27T21:39:54Z","updated_at":"2018-02-27T21:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54a591d838c6f928ccc5371792567b85c34ede99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95/commits","review_comments_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95/comments","review_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/95/comments","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/2318b5b26ec636d858cfcf1f96c173536d96bbe8","head":{"label":"purpose50:feature/155570415/gravatar-image-for-users","ref":"feature/155570415/gravatar-image-for-users","sha":"2318b5b26ec636d858cfcf1f96c173536d96bbe8","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"repo":{"id":107537101,"name":"More-Recipes","full_name":"purpose50/More-Recipes","owner":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/purpose50/More-Recipes","description":"More-Recipes​ provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/purpose50/More-Recipes","forks_url":"https://api.github.com/repos/purpose50/More-Recipes/forks","keys_url":"https://api.github.com/repos/purpose50/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purpose50/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purpose50/More-Recipes/teams","hooks_url":"https://api.github.com/repos/purpose50/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/purpose50/More-Recipes/events","assignees_url":"https://api.github.com/repos/purpose50/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/purpose50/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/purpose50/More-Recipes/tags","blobs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purpose50/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/purpose50/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/purpose50/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/purpose50/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/purpose50/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/purpose50/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/purpose50/More-Recipes/subscription","commits_url":"https://api.github.com/repos/purpose50/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/purpose50/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/purpose50/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/purpose50/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purpose50/More-Recipes/merges","archive_url":"https://api.github.com/repos/purpose50/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purpose50/More-Recipes/downloads","issues_url":"https://api.github.com/repos/purpose50/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/purpose50/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/purpose50/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purpose50/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/purpose50/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/purpose50/More-Recipes/deployments","created_at":"2017-10-19T11:24:02Z","updated_at":"2018-02-19T12:06:24Z","pushed_at":"2018-02-27T21:39:54Z","git_url":"git://github.com/purpose50/More-Recipes.git","ssh_url":"git@github.com:purpose50/More-Recipes.git","clone_url":"https://github.com/purpose50/More-Recipes.git","svn_url":"https://github.com/purpose50/More-Recipes","homepage":"https://purpose-more-recipes.herokuapp.com/","size":19527,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"purpose50:develope","ref":"develope","sha":"bcda8ccad7a20e967a775d4753616918221b4eb7","user":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"repo":{"id":107537101,"name":"More-Recipes","full_name":"purpose50/More-Recipes","owner":{"login":"purpose50","id":24475008,"avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/purpose50/More-Recipes","description":"More-Recipes​ provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/purpose50/More-Recipes","forks_url":"https://api.github.com/repos/purpose50/More-Recipes/forks","keys_url":"https://api.github.com/repos/purpose50/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purpose50/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purpose50/More-Recipes/teams","hooks_url":"https://api.github.com/repos/purpose50/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/purpose50/More-Recipes/events","assignees_url":"https://api.github.com/repos/purpose50/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/purpose50/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/purpose50/More-Recipes/tags","blobs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purpose50/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purpose50/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/purpose50/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purpose50/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/purpose50/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/purpose50/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/purpose50/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/purpose50/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/purpose50/More-Recipes/subscription","commits_url":"https://api.github.com/repos/purpose50/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/purpose50/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/purpose50/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/purpose50/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/purpose50/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/purpose50/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purpose50/More-Recipes/merges","archive_url":"https://api.github.com/repos/purpose50/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purpose50/More-Recipes/downloads","issues_url":"https://api.github.com/repos/purpose50/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/purpose50/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/purpose50/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/purpose50/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purpose50/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/purpose50/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/purpose50/More-Recipes/deployments","created_at":"2017-10-19T11:24:02Z","updated_at":"2018-02-19T12:06:24Z","pushed_at":"2018-02-27T21:39:54Z","git_url":"git://github.com/purpose50/More-Recipes.git","ssh_url":"git@github.com:purpose50/More-Recipes.git","clone_url":"https://github.com/purpose50/More-Recipes.git","svn_url":"https://github.com/purpose50/More-Recipes","homepage":"https://purpose-more-recipes.herokuapp.com/","size":19527,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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/purpose50/More-Recipes/pulls/95"},"html":{"href":"https://github.com/purpose50/More-Recipes/pull/95"},"issue":{"href":"https://api.github.com/repos/purpose50/More-Recipes/issues/95"},"comments":{"href":"https://api.github.com/repos/purpose50/More-Recipes/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/purpose50/More-Recipes/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/purpose50/More-Recipes/statuses/2318b5b26ec636d858cfcf1f96c173536d96bbe8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}