{"action":"created","comment":{"url":"https://api.github.com/repos/reakit/reakit/pulls/comments/228374454","pull_request_review_id":168634148,"id":228374454,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODM3NDQ1NA==","diff_hunk":"@@ -0,0 +1,118 @@\n+/* eslint-disable no-param-reassign */\n+export default function transformer(file, api) {\n+  const j = api.jscodeshift;\n+\n+  const ast = j(file.source);\n+\n+  let disguisedAs = \"\";\n+  let elementItself;\n+  let asDeclarationHasArray = false;\n+\n+  ast.find(j.ImportDeclaration).forEach(importDeclarations => {\n+    if (importDeclarations) {","path":"packages/reakit-codemods/src/transformations/v016.js","position":12,"original_position":12,"commit_id":"b386af4e529c87e9cbae7579cb210c6ea9f0fc96","original_commit_id":"b386af4e529c87e9cbae7579cb210c6ea9f0fc96","user":{"login":"PlayMa256","id":831308,"node_id":"MDQ6VXNlcjgzMTMwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/831308?v=4","gravatar_id":"","url":"https://api.github.com/users/PlayMa256","html_url":"https://github.com/PlayMa256","followers_url":"https://api.github.com/users/PlayMa256/followers","following_url":"https://api.github.com/users/PlayMa256/following{/other_user}","gists_url":"https://api.github.com/users/PlayMa256/gists{/gist_id}","starred_url":"https://api.github.com/users/PlayMa256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlayMa256/subscriptions","organizations_url":"https://api.github.com/users/PlayMa256/orgs","repos_url":"https://api.github.com/users/PlayMa256/repos","events_url":"https://api.github.com/users/PlayMa256/events{/privacy}","received_events_url":"https://api.github.com/users/PlayMa256/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n    if (importDeclarations && importDeclarations.value.source.value === 'reakit') {\r\n```","created_at":"2018-10-26T00:14:58Z","updated_at":"2018-10-26T00:14:59Z","html_url":"https://github.com/reakit/reakit/pull/280#discussion_r228374454","pull_request_url":"https://api.github.com/repos/reakit/reakit/pulls/280","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/reakit/reakit/pulls/comments/228374454"},"html":{"href":"https://github.com/reakit/reakit/pull/280#discussion_r228374454"},"pull_request":{"href":"https://api.github.com/repos/reakit/reakit/pulls/280"}}},"pull_request":{"url":"https://api.github.com/repos/reakit/reakit/pulls/280","id":225213062,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MjEzMDYy","html_url":"https://github.com/reakit/reakit/pull/280","diff_url":"https://github.com/reakit/reakit/pull/280.diff","patch_url":"https://github.com/reakit/reakit/pull/280.patch","issue_url":"https://api.github.com/repos/reakit/reakit/issues/280","number":280,"state":"open","locked":false,"title":"[WIP] codemods","user":{"login":"PlayMa256","id":831308,"node_id":"MDQ6VXNlcjgzMTMwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/831308?v=4","gravatar_id":"","url":"https://api.github.com/users/PlayMa256","html_url":"https://github.com/PlayMa256","followers_url":"https://api.github.com/users/PlayMa256/followers","following_url":"https://api.github.com/users/PlayMa256/following{/other_user}","gists_url":"https://api.github.com/users/PlayMa256/gists{/gist_id}","starred_url":"https://api.github.com/users/PlayMa256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlayMa256/subscriptions","organizations_url":"https://api.github.com/users/PlayMa256/orgs","repos_url":"https://api.github.com/users/PlayMa256/repos","events_url":"https://api.github.com/users/PlayMa256/events{/privacy}","received_events_url":"https://api.github.com/users/PlayMa256/received_events","type":"User","site_admin":false},"body":"Just for code review purposes... i'll properly add description when it is ready","created_at":"2018-10-23T22:56:12Z","updated_at":"2018-10-26T00:14:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9fc5604b519c331e0f4e28cf688f3733742ec49","assignee":null,"assignees":[],"requested_reviewers":[{"login":"diegohaz","id":3068563,"node_id":"MDQ6VXNlcjMwNjg1NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/3068563?v=4","gravatar_id":"","url":"https://api.github.com/users/diegohaz","html_url":"https://github.com/diegohaz","followers_url":"https://api.github.com/users/diegohaz/followers","following_url":"https://api.github.com/users/diegohaz/following{/other_user}","gists_url":"https://api.github.com/users/diegohaz/gists{/gist_id}","starred_url":"https://api.github.com/users/diegohaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegohaz/subscriptions","organizations_url":"https://api.github.com/users/diegohaz/orgs","repos_url":"https://api.github.com/users/diegohaz/repos","events_url":"https://api.github.com/users/diegohaz/events{/privacy}","received_events_url":"https://api.github.com/users/diegohaz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/reakit/reakit/pulls/280/commits","review_comments_url":"https://api.github.com/repos/reakit/reakit/pulls/280/comments","review_comment_url":"https://api.github.com/repos/reakit/reakit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reakit/reakit/issues/280/comments","statuses_url":"https://api.github.com/repos/reakit/reakit/statuses/b386af4e529c87e9cbae7579cb210c6ea9f0fc96","head":{"label":"reakit:feat/codemods","ref":"feat/codemods","sha":"b386af4e529c87e9cbae7579cb210c6ea9f0fc96","user":{"login":"reakit","id":40200111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjAwMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/40200111?v=4","gravatar_id":"","url":"https://api.github.com/users/reakit","html_url":"https://github.com/reakit","followers_url":"https://api.github.com/users/reakit/followers","following_url":"https://api.github.com/users/reakit/following{/other_user}","gists_url":"https://api.github.com/users/reakit/gists{/gist_id}","starred_url":"https://api.github.com/users/reakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reakit/subscriptions","organizations_url":"https://api.github.com/users/reakit/orgs","repos_url":"https://api.github.com/users/reakit/repos","events_url":"https://api.github.com/users/reakit/events{/privacy}","received_events_url":"https://api.github.com/users/reakit/received_events","type":"Organization","site_admin":false},"repo":{"id":104133653,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQxMzM2NTM=","name":"reakit","full_name":"reakit/reakit","private":false,"owner":{"login":"reakit","id":40200111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjAwMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/40200111?v=4","gravatar_id":"","url":"https://api.github.com/users/reakit","html_url":"https://github.com/reakit","followers_url":"https://api.github.com/users/reakit/followers","following_url":"https://api.github.com/users/reakit/following{/other_user}","gists_url":"https://api.github.com/users/reakit/gists{/gist_id}","starred_url":"https://api.github.com/users/reakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reakit/subscriptions","organizations_url":"https://api.github.com/users/reakit/orgs","repos_url":"https://api.github.com/users/reakit/repos","events_url":"https://api.github.com/users/reakit/events{/privacy}","received_events_url":"https://api.github.com/users/reakit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/reakit/reakit","description":"Toolkit for building really interactive UIs with React","fork":false,"url":"https://api.github.com/repos/reakit/reakit","forks_url":"https://api.github.com/repos/reakit/reakit/forks","keys_url":"https://api.github.com/repos/reakit/reakit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reakit/reakit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reakit/reakit/teams","hooks_url":"https://api.github.com/repos/reakit/reakit/hooks","issue_events_url":"https://api.github.com/repos/reakit/reakit/issues/events{/number}","events_url":"https://api.github.com/repos/reakit/reakit/events","assignees_url":"https://api.github.com/repos/reakit/reakit/assignees{/user}","branches_url":"https://api.github.com/repos/reakit/reakit/branches{/branch}","tags_url":"https://api.github.com/repos/reakit/reakit/tags","blobs_url":"https://api.github.com/repos/reakit/reakit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reakit/reakit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reakit/reakit/git/refs{/sha}","trees_url":"https://api.github.com/repos/reakit/reakit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reakit/reakit/statuses/{sha}","languages_url":"https://api.github.com/repos/reakit/reakit/languages","stargazers_url":"https://api.github.com/repos/reakit/reakit/stargazers","contributors_url":"https://api.github.com/repos/reakit/reakit/contributors","subscribers_url":"https://api.github.com/repos/reakit/reakit/subscribers","subscription_url":"https://api.github.com/repos/reakit/reakit/subscription","commits_url":"https://api.github.com/repos/reakit/reakit/commits{/sha}","git_commits_url":"https://api.github.com/repos/reakit/reakit/git/commits{/sha}","comments_url":"https://api.github.com/repos/reakit/reakit/comments{/number}","issue_comment_url":"https://api.github.com/repos/reakit/reakit/issues/comments{/number}","contents_url":"https://api.github.com/repos/reakit/reakit/contents/{+path}","compare_url":"https://api.github.com/repos/reakit/reakit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reakit/reakit/merges","archive_url":"https://api.github.com/repos/reakit/reakit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reakit/reakit/downloads","issues_url":"https://api.github.com/repos/reakit/reakit/issues{/number}","pulls_url":"https://api.github.com/repos/reakit/reakit/pulls{/number}","milestones_url":"https://api.github.com/repos/reakit/reakit/milestones{/number}","notifications_url":"https://api.github.com/repos/reakit/reakit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reakit/reakit/labels{/name}","releases_url":"https://api.github.com/repos/reakit/reakit/releases{/id}","deployments_url":"https://api.github.com/repos/reakit/reakit/deployments","created_at":"2017-09-19T22:00:42Z","updated_at":"2018-10-25T13:03:26Z","pushed_at":"2018-10-25T19:21:34Z","git_url":"git://github.com/reakit/reakit.git","ssh_url":"git@github.com:reakit/reakit.git","clone_url":"https://github.com/reakit/reakit.git","svn_url":"https://github.com/reakit/reakit","homepage":"https://reakit.io","size":7773,"stargazers_count":1313,"watchers_count":1313,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":86,"open_issues":20,"watchers":1313,"default_branch":"master"}},"base":{"label":"reakit:master","ref":"master","sha":"88280b5323bc8ac4e3852b65f1f3a8e0eb96c753","user":{"login":"reakit","id":40200111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjAwMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/40200111?v=4","gravatar_id":"","url":"https://api.github.com/users/reakit","html_url":"https://github.com/reakit","followers_url":"https://api.github.com/users/reakit/followers","following_url":"https://api.github.com/users/reakit/following{/other_user}","gists_url":"https://api.github.com/users/reakit/gists{/gist_id}","starred_url":"https://api.github.com/users/reakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reakit/subscriptions","organizations_url":"https://api.github.com/users/reakit/orgs","repos_url":"https://api.github.com/users/reakit/repos","events_url":"https://api.github.com/users/reakit/events{/privacy}","received_events_url":"https://api.github.com/users/reakit/received_events","type":"Organization","site_admin":false},"repo":{"id":104133653,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQxMzM2NTM=","name":"reakit","full_name":"reakit/reakit","private":false,"owner":{"login":"reakit","id":40200111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjAwMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/40200111?v=4","gravatar_id":"","url":"https://api.github.com/users/reakit","html_url":"https://github.com/reakit","followers_url":"https://api.github.com/users/reakit/followers","following_url":"https://api.github.com/users/reakit/following{/other_user}","gists_url":"https://api.github.com/users/reakit/gists{/gist_id}","starred_url":"https://api.github.com/users/reakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reakit/subscriptions","organizations_url":"https://api.github.com/users/reakit/orgs","repos_url":"https://api.github.com/users/reakit/repos","events_url":"https://api.github.com/users/reakit/events{/privacy}","received_events_url":"https://api.github.com/users/reakit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/reakit/reakit","description":"Toolkit for building really interactive UIs with React","fork":false,"url":"https://api.github.com/repos/reakit/reakit","forks_url":"https://api.github.com/repos/reakit/reakit/forks","keys_url":"https://api.github.com/repos/reakit/reakit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reakit/reakit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reakit/reakit/teams","hooks_url":"https://api.github.com/repos/reakit/reakit/hooks","issue_events_url":"https://api.github.com/repos/reakit/reakit/issues/events{/number}","events_url":"https://api.github.com/repos/reakit/reakit/events","assignees_url":"https://api.github.com/repos/reakit/reakit/assignees{/user}","branches_url":"https://api.github.com/repos/reakit/reakit/branches{/branch}","tags_url":"https://api.github.com/repos/reakit/reakit/tags","blobs_url":"https://api.github.com/repos/reakit/reakit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reakit/reakit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reakit/reakit/git/refs{/sha}","trees_url":"https://api.github.com/repos/reakit/reakit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reakit/reakit/statuses/{sha}","languages_url":"https://api.github.com/repos/reakit/reakit/languages","stargazers_url":"https://api.github.com/repos/reakit/reakit/stargazers","contributors_url":"https://api.github.com/repos/reakit/reakit/contributors","subscribers_url":"https://api.github.com/repos/reakit/reakit/subscribers","subscription_url":"https://api.github.com/repos/reakit/reakit/subscription","commits_url":"https://api.github.com/repos/reakit/reakit/commits{/sha}","git_commits_url":"https://api.github.com/repos/reakit/reakit/git/commits{/sha}","comments_url":"https://api.github.com/repos/reakit/reakit/comments{/number}","issue_comment_url":"https://api.github.com/repos/reakit/reakit/issues/comments{/number}","contents_url":"https://api.github.com/repos/reakit/reakit/contents/{+path}","compare_url":"https://api.github.com/repos/reakit/reakit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reakit/reakit/merges","archive_url":"https://api.github.com/repos/reakit/reakit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reakit/reakit/downloads","issues_url":"https://api.github.com/repos/reakit/reakit/issues{/number}","pulls_url":"https://api.github.com/repos/reakit/reakit/pulls{/number}","milestones_url":"https://api.github.com/repos/reakit/reakit/milestones{/number}","notifications_url":"https://api.github.com/repos/reakit/reakit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reakit/reakit/labels{/name}","releases_url":"https://api.github.com/repos/reakit/reakit/releases{/id}","deployments_url":"https://api.github.com/repos/reakit/reakit/deployments","created_at":"2017-09-19T22:00:42Z","updated_at":"2018-10-25T13:03:26Z","pushed_at":"2018-10-25T19:21:34Z","git_url":"git://github.com/reakit/reakit.git","ssh_url":"git@github.com:reakit/reakit.git","clone_url":"https://github.com/reakit/reakit.git","svn_url":"https://github.com/reakit/reakit","homepage":"https://reakit.io","size":7773,"stargazers_count":1313,"watchers_count":1313,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":86,"open_issues":20,"watchers":1313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reakit/reakit/pulls/280"},"html":{"href":"https://github.com/reakit/reakit/pull/280"},"issue":{"href":"https://api.github.com/repos/reakit/reakit/issues/280"},"comments":{"href":"https://api.github.com/repos/reakit/reakit/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/reakit/reakit/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/reakit/reakit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reakit/reakit/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/reakit/reakit/statuses/b386af4e529c87e9cbae7579cb210c6ea9f0fc96"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"PlayMa256"}}