{"action":"created","comment":{"url":"https://api.github.com/repos/gaoli/GGEditor/pulls/comments/219013967","pull_request_review_id":157082698,"id":219013967,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTAxMzk2Nw==","diff_hunk":"@@ -23,6 +23,18 @@ class GGEditor extends React.Component {\n     Global.set('trackable', Boolean(value));\n   }\n \n+  static withPropsAPI(WrappedComponent) {\n+    return class extends React.Component {\n+      static contextTypes = {\n+        propsAPI: PropTypes.object,\n+      };\n+\n+      render() {\n+        return <WrappedComponent propsAPI={this.context.propsAPI} {...this.props} />;","path":"src/components/GGEditor/index.js","position":11,"original_position":11,"commit_id":"a3f8c7798314b8729734bdd655fa5416f051ae58","original_commit_id":"a3f8c7798314b8729734bdd655fa5416f051ae58","user":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"body":"建议挂载 `propsAPI` 属性之下，防止命名冲突","created_at":"2018-09-20T01:50:38Z","updated_at":"2018-09-20T01:50:38Z","html_url":"https://github.com/gaoli/GGEditor/pull/65#discussion_r219013967","pull_request_url":"https://api.github.com/repos/gaoli/GGEditor/pulls/65","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/comments/219013967"},"html":{"href":"https://github.com/gaoli/GGEditor/pull/65#discussion_r219013967"},"pull_request":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/65"}},"in_reply_to_id":219012951},"pull_request":{"url":"https://api.github.com/repos/gaoli/GGEditor/pulls/65","id":216820336,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2ODIwMzM2","html_url":"https://github.com/gaoli/GGEditor/pull/65","diff_url":"https://github.com/gaoli/GGEditor/pull/65.diff","patch_url":"https://github.com/gaoli/GGEditor/pull/65.patch","issue_url":"https://api.github.com/repos/gaoli/GGEditor/issues/65","number":65,"state":"open","locked":false,"title":"Optimize `propsAPI` usage","user":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-20T01:31:32Z","updated_at":"2018-09-20T01:50:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84ab9cc37ab33c3941cadd7097f02d32b94ac9e3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gaoli/GGEditor/pulls/65/commits","review_comments_url":"https://api.github.com/repos/gaoli/GGEditor/pulls/65/comments","review_comment_url":"https://api.github.com/repos/gaoli/GGEditor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaoli/GGEditor/issues/65/comments","statuses_url":"https://api.github.com/repos/gaoli/GGEditor/statuses/a3f8c7798314b8729734bdd655fa5416f051ae58","head":{"label":"gaoli:propsAPI","ref":"propsAPI","sha":"a3f8c7798314b8729734bdd655fa5416f051ae58","user":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"repo":{"id":145947989,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU5NDc5ODk=","name":"GGEditor","full_name":"gaoli/GGEditor","private":false,"owner":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gaoli/GGEditor","description":"A visual graph editor based on G6 and React","fork":false,"url":"https://api.github.com/repos/gaoli/GGEditor","forks_url":"https://api.github.com/repos/gaoli/GGEditor/forks","keys_url":"https://api.github.com/repos/gaoli/GGEditor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaoli/GGEditor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaoli/GGEditor/teams","hooks_url":"https://api.github.com/repos/gaoli/GGEditor/hooks","issue_events_url":"https://api.github.com/repos/gaoli/GGEditor/issues/events{/number}","events_url":"https://api.github.com/repos/gaoli/GGEditor/events","assignees_url":"https://api.github.com/repos/gaoli/GGEditor/assignees{/user}","branches_url":"https://api.github.com/repos/gaoli/GGEditor/branches{/branch}","tags_url":"https://api.github.com/repos/gaoli/GGEditor/tags","blobs_url":"https://api.github.com/repos/gaoli/GGEditor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaoli/GGEditor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaoli/GGEditor/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaoli/GGEditor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaoli/GGEditor/statuses/{sha}","languages_url":"https://api.github.com/repos/gaoli/GGEditor/languages","stargazers_url":"https://api.github.com/repos/gaoli/GGEditor/stargazers","contributors_url":"https://api.github.com/repos/gaoli/GGEditor/contributors","subscribers_url":"https://api.github.com/repos/gaoli/GGEditor/subscribers","subscription_url":"https://api.github.com/repos/gaoli/GGEditor/subscription","commits_url":"https://api.github.com/repos/gaoli/GGEditor/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaoli/GGEditor/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaoli/GGEditor/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaoli/GGEditor/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaoli/GGEditor/contents/{+path}","compare_url":"https://api.github.com/repos/gaoli/GGEditor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaoli/GGEditor/merges","archive_url":"https://api.github.com/repos/gaoli/GGEditor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaoli/GGEditor/downloads","issues_url":"https://api.github.com/repos/gaoli/GGEditor/issues{/number}","pulls_url":"https://api.github.com/repos/gaoli/GGEditor/pulls{/number}","milestones_url":"https://api.github.com/repos/gaoli/GGEditor/milestones{/number}","notifications_url":"https://api.github.com/repos/gaoli/GGEditor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaoli/GGEditor/labels{/name}","releases_url":"https://api.github.com/repos/gaoli/GGEditor/releases{/id}","deployments_url":"https://api.github.com/repos/gaoli/GGEditor/deployments","created_at":"2018-08-24T05:50:30Z","updated_at":"2018-09-20T01:30:42Z","pushed_at":"2018-09-20T01:31:33Z","git_url":"git://github.com/gaoli/GGEditor.git","ssh_url":"git@github.com:gaoli/GGEditor.git","clone_url":"https://github.com/gaoli/GGEditor.git","svn_url":"https://github.com/gaoli/GGEditor","homepage":"http://ggeditor.com/","size":3929,"stargazers_count":297,"watchers_count":297,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":9,"watchers":297,"default_branch":"master"}},"base":{"label":"gaoli:master","ref":"master","sha":"d748568a16d1c1d59f081a8b73764cdcc9be60c4","user":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"repo":{"id":145947989,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU5NDc5ODk=","name":"GGEditor","full_name":"gaoli/GGEditor","private":false,"owner":{"login":"gaoli","id":780578,"node_id":"MDQ6VXNlcjc4MDU3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/780578?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoli","html_url":"https://github.com/gaoli","followers_url":"https://api.github.com/users/gaoli/followers","following_url":"https://api.github.com/users/gaoli/following{/other_user}","gists_url":"https://api.github.com/users/gaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoli/subscriptions","organizations_url":"https://api.github.com/users/gaoli/orgs","repos_url":"https://api.github.com/users/gaoli/repos","events_url":"https://api.github.com/users/gaoli/events{/privacy}","received_events_url":"https://api.github.com/users/gaoli/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gaoli/GGEditor","description":"A visual graph editor based on G6 and React","fork":false,"url":"https://api.github.com/repos/gaoli/GGEditor","forks_url":"https://api.github.com/repos/gaoli/GGEditor/forks","keys_url":"https://api.github.com/repos/gaoli/GGEditor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaoli/GGEditor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaoli/GGEditor/teams","hooks_url":"https://api.github.com/repos/gaoli/GGEditor/hooks","issue_events_url":"https://api.github.com/repos/gaoli/GGEditor/issues/events{/number}","events_url":"https://api.github.com/repos/gaoli/GGEditor/events","assignees_url":"https://api.github.com/repos/gaoli/GGEditor/assignees{/user}","branches_url":"https://api.github.com/repos/gaoli/GGEditor/branches{/branch}","tags_url":"https://api.github.com/repos/gaoli/GGEditor/tags","blobs_url":"https://api.github.com/repos/gaoli/GGEditor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaoli/GGEditor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaoli/GGEditor/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaoli/GGEditor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaoli/GGEditor/statuses/{sha}","languages_url":"https://api.github.com/repos/gaoli/GGEditor/languages","stargazers_url":"https://api.github.com/repos/gaoli/GGEditor/stargazers","contributors_url":"https://api.github.com/repos/gaoli/GGEditor/contributors","subscribers_url":"https://api.github.com/repos/gaoli/GGEditor/subscribers","subscription_url":"https://api.github.com/repos/gaoli/GGEditor/subscription","commits_url":"https://api.github.com/repos/gaoli/GGEditor/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaoli/GGEditor/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaoli/GGEditor/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaoli/GGEditor/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaoli/GGEditor/contents/{+path}","compare_url":"https://api.github.com/repos/gaoli/GGEditor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaoli/GGEditor/merges","archive_url":"https://api.github.com/repos/gaoli/GGEditor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaoli/GGEditor/downloads","issues_url":"https://api.github.com/repos/gaoli/GGEditor/issues{/number}","pulls_url":"https://api.github.com/repos/gaoli/GGEditor/pulls{/number}","milestones_url":"https://api.github.com/repos/gaoli/GGEditor/milestones{/number}","notifications_url":"https://api.github.com/repos/gaoli/GGEditor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaoli/GGEditor/labels{/name}","releases_url":"https://api.github.com/repos/gaoli/GGEditor/releases{/id}","deployments_url":"https://api.github.com/repos/gaoli/GGEditor/deployments","created_at":"2018-08-24T05:50:30Z","updated_at":"2018-09-20T01:30:42Z","pushed_at":"2018-09-20T01:31:33Z","git_url":"git://github.com/gaoli/GGEditor.git","ssh_url":"git@github.com:gaoli/GGEditor.git","clone_url":"https://github.com/gaoli/GGEditor.git","svn_url":"https://github.com/gaoli/GGEditor","homepage":"http://ggeditor.com/","size":3929,"stargazers_count":297,"watchers_count":297,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":9,"watchers":297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/65"},"html":{"href":"https://github.com/gaoli/GGEditor/pull/65"},"issue":{"href":"https://api.github.com/repos/gaoli/GGEditor/issues/65"},"comments":{"href":"https://api.github.com/repos/gaoli/GGEditor/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaoli/GGEditor/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/gaoli/GGEditor/statuses/a3f8c7798314b8729734bdd655fa5416f051ae58"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gaoli"}}