{"action":"created","comment":{"url":"https://api.github.com/repos/Adslot/alexandria/pulls/comments/50059222","id":50059222,"diff_hunk":"@@ -0,0 +1,32 @@\n+import _ from 'lodash';\n+import React, { PropTypes } from 'react';\n+\n+require('styles/alexandria/Avatar.scss');\n+\n+const AvatarComponent = ({ avatar, color, givenName, surname }) => {\n+  let imageEl;\n+  if (avatar !== undefined) {imageEl = <img className=\"avatar-component-image\" src={avatar} />;}\n+\n+  let className = 'avatar-component';\n+  if (color !== undefined) {className = `${className} ${className}-${color}`;}\n+\n+  const initials = `${_.first(givenName) || ''}${_.first(surname) || ''}`;\n+\n+  return (\n+    <div className={className} title={`${givenName || ''} ${surname || ''}`}>\n+      {imageEl}\n+      <div className=\"avatar-component-initials\">{initials}</div>\n+    </div>\n+  );\n+};\n+\n+AvatarComponent.displayName = 'AlexandriaAvatarComponent';\n+\n+AvatarComponent.propTypes = {\n+  avatar: PropTypes.string,","path":"src/components/alexandria/AvatarComponent.js","position":26,"original_position":26,"commit_id":"2617059a43b59305fd54602e218352563267bddb","original_commit_id":"2617059a43b59305fd54602e218352563267bddb","user":{"login":"omgaz","id":908155,"avatar_url":"https://avatars.githubusercontent.com/u/908155?v=3","gravatar_id":"","url":"https://api.github.com/users/omgaz","html_url":"https://github.com/omgaz","followers_url":"https://api.github.com/users/omgaz/followers","following_url":"https://api.github.com/users/omgaz/following{/other_user}","gists_url":"https://api.github.com/users/omgaz/gists{/gist_id}","starred_url":"https://api.github.com/users/omgaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgaz/subscriptions","organizations_url":"https://api.github.com/users/omgaz/orgs","repos_url":"https://api.github.com/users/omgaz/repos","events_url":"https://api.github.com/users/omgaz/events{/privacy}","received_events_url":"https://api.github.com/users/omgaz/received_events","type":"User","site_admin":false},"body":"src? imgSrc? image?","created_at":"2016-01-19T00:10:57Z","updated_at":"2016-01-19T00:10:57Z","html_url":"https://github.com/Adslot/alexandria/pull/84#discussion_r50059222","pull_request_url":"https://api.github.com/repos/Adslot/alexandria/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/comments/50059222"},"html":{"href":"https://github.com/Adslot/alexandria/pull/84#discussion_r50059222"},"pull_request":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/Adslot/alexandria/pulls/84","id":56401773,"html_url":"https://github.com/Adslot/alexandria/pull/84","diff_url":"https://github.com/Adslot/alexandria/pull/84.diff","patch_url":"https://github.com/Adslot/alexandria/pull/84.patch","issue_url":"https://api.github.com/repos/Adslot/alexandria/issues/84","number":84,"state":"open","locked":false,"title":"New: Avatar component","user":{"login":"vinteo","id":819711,"avatar_url":"https://avatars.githubusercontent.com/u/819711?v=3","gravatar_id":"","url":"https://api.github.com/users/vinteo","html_url":"https://github.com/vinteo","followers_url":"https://api.github.com/users/vinteo/followers","following_url":"https://api.github.com/users/vinteo/following{/other_user}","gists_url":"https://api.github.com/users/vinteo/gists{/gist_id}","starred_url":"https://api.github.com/users/vinteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinteo/subscriptions","organizations_url":"https://api.github.com/users/vinteo/orgs","repos_url":"https://api.github.com/users/vinteo/repos","events_url":"https://api.github.com/users/vinteo/events{/privacy}","received_events_url":"https://api.github.com/users/vinteo/received_events","type":"User","site_admin":false},"body":"![image](https://cloud.githubusercontent.com/assets/819711/12404893/b37705a0-be93-11e5-9f80-16741e64c6d3.png)\r\n","created_at":"2016-01-18T23:02:12Z","updated_at":"2016-01-19T00:10:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb3648c43120792ea87bf001097afac0b85b48b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Adslot/alexandria/pulls/84/commits","review_comments_url":"https://api.github.com/repos/Adslot/alexandria/pulls/84/comments","review_comment_url":"https://api.github.com/repos/Adslot/alexandria/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Adslot/alexandria/issues/84/comments","statuses_url":"https://api.github.com/repos/Adslot/alexandria/statuses/2617059a43b59305fd54602e218352563267bddb","head":{"label":"Adslot:avatar-component","ref":"avatar-component","sha":"2617059a43b59305fd54602e218352563267bddb","user":{"login":"Adslot","id":767098,"avatar_url":"https://avatars.githubusercontent.com/u/767098?v=3","gravatar_id":"","url":"https://api.github.com/users/Adslot","html_url":"https://github.com/Adslot","followers_url":"https://api.github.com/users/Adslot/followers","following_url":"https://api.github.com/users/Adslot/following{/other_user}","gists_url":"https://api.github.com/users/Adslot/gists{/gist_id}","starred_url":"https://api.github.com/users/Adslot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adslot/subscriptions","organizations_url":"https://api.github.com/users/Adslot/orgs","repos_url":"https://api.github.com/users/Adslot/repos","events_url":"https://api.github.com/users/Adslot/events{/privacy}","received_events_url":"https://api.github.com/users/Adslot/received_events","type":"Organization","site_admin":false},"repo":{"id":44502479,"name":"alexandria","full_name":"Adslot/alexandria","owner":{"login":"Adslot","id":767098,"avatar_url":"https://avatars.githubusercontent.com/u/767098?v=3","gravatar_id":"","url":"https://api.github.com/users/Adslot","html_url":"https://github.com/Adslot","followers_url":"https://api.github.com/users/Adslot/followers","following_url":"https://api.github.com/users/Adslot/following{/other_user}","gists_url":"https://api.github.com/users/Adslot/gists{/gist_id}","starred_url":"https://api.github.com/users/Adslot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adslot/subscriptions","organizations_url":"https://api.github.com/users/Adslot/orgs","repos_url":"https://api.github.com/users/Adslot/repos","events_url":"https://api.github.com/users/Adslot/events{/privacy}","received_events_url":"https://api.github.com/users/Adslot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Adslot/alexandria","description":"","fork":false,"url":"https://api.github.com/repos/Adslot/alexandria","forks_url":"https://api.github.com/repos/Adslot/alexandria/forks","keys_url":"https://api.github.com/repos/Adslot/alexandria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adslot/alexandria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adslot/alexandria/teams","hooks_url":"https://api.github.com/repos/Adslot/alexandria/hooks","issue_events_url":"https://api.github.com/repos/Adslot/alexandria/issues/events{/number}","events_url":"https://api.github.com/repos/Adslot/alexandria/events","assignees_url":"https://api.github.com/repos/Adslot/alexandria/assignees{/user}","branches_url":"https://api.github.com/repos/Adslot/alexandria/branches{/branch}","tags_url":"https://api.github.com/repos/Adslot/alexandria/tags","blobs_url":"https://api.github.com/repos/Adslot/alexandria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adslot/alexandria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adslot/alexandria/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adslot/alexandria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adslot/alexandria/statuses/{sha}","languages_url":"https://api.github.com/repos/Adslot/alexandria/languages","stargazers_url":"https://api.github.com/repos/Adslot/alexandria/stargazers","contributors_url":"https://api.github.com/repos/Adslot/alexandria/contributors","subscribers_url":"https://api.github.com/repos/Adslot/alexandria/subscribers","subscription_url":"https://api.github.com/repos/Adslot/alexandria/subscription","commits_url":"https://api.github.com/repos/Adslot/alexandria/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adslot/alexandria/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adslot/alexandria/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adslot/alexandria/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adslot/alexandria/contents/{+path}","compare_url":"https://api.github.com/repos/Adslot/alexandria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adslot/alexandria/merges","archive_url":"https://api.github.com/repos/Adslot/alexandria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adslot/alexandria/downloads","issues_url":"https://api.github.com/repos/Adslot/alexandria/issues{/number}","pulls_url":"https://api.github.com/repos/Adslot/alexandria/pulls{/number}","milestones_url":"https://api.github.com/repos/Adslot/alexandria/milestones{/number}","notifications_url":"https://api.github.com/repos/Adslot/alexandria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adslot/alexandria/labels{/name}","releases_url":"https://api.github.com/repos/Adslot/alexandria/releases{/id}","created_at":"2015-10-19T00:27:13Z","updated_at":"2016-01-13T03:09:44Z","pushed_at":"2016-01-18T23:59:39Z","git_url":"git://github.com/Adslot/alexandria.git","ssh_url":"git@github.com:Adslot/alexandria.git","clone_url":"https://github.com/Adslot/alexandria.git","svn_url":"https://github.com/Adslot/alexandria","homepage":null,"size":155,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"Adslot:master","ref":"master","sha":"64e0d515ab8f2e7de839cf3417cb3a4dd375da71","user":{"login":"Adslot","id":767098,"avatar_url":"https://avatars.githubusercontent.com/u/767098?v=3","gravatar_id":"","url":"https://api.github.com/users/Adslot","html_url":"https://github.com/Adslot","followers_url":"https://api.github.com/users/Adslot/followers","following_url":"https://api.github.com/users/Adslot/following{/other_user}","gists_url":"https://api.github.com/users/Adslot/gists{/gist_id}","starred_url":"https://api.github.com/users/Adslot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adslot/subscriptions","organizations_url":"https://api.github.com/users/Adslot/orgs","repos_url":"https://api.github.com/users/Adslot/repos","events_url":"https://api.github.com/users/Adslot/events{/privacy}","received_events_url":"https://api.github.com/users/Adslot/received_events","type":"Organization","site_admin":false},"repo":{"id":44502479,"name":"alexandria","full_name":"Adslot/alexandria","owner":{"login":"Adslot","id":767098,"avatar_url":"https://avatars.githubusercontent.com/u/767098?v=3","gravatar_id":"","url":"https://api.github.com/users/Adslot","html_url":"https://github.com/Adslot","followers_url":"https://api.github.com/users/Adslot/followers","following_url":"https://api.github.com/users/Adslot/following{/other_user}","gists_url":"https://api.github.com/users/Adslot/gists{/gist_id}","starred_url":"https://api.github.com/users/Adslot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adslot/subscriptions","organizations_url":"https://api.github.com/users/Adslot/orgs","repos_url":"https://api.github.com/users/Adslot/repos","events_url":"https://api.github.com/users/Adslot/events{/privacy}","received_events_url":"https://api.github.com/users/Adslot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Adslot/alexandria","description":"","fork":false,"url":"https://api.github.com/repos/Adslot/alexandria","forks_url":"https://api.github.com/repos/Adslot/alexandria/forks","keys_url":"https://api.github.com/repos/Adslot/alexandria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adslot/alexandria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adslot/alexandria/teams","hooks_url":"https://api.github.com/repos/Adslot/alexandria/hooks","issue_events_url":"https://api.github.com/repos/Adslot/alexandria/issues/events{/number}","events_url":"https://api.github.com/repos/Adslot/alexandria/events","assignees_url":"https://api.github.com/repos/Adslot/alexandria/assignees{/user}","branches_url":"https://api.github.com/repos/Adslot/alexandria/branches{/branch}","tags_url":"https://api.github.com/repos/Adslot/alexandria/tags","blobs_url":"https://api.github.com/repos/Adslot/alexandria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adslot/alexandria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adslot/alexandria/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adslot/alexandria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adslot/alexandria/statuses/{sha}","languages_url":"https://api.github.com/repos/Adslot/alexandria/languages","stargazers_url":"https://api.github.com/repos/Adslot/alexandria/stargazers","contributors_url":"https://api.github.com/repos/Adslot/alexandria/contributors","subscribers_url":"https://api.github.com/repos/Adslot/alexandria/subscribers","subscription_url":"https://api.github.com/repos/Adslot/alexandria/subscription","commits_url":"https://api.github.com/repos/Adslot/alexandria/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adslot/alexandria/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adslot/alexandria/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adslot/alexandria/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adslot/alexandria/contents/{+path}","compare_url":"https://api.github.com/repos/Adslot/alexandria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adslot/alexandria/merges","archive_url":"https://api.github.com/repos/Adslot/alexandria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adslot/alexandria/downloads","issues_url":"https://api.github.com/repos/Adslot/alexandria/issues{/number}","pulls_url":"https://api.github.com/repos/Adslot/alexandria/pulls{/number}","milestones_url":"https://api.github.com/repos/Adslot/alexandria/milestones{/number}","notifications_url":"https://api.github.com/repos/Adslot/alexandria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adslot/alexandria/labels{/name}","releases_url":"https://api.github.com/repos/Adslot/alexandria/releases{/id}","created_at":"2015-10-19T00:27:13Z","updated_at":"2016-01-13T03:09:44Z","pushed_at":"2016-01-18T23:59:39Z","git_url":"git://github.com/Adslot/alexandria.git","ssh_url":"git@github.com:Adslot/alexandria.git","clone_url":"https://github.com/Adslot/alexandria.git","svn_url":"https://github.com/Adslot/alexandria","homepage":null,"size":155,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/84"},"html":{"href":"https://github.com/Adslot/alexandria/pull/84"},"issue":{"href":"https://api.github.com/repos/Adslot/alexandria/issues/84"},"comments":{"href":"https://api.github.com/repos/Adslot/alexandria/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Adslot/alexandria/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/Adslot/alexandria/statuses/2617059a43b59305fd54602e218352563267bddb"}}}}