{"action":"opened","number":99,"pull_request":{"url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99","id":74838244,"html_url":"https://github.com/gaearon/babel-plugin-react-transform/pull/99","diff_url":"https://github.com/gaearon/babel-plugin-react-transform/pull/99.diff","patch_url":"https://github.com/gaearon/babel-plugin-react-transform/pull/99.patch","issue_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/99","number":99,"state":"open","locked":false,"title":"Guard access to node.key when finding displayName","user":{"login":"stephen","id":2320890,"avatar_url":"https://avatars.githubusercontent.com/u/2320890?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen","html_url":"https://github.com/stephen","followers_url":"https://api.github.com/users/stephen/followers","following_url":"https://api.github.com/users/stephen/following{/other_user}","gists_url":"https://api.github.com/users/stephen/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen/subscriptions","organizations_url":"https://api.github.com/users/stephen/orgs","repos_url":"https://api.github.com/users/stephen/repos","events_url":"https://api.github.com/users/stephen/events{/privacy}","received_events_url":"https://api.github.com/users/stephen/received_events","type":"User","site_admin":false},"body":"This PR addresses an issue where use of the spread operator inside of a component spec causes `getDisplayName` to fail, since `SpreadOperator` nodes don't have a `key` property.\r\n\r\nExample class:\r\n```js\r\nconst definition = {};\r\nReact.createClass({\r\n  ...definition,\r\n  displayName: 'TestClass',\r\n});\r\n```\r\nError output:\r\n```\r\nTypeError: Cannot read property 'name' of undefined while parsing file: <file>\r\n```\r\n","created_at":"2016-06-22T18:59:29Z","updated_at":"2016-06-22T18:59:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99/commits","review_comments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99/comments","review_comment_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/99/comments","statuses_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/statuses/d4751dc2ce2d429e3546a665734b0f11a0b43ac9","head":{"label":"stephen:patch-1","ref":"patch-1","sha":"d4751dc2ce2d429e3546a665734b0f11a0b43ac9","user":{"login":"stephen","id":2320890,"avatar_url":"https://avatars.githubusercontent.com/u/2320890?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen","html_url":"https://github.com/stephen","followers_url":"https://api.github.com/users/stephen/followers","following_url":"https://api.github.com/users/stephen/following{/other_user}","gists_url":"https://api.github.com/users/stephen/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen/subscriptions","organizations_url":"https://api.github.com/users/stephen/orgs","repos_url":"https://api.github.com/users/stephen/repos","events_url":"https://api.github.com/users/stephen/events{/privacy}","received_events_url":"https://api.github.com/users/stephen/received_events","type":"User","site_admin":false},"repo":{"id":61741844,"name":"babel-plugin-react-transform","full_name":"stephen/babel-plugin-react-transform","owner":{"login":"stephen","id":2320890,"avatar_url":"https://avatars.githubusercontent.com/u/2320890?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen","html_url":"https://github.com/stephen","followers_url":"https://api.github.com/users/stephen/followers","following_url":"https://api.github.com/users/stephen/following{/other_user}","gists_url":"https://api.github.com/users/stephen/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen/subscriptions","organizations_url":"https://api.github.com/users/stephen/orgs","repos_url":"https://api.github.com/users/stephen/repos","events_url":"https://api.github.com/users/stephen/events{/privacy}","received_events_url":"https://api.github.com/users/stephen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephen/babel-plugin-react-transform","description":"Babel plugin to instrument React components with custom transforms","fork":true,"url":"https://api.github.com/repos/stephen/babel-plugin-react-transform","forks_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/forks","keys_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/teams","hooks_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/hooks","issue_events_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/issues/events{/number}","events_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/events","assignees_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/assignees{/user}","branches_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/branches{/branch}","tags_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/tags","blobs_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/statuses/{sha}","languages_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/languages","stargazers_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/stargazers","contributors_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/contributors","subscribers_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/subscribers","subscription_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/subscription","commits_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/contents/{+path}","compare_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/merges","archive_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/downloads","issues_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/issues{/number}","pulls_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/pulls{/number}","milestones_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/milestones{/number}","notifications_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/labels{/name}","releases_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/releases{/id}","deployments_url":"https://api.github.com/repos/stephen/babel-plugin-react-transform/deployments","created_at":"2016-06-22T18:23:48Z","updated_at":"2016-06-22T18:23:48Z","pushed_at":"2016-06-22T18:41:20Z","git_url":"git://github.com/stephen/babel-plugin-react-transform.git","ssh_url":"git@github.com:stephen/babel-plugin-react-transform.git","clone_url":"https://github.com/stephen/babel-plugin-react-transform.git","svn_url":"https://github.com/stephen/babel-plugin-react-transform","homepage":"","size":101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gaearon:master","ref":"master","sha":"df23cf0bc6863f53d9b1caf70841243c257d2ce3","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"repo":{"id":41516944,"name":"babel-plugin-react-transform","full_name":"gaearon/babel-plugin-react-transform","owner":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gaearon/babel-plugin-react-transform","description":"Babel plugin to instrument React components with custom transforms","fork":false,"url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform","forks_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/forks","keys_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/teams","hooks_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/hooks","issue_events_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/events{/number}","events_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/events","assignees_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/assignees{/user}","branches_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/branches{/branch}","tags_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/tags","blobs_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/statuses/{sha}","languages_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/languages","stargazers_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/stargazers","contributors_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/contributors","subscribers_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/subscribers","subscription_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/subscription","commits_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/contents/{+path}","compare_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/merges","archive_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/downloads","issues_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues{/number}","pulls_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls{/number}","milestones_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/milestones{/number}","notifications_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/labels{/name}","releases_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/releases{/id}","deployments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/deployments","created_at":"2015-08-27T23:50:00Z","updated_at":"2016-06-22T08:04:25Z","pushed_at":"2016-06-22T18:59:29Z","git_url":"git://github.com/gaearon/babel-plugin-react-transform.git","ssh_url":"git@github.com:gaearon/babel-plugin-react-transform.git","clone_url":"https://github.com/gaearon/babel-plugin-react-transform.git","svn_url":"https://github.com/gaearon/babel-plugin-react-transform","homepage":"","size":174,"stargazers_count":886,"watchers_count":886,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":2,"forks":74,"open_issues":2,"watchers":886,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99"},"html":{"href":"https://github.com/gaearon/babel-plugin-react-transform/pull/99"},"issue":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/99"},"comments":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/statuses/d4751dc2ce2d429e3546a665734b0f11a0b43ac9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"stephen"}}