{"action":"created","comment":{"url":"https://api.github.com/repos/remypar5/jacl/pulls/comments/82966710","pull_request_review_id":3835008,"id":82966710,"diff_hunk":"@@ -0,0 +1,65 @@\n+import React from 'react';\n+import cx from 'classnames';\n+import _ from 'lodash';\n+\n+export default React.createClass({\n+\n+\tgetDefaultProps() {\n+\t\treturn {\n+\t\t\telement: 'ul'\n+\t\t};\n+\t},\n+\n+\trenderChildren() {\n+\t\tconst items = this.props.items;\n+\t\tlet listItem = this.props.children;\n+\n+\t\treturn items.map(function generateItem(item) {\n+\t\t\tif (! listItem) {\n+\t\t\t\tlistItem = <li className=\"list-group-item\">{item}</li>;\n+\t\t\t}\n+\n+\t\t\treturn React.Children.map(listItem, function(child) {\n+\t\t\t\tconst props = Object.assign({}, child.props);\n+\n+\t\t\t\tif (typeof props.children === 'string') {\n+\t\t\t\t\treturn ('' + props.children).replace(/(\\$item)(\\..*)*/, (match, p1, p2, offset, origin) => {\n+\t\t\t\t\t\tif (p1) {\n+\t\t\t\t\t\t\tif (p2) {\n+\t\t\t\t\t\t\t\treturn _.get(item, p2.slice(1), match);\n+\t\t\t\t\t\t\t}\n+\t\t\t\t\t\t\treturn item;\n+\t\t\t\t\t\t}\n+\t\t\t\t\t\treturn match;\n+\t\t\t\t\t});\n+\t\t\t\t}\n+\t\t\t\treturn child;\n+\t\t\t});\n+\t\t});\n+\n+\n+\t\treturn items.map((item) => {\n+\t\t\treturn React.Children(listItem)\n+\t\t});\n+\t},\n+\n+\trender() {\n+\n+\t\tconst props = Object.assign({\n+\t\t\tclassName: cx('list-group')\n+\t\t}, this.props);\n+\t\tconst element = props.element;\n+\n+\t\tdelete props.items;\n+\t\tdelete props.element;\n+\n+\t\treturn React.createElement(element, props, this.renderChildren(props.items));\n+\t\t\t// <element {...props}>","path":"src/components/List.jsx","position":57,"original_position":57,"commit_id":"a6bc19238ff3ad50fd31405e8d3e1a778e9c438f","original_commit_id":"a6bc19238ff3ad50fd31405e8d3e1a778e9c438f","user":{"login":"mettin","id":1436111,"avatar_url":"https://avatars.githubusercontent.com/u/1436111?v=3","gravatar_id":"","url":"https://api.github.com/users/mettin","html_url":"https://github.com/mettin","followers_url":"https://api.github.com/users/mettin/followers","following_url":"https://api.github.com/users/mettin/following{/other_user}","gists_url":"https://api.github.com/users/mettin/gists{/gist_id}","starred_url":"https://api.github.com/users/mettin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mettin/subscriptions","organizations_url":"https://api.github.com/users/mettin/orgs","repos_url":"https://api.github.com/users/mettin/repos","events_url":"https://api.github.com/users/mettin/events{/privacy}","received_events_url":"https://api.github.com/users/mettin/received_events","type":"User","site_admin":false},"body":"remove comments","created_at":"2016-10-12T09:21:37Z","updated_at":"2016-10-12T09:25:43Z","html_url":"https://github.com/remypar5/jacl/pull/1#discussion_r82966710","pull_request_url":"https://api.github.com/repos/remypar5/jacl/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/comments/82966710"},"html":{"href":"https://github.com/remypar5/jacl/pull/1#discussion_r82966710"},"pull_request":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/remypar5/jacl/pulls/1","id":88979696,"html_url":"https://github.com/remypar5/jacl/pull/1","diff_url":"https://github.com/remypar5/jacl/pull/1.diff","patch_url":"https://github.com/remypar5/jacl/pull/1.patch","issue_url":"https://api.github.com/repos/remypar5/jacl/issues/1","number":1,"state":"open","locked":false,"title":"List","user":{"login":"mettin","id":1436111,"avatar_url":"https://avatars.githubusercontent.com/u/1436111?v=3","gravatar_id":"","url":"https://api.github.com/users/mettin","html_url":"https://github.com/mettin","followers_url":"https://api.github.com/users/mettin/followers","following_url":"https://api.github.com/users/mettin/following{/other_user}","gists_url":"https://api.github.com/users/mettin/gists{/gist_id}","starred_url":"https://api.github.com/users/mettin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mettin/subscriptions","organizations_url":"https://api.github.com/users/mettin/orgs","repos_url":"https://api.github.com/users/mettin/repos","events_url":"https://api.github.com/users/mettin/events{/privacy}","received_events_url":"https://api.github.com/users/mettin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T09:14:13Z","updated_at":"2016-10-12T09:25:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"300c9ae164386bb68a6970744a3d1cd6e1f903b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/remypar5/jacl/pulls/1/commits","review_comments_url":"https://api.github.com/repos/remypar5/jacl/pulls/1/comments","review_comment_url":"https://api.github.com/repos/remypar5/jacl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/remypar5/jacl/issues/1/comments","statuses_url":"https://api.github.com/repos/remypar5/jacl/statuses/a6bc19238ff3ad50fd31405e8d3e1a778e9c438f","head":{"label":"remypar5:list","ref":"list","sha":"a6bc19238ff3ad50fd31405e8d3e1a778e9c438f","user":{"login":"remypar5","id":4688360,"avatar_url":"https://avatars.githubusercontent.com/u/4688360?v=3","gravatar_id":"","url":"https://api.github.com/users/remypar5","html_url":"https://github.com/remypar5","followers_url":"https://api.github.com/users/remypar5/followers","following_url":"https://api.github.com/users/remypar5/following{/other_user}","gists_url":"https://api.github.com/users/remypar5/gists{/gist_id}","starred_url":"https://api.github.com/users/remypar5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remypar5/subscriptions","organizations_url":"https://api.github.com/users/remypar5/orgs","repos_url":"https://api.github.com/users/remypar5/repos","events_url":"https://api.github.com/users/remypar5/events{/privacy}","received_events_url":"https://api.github.com/users/remypar5/received_events","type":"User","site_admin":false},"repo":{"id":70085256,"name":"jacl","full_name":"remypar5/jacl","owner":{"login":"remypar5","id":4688360,"avatar_url":"https://avatars.githubusercontent.com/u/4688360?v=3","gravatar_id":"","url":"https://api.github.com/users/remypar5","html_url":"https://github.com/remypar5","followers_url":"https://api.github.com/users/remypar5/followers","following_url":"https://api.github.com/users/remypar5/following{/other_user}","gists_url":"https://api.github.com/users/remypar5/gists{/gist_id}","starred_url":"https://api.github.com/users/remypar5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remypar5/subscriptions","organizations_url":"https://api.github.com/users/remypar5/orgs","repos_url":"https://api.github.com/users/remypar5/repos","events_url":"https://api.github.com/users/remypar5/events{/privacy}","received_events_url":"https://api.github.com/users/remypar5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/remypar5/jacl","description":"Just Another Component Library","fork":false,"url":"https://api.github.com/repos/remypar5/jacl","forks_url":"https://api.github.com/repos/remypar5/jacl/forks","keys_url":"https://api.github.com/repos/remypar5/jacl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remypar5/jacl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remypar5/jacl/teams","hooks_url":"https://api.github.com/repos/remypar5/jacl/hooks","issue_events_url":"https://api.github.com/repos/remypar5/jacl/issues/events{/number}","events_url":"https://api.github.com/repos/remypar5/jacl/events","assignees_url":"https://api.github.com/repos/remypar5/jacl/assignees{/user}","branches_url":"https://api.github.com/repos/remypar5/jacl/branches{/branch}","tags_url":"https://api.github.com/repos/remypar5/jacl/tags","blobs_url":"https://api.github.com/repos/remypar5/jacl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remypar5/jacl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remypar5/jacl/git/refs{/sha}","trees_url":"https://api.github.com/repos/remypar5/jacl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remypar5/jacl/statuses/{sha}","languages_url":"https://api.github.com/repos/remypar5/jacl/languages","stargazers_url":"https://api.github.com/repos/remypar5/jacl/stargazers","contributors_url":"https://api.github.com/repos/remypar5/jacl/contributors","subscribers_url":"https://api.github.com/repos/remypar5/jacl/subscribers","subscription_url":"https://api.github.com/repos/remypar5/jacl/subscription","commits_url":"https://api.github.com/repos/remypar5/jacl/commits{/sha}","git_commits_url":"https://api.github.com/repos/remypar5/jacl/git/commits{/sha}","comments_url":"https://api.github.com/repos/remypar5/jacl/comments{/number}","issue_comment_url":"https://api.github.com/repos/remypar5/jacl/issues/comments{/number}","contents_url":"https://api.github.com/repos/remypar5/jacl/contents/{+path}","compare_url":"https://api.github.com/repos/remypar5/jacl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remypar5/jacl/merges","archive_url":"https://api.github.com/repos/remypar5/jacl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remypar5/jacl/downloads","issues_url":"https://api.github.com/repos/remypar5/jacl/issues{/number}","pulls_url":"https://api.github.com/repos/remypar5/jacl/pulls{/number}","milestones_url":"https://api.github.com/repos/remypar5/jacl/milestones{/number}","notifications_url":"https://api.github.com/repos/remypar5/jacl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remypar5/jacl/labels{/name}","releases_url":"https://api.github.com/repos/remypar5/jacl/releases{/id}","deployments_url":"https://api.github.com/repos/remypar5/jacl/deployments","created_at":"2016-10-05T17:57:52Z","updated_at":"2016-10-05T17:57:52Z","pushed_at":"2016-10-12T09:14:13Z","git_url":"git://github.com/remypar5/jacl.git","ssh_url":"git@github.com:remypar5/jacl.git","clone_url":"https://github.com/remypar5/jacl.git","svn_url":"https://github.com/remypar5/jacl","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":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":0,"default_branch":"master"}},"base":{"label":"remypar5:master","ref":"master","sha":"4872a623d804b62d40d20c9e0da0f8baeae50660","user":{"login":"remypar5","id":4688360,"avatar_url":"https://avatars.githubusercontent.com/u/4688360?v=3","gravatar_id":"","url":"https://api.github.com/users/remypar5","html_url":"https://github.com/remypar5","followers_url":"https://api.github.com/users/remypar5/followers","following_url":"https://api.github.com/users/remypar5/following{/other_user}","gists_url":"https://api.github.com/users/remypar5/gists{/gist_id}","starred_url":"https://api.github.com/users/remypar5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remypar5/subscriptions","organizations_url":"https://api.github.com/users/remypar5/orgs","repos_url":"https://api.github.com/users/remypar5/repos","events_url":"https://api.github.com/users/remypar5/events{/privacy}","received_events_url":"https://api.github.com/users/remypar5/received_events","type":"User","site_admin":false},"repo":{"id":70085256,"name":"jacl","full_name":"remypar5/jacl","owner":{"login":"remypar5","id":4688360,"avatar_url":"https://avatars.githubusercontent.com/u/4688360?v=3","gravatar_id":"","url":"https://api.github.com/users/remypar5","html_url":"https://github.com/remypar5","followers_url":"https://api.github.com/users/remypar5/followers","following_url":"https://api.github.com/users/remypar5/following{/other_user}","gists_url":"https://api.github.com/users/remypar5/gists{/gist_id}","starred_url":"https://api.github.com/users/remypar5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remypar5/subscriptions","organizations_url":"https://api.github.com/users/remypar5/orgs","repos_url":"https://api.github.com/users/remypar5/repos","events_url":"https://api.github.com/users/remypar5/events{/privacy}","received_events_url":"https://api.github.com/users/remypar5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/remypar5/jacl","description":"Just Another Component Library","fork":false,"url":"https://api.github.com/repos/remypar5/jacl","forks_url":"https://api.github.com/repos/remypar5/jacl/forks","keys_url":"https://api.github.com/repos/remypar5/jacl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remypar5/jacl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remypar5/jacl/teams","hooks_url":"https://api.github.com/repos/remypar5/jacl/hooks","issue_events_url":"https://api.github.com/repos/remypar5/jacl/issues/events{/number}","events_url":"https://api.github.com/repos/remypar5/jacl/events","assignees_url":"https://api.github.com/repos/remypar5/jacl/assignees{/user}","branches_url":"https://api.github.com/repos/remypar5/jacl/branches{/branch}","tags_url":"https://api.github.com/repos/remypar5/jacl/tags","blobs_url":"https://api.github.com/repos/remypar5/jacl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remypar5/jacl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remypar5/jacl/git/refs{/sha}","trees_url":"https://api.github.com/repos/remypar5/jacl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remypar5/jacl/statuses/{sha}","languages_url":"https://api.github.com/repos/remypar5/jacl/languages","stargazers_url":"https://api.github.com/repos/remypar5/jacl/stargazers","contributors_url":"https://api.github.com/repos/remypar5/jacl/contributors","subscribers_url":"https://api.github.com/repos/remypar5/jacl/subscribers","subscription_url":"https://api.github.com/repos/remypar5/jacl/subscription","commits_url":"https://api.github.com/repos/remypar5/jacl/commits{/sha}","git_commits_url":"https://api.github.com/repos/remypar5/jacl/git/commits{/sha}","comments_url":"https://api.github.com/repos/remypar5/jacl/comments{/number}","issue_comment_url":"https://api.github.com/repos/remypar5/jacl/issues/comments{/number}","contents_url":"https://api.github.com/repos/remypar5/jacl/contents/{+path}","compare_url":"https://api.github.com/repos/remypar5/jacl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remypar5/jacl/merges","archive_url":"https://api.github.com/repos/remypar5/jacl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remypar5/jacl/downloads","issues_url":"https://api.github.com/repos/remypar5/jacl/issues{/number}","pulls_url":"https://api.github.com/repos/remypar5/jacl/pulls{/number}","milestones_url":"https://api.github.com/repos/remypar5/jacl/milestones{/number}","notifications_url":"https://api.github.com/repos/remypar5/jacl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remypar5/jacl/labels{/name}","releases_url":"https://api.github.com/repos/remypar5/jacl/releases{/id}","deployments_url":"https://api.github.com/repos/remypar5/jacl/deployments","created_at":"2016-10-05T17:57:52Z","updated_at":"2016-10-05T17:57:52Z","pushed_at":"2016-10-12T09:14:13Z","git_url":"git://github.com/remypar5/jacl.git","ssh_url":"git@github.com:remypar5/jacl.git","clone_url":"https://github.com/remypar5/jacl.git","svn_url":"https://github.com/remypar5/jacl","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/1"},"html":{"href":"https://github.com/remypar5/jacl/pull/1"},"issue":{"href":"https://api.github.com/repos/remypar5/jacl/issues/1"},"comments":{"href":"https://api.github.com/repos/remypar5/jacl/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/remypar5/jacl/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/remypar5/jacl/statuses/a6bc19238ff3ad50fd31405e8d3e1a778e9c438f"}}}}
{"actor":{"display_login":"mettin"}}