{"action":"created","comment":{"url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/comments/86740380","pull_request_review_id":7381970,"id":86740380,"diff_hunk":"@@ -14,8 +14,8 @@ class WordCloud extends Component {\n \n   render() {\n     const { data, width, height, font } = this.props;\n-    const wordCounts = Object.keys(data).map(\n-      key => ({ text: key, value: data[key], test: '123' })\n+    const wordCounts = data.map(\n+      text => ({ ...text, test: '123' })","path":"src/WordCloud.js","position":7,"original_position":7,"commit_id":"5196ab1d8b4fdf90b3cf85a60138722df463f34d","original_commit_id":"5196ab1d8b4fdf90b3cf85a60138722df463f34d","user":{"login":"tw0517tw","id":1003146,"avatar_url":"https://avatars.githubusercontent.com/u/1003146?v=3","gravatar_id":"","url":"https://api.github.com/users/tw0517tw","html_url":"https://github.com/tw0517tw","followers_url":"https://api.github.com/users/tw0517tw/followers","following_url":"https://api.github.com/users/tw0517tw/following{/other_user}","gists_url":"https://api.github.com/users/tw0517tw/gists{/gist_id}","starred_url":"https://api.github.com/users/tw0517tw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw0517tw/subscriptions","organizations_url":"https://api.github.com/users/tw0517tw/orgs","repos_url":"https://api.github.com/users/tw0517tw/repos","events_url":"https://api.github.com/users/tw0517tw/events{/privacy}","received_events_url":"https://api.github.com/users/tw0517tw/received_events","type":"User","site_admin":false},"body":"test: '123' 是幹嘛?","created_at":"2016-11-07T09:47:57Z","updated_at":"2016-11-07T09:47:57Z","html_url":"https://github.com/Yoctol/react-d3-cloud/pull/17#discussion_r86740380","pull_request_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/comments/86740380"},"html":{"href":"https://github.com/Yoctol/react-d3-cloud/pull/17#discussion_r86740380"},"pull_request":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17","id":92546753,"html_url":"https://github.com/Yoctol/react-d3-cloud/pull/17","diff_url":"https://github.com/Yoctol/react-d3-cloud/pull/17.diff","patch_url":"https://github.com/Yoctol/react-d3-cloud/pull/17.patch","issue_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/17","number":17,"state":"open","locked":false,"title":"change input shape","user":{"login":"stegben","id":6868283,"avatar_url":"https://avatars.githubusercontent.com/u/6868283?v=3","gravatar_id":"","url":"https://api.github.com/users/stegben","html_url":"https://github.com/stegben","followers_url":"https://api.github.com/users/stegben/followers","following_url":"https://api.github.com/users/stegben/following{/other_user}","gists_url":"https://api.github.com/users/stegben/gists{/gist_id}","starred_url":"https://api.github.com/users/stegben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stegben/subscriptions","organizations_url":"https://api.github.com/users/stegben/orgs","repos_url":"https://api.github.com/users/stegben/repos","events_url":"https://api.github.com/users/stegben/events{/privacy}","received_events_url":"https://api.github.com/users/stegben/received_events","type":"User","site_admin":false},"body":"The latest usage:\r\n\r\n```js\r\nimport WordCloud from 'react-d3-cloud'\r\n\r\nconst data = [\r\n  { text: 'Hey', value: 1000 },\r\n  { text: 'lol', value: 200 },\r\n  { text: 'first impression', value: 800 },\r\n  { text: 'cool', value: 1 },\r\n  { text: 'duck', value: 10 },\r\n]\r\n\r\n<WordCloud data={data} />\r\n```","created_at":"2016-11-07T09:16:33Z","updated_at":"2016-11-07T09:47:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1f6ffb320117eb42961288de09e7f1799e294b4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/17/comments","statuses_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/statuses/5196ab1d8b4fdf90b3cf85a60138722df463f34d","head":{"label":"Yoctol:refine-input-data-shape","ref":"refine-input-data-shape","sha":"5196ab1d8b4fdf90b3cf85a60138722df463f34d","user":{"login":"Yoctol","id":10671553,"avatar_url":"https://avatars.githubusercontent.com/u/10671553?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"repo":{"id":65000653,"name":"react-d3-cloud","full_name":"Yoctol/react-d3-cloud","owner":{"login":"Yoctol","id":10671553,"avatar_url":"https://avatars.githubusercontent.com/u/10671553?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoctol/react-d3-cloud","description":"A word cloud react component using d3-cloud","fork":false,"url":"https://api.github.com/repos/Yoctol/react-d3-cloud","forks_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/forks","keys_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/teams","hooks_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/hooks","issue_events_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/events","assignees_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/tags","blobs_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/languages","stargazers_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/stargazers","contributors_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/contributors","subscribers_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/subscribers","subscription_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/subscription","commits_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/merges","archive_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/downloads","issues_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/labels{/name}","releases_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/deployments","created_at":"2016-08-05T08:01:59Z","updated_at":"2016-11-03T02:22:30Z","pushed_at":"2016-11-07T09:26:27Z","git_url":"git://github.com/Yoctol/react-d3-cloud.git","ssh_url":"git@github.com:Yoctol/react-d3-cloud.git","clone_url":"https://github.com/Yoctol/react-d3-cloud.git","svn_url":"https://github.com/Yoctol/react-d3-cloud","homepage":null,"size":26,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":4,"default_branch":"master"}},"base":{"label":"Yoctol:master","ref":"master","sha":"413b61a57bcca4f85319a8feb80b68c4defc673d","user":{"login":"Yoctol","id":10671553,"avatar_url":"https://avatars.githubusercontent.com/u/10671553?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"repo":{"id":65000653,"name":"react-d3-cloud","full_name":"Yoctol/react-d3-cloud","owner":{"login":"Yoctol","id":10671553,"avatar_url":"https://avatars.githubusercontent.com/u/10671553?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoctol/react-d3-cloud","description":"A word cloud react component using d3-cloud","fork":false,"url":"https://api.github.com/repos/Yoctol/react-d3-cloud","forks_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/forks","keys_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/teams","hooks_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/hooks","issue_events_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/events","assignees_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/tags","blobs_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/languages","stargazers_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/stargazers","contributors_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/contributors","subscribers_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/subscribers","subscription_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/subscription","commits_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/merges","archive_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/downloads","issues_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/labels{/name}","releases_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/Yoctol/react-d3-cloud/deployments","created_at":"2016-08-05T08:01:59Z","updated_at":"2016-11-03T02:22:30Z","pushed_at":"2016-11-07T09:26:27Z","git_url":"git://github.com/Yoctol/react-d3-cloud.git","ssh_url":"git@github.com:Yoctol/react-d3-cloud.git","clone_url":"https://github.com/Yoctol/react-d3-cloud.git","svn_url":"https://github.com/Yoctol/react-d3-cloud","homepage":null,"size":26,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17"},"html":{"href":"https://github.com/Yoctol/react-d3-cloud/pull/17"},"issue":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/17"},"comments":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Yoctol/react-d3-cloud/statuses/5196ab1d8b4fdf90b3cf85a60138722df463f34d"}}}}
{"actor":{"display_login":"tw0517tw"}}