{"action":"created","comment":{"url":"https://api.github.com/repos/teambit/bit/pulls/comments/136854847","pull_request_review_id":60451902,"id":136854847,"diff_hunk":"@@ -0,0 +1,40 @@\n+/** @flow */\n+import includes from \"lodash.includes\";\n+import R from \"ramda\";\n+import BitMap from \"../../../consumer/bit-map\";\n+import {loadConsumer, Consumer} from \"../../../consumer\";\n+import ComponentsList from \"../../../consumer/component/components-list\";\n+\n+\n+export default async function untrack(componentIds: string[]): Promise<Object> {\n+\n+  const untrackedComponents = [];\n+  const consumer: Consumer = await loadConsumer();\n+  const bitMap = await BitMap.load(consumer.getPath());\n+  const componentsList = new ComponentsList(consumer);\n+  const newComponents = await componentsList.listNewComponents(true);\n+  const stagedComponents = await componentsList.listExportPendingComponents();","path":"src/api/consumer/lib/untrack.js","position":16,"original_position":16,"commit_id":"0517a5a059992af418f02c6b2444ed6b77fe1d60","original_commit_id":"0517a5a059992af418f02c6b2444ed6b77fe1d60","user":{"login":"GiladShoham","id":3840769,"avatar_url":"https://avatars0.githubusercontent.com/u/3840769?v=4","gravatar_id":"","url":"https://api.github.com/users/GiladShoham","html_url":"https://github.com/GiladShoham","followers_url":"https://api.github.com/users/GiladShoham/followers","following_url":"https://api.github.com/users/GiladShoham/following{/other_user}","gists_url":"https://api.github.com/users/GiladShoham/gists{/gist_id}","starred_url":"https://api.github.com/users/GiladShoham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiladShoham/subscriptions","organizations_url":"https://api.github.com/users/GiladShoham/orgs","repos_url":"https://api.github.com/users/GiladShoham/repos","events_url":"https://api.github.com/users/GiladShoham/events{/privacy}","received_events_url":"https://api.github.com/users/GiladShoham/received_events","type":"User","site_admin":false},"body":"get the list export / list modified is expensive operations and you don't really need them.\r\nIf a component is not missing and not in the new list it should just be in the unRemovable","created_at":"2017-09-04T17:00:15Z","updated_at":"2017-09-04T17:05:38Z","html_url":"https://github.com/teambit/bit/pull/265#discussion_r136854847","pull_request_url":"https://api.github.com/repos/teambit/bit/pulls/265","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/teambit/bit/pulls/comments/136854847"},"html":{"href":"https://github.com/teambit/bit/pull/265#discussion_r136854847"},"pull_request":{"href":"https://api.github.com/repos/teambit/bit/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/teambit/bit/pulls/265","id":139121680,"html_url":"https://github.com/teambit/bit/pull/265","diff_url":"https://github.com/teambit/bit/pull/265.diff","patch_url":"https://github.com/teambit/bit/pull/265.patch","issue_url":"https://api.github.com/repos/teambit/bit/issues/265","number":265,"state":"open","locked":false,"title":"Untrack","user":{"login":"amitgilad3","id":7702311,"avatar_url":"https://avatars0.githubusercontent.com/u/7702311?v=4","gravatar_id":"","url":"https://api.github.com/users/amitgilad3","html_url":"https://github.com/amitgilad3","followers_url":"https://api.github.com/users/amitgilad3/followers","following_url":"https://api.github.com/users/amitgilad3/following{/other_user}","gists_url":"https://api.github.com/users/amitgilad3/gists{/gist_id}","starred_url":"https://api.github.com/users/amitgilad3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitgilad3/subscriptions","organizations_url":"https://api.github.com/users/amitgilad3/orgs","repos_url":"https://api.github.com/users/amitgilad3/repos","events_url":"https://api.github.com/users/amitgilad3/events{/privacy}","received_events_url":"https://api.github.com/users/amitgilad3/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-04T09:56:40Z","updated_at":"2017-09-04T17:05:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0097a5a237fec60e7b6af374d907265f65b33d0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/teambit/bit/pulls/265/commits","review_comments_url":"https://api.github.com/repos/teambit/bit/pulls/265/comments","review_comment_url":"https://api.github.com/repos/teambit/bit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teambit/bit/issues/265/comments","statuses_url":"https://api.github.com/repos/teambit/bit/statuses/0517a5a059992af418f02c6b2444ed6b77fe1d60","head":{"label":"teambit:untrack","ref":"untrack","sha":"0517a5a059992af418f02c6b2444ed6b77fe1d60","user":{"login":"teambit","id":24789812,"avatar_url":"https://avatars1.githubusercontent.com/u/24789812?v=4","gravatar_id":"","url":"https://api.github.com/users/teambit","html_url":"https://github.com/teambit","followers_url":"https://api.github.com/users/teambit/followers","following_url":"https://api.github.com/users/teambit/following{/other_user}","gists_url":"https://api.github.com/users/teambit/gists{/gist_id}","starred_url":"https://api.github.com/users/teambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambit/subscriptions","organizations_url":"https://api.github.com/users/teambit/orgs","repos_url":"https://api.github.com/users/teambit/repos","events_url":"https://api.github.com/users/teambit/events{/privacy}","received_events_url":"https://api.github.com/users/teambit/received_events","type":"Organization","site_admin":false},"repo":{"id":79723839,"name":"bit","full_name":"teambit/bit","owner":{"login":"teambit","id":24789812,"avatar_url":"https://avatars1.githubusercontent.com/u/24789812?v=4","gravatar_id":"","url":"https://api.github.com/users/teambit","html_url":"https://github.com/teambit","followers_url":"https://api.github.com/users/teambit/followers","following_url":"https://api.github.com/users/teambit/following{/other_user}","gists_url":"https://api.github.com/users/teambit/gists{/gist_id}","starred_url":"https://api.github.com/users/teambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambit/subscriptions","organizations_url":"https://api.github.com/users/teambit/orgs","repos_url":"https://api.github.com/users/teambit/repos","events_url":"https://api.github.com/users/teambit/events{/privacy}","received_events_url":"https://api.github.com/users/teambit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teambit/bit","description":"Share code components with your team across projects","fork":false,"url":"https://api.github.com/repos/teambit/bit","forks_url":"https://api.github.com/repos/teambit/bit/forks","keys_url":"https://api.github.com/repos/teambit/bit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambit/bit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambit/bit/teams","hooks_url":"https://api.github.com/repos/teambit/bit/hooks","issue_events_url":"https://api.github.com/repos/teambit/bit/issues/events{/number}","events_url":"https://api.github.com/repos/teambit/bit/events","assignees_url":"https://api.github.com/repos/teambit/bit/assignees{/user}","branches_url":"https://api.github.com/repos/teambit/bit/branches{/branch}","tags_url":"https://api.github.com/repos/teambit/bit/tags","blobs_url":"https://api.github.com/repos/teambit/bit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambit/bit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambit/bit/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambit/bit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambit/bit/statuses/{sha}","languages_url":"https://api.github.com/repos/teambit/bit/languages","stargazers_url":"https://api.github.com/repos/teambit/bit/stargazers","contributors_url":"https://api.github.com/repos/teambit/bit/contributors","subscribers_url":"https://api.github.com/repos/teambit/bit/subscribers","subscription_url":"https://api.github.com/repos/teambit/bit/subscription","commits_url":"https://api.github.com/repos/teambit/bit/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambit/bit/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambit/bit/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambit/bit/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambit/bit/contents/{+path}","compare_url":"https://api.github.com/repos/teambit/bit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambit/bit/merges","archive_url":"https://api.github.com/repos/teambit/bit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambit/bit/downloads","issues_url":"https://api.github.com/repos/teambit/bit/issues{/number}","pulls_url":"https://api.github.com/repos/teambit/bit/pulls{/number}","milestones_url":"https://api.github.com/repos/teambit/bit/milestones{/number}","notifications_url":"https://api.github.com/repos/teambit/bit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambit/bit/labels{/name}","releases_url":"https://api.github.com/repos/teambit/bit/releases{/id}","deployments_url":"https://api.github.com/repos/teambit/bit/deployments","created_at":"2017-01-22T14:51:43Z","updated_at":"2017-09-03T19:52:19Z","pushed_at":"2017-09-04T14:45:42Z","git_url":"git://github.com/teambit/bit.git","ssh_url":"git@github.com:teambit/bit.git","clone_url":"https://github.com/teambit/bit.git","svn_url":"https://github.com/teambit/bit","homepage":"https://bitsrc.io","size":33298,"stargazers_count":684,"watchers_count":684,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"open_issues_count":17,"forks":33,"open_issues":17,"watchers":684,"default_branch":"master"}},"base":{"label":"teambit:master","ref":"master","sha":"3e720e5f8946864546ce10b42ba9d1a5cb920092","user":{"login":"teambit","id":24789812,"avatar_url":"https://avatars1.githubusercontent.com/u/24789812?v=4","gravatar_id":"","url":"https://api.github.com/users/teambit","html_url":"https://github.com/teambit","followers_url":"https://api.github.com/users/teambit/followers","following_url":"https://api.github.com/users/teambit/following{/other_user}","gists_url":"https://api.github.com/users/teambit/gists{/gist_id}","starred_url":"https://api.github.com/users/teambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambit/subscriptions","organizations_url":"https://api.github.com/users/teambit/orgs","repos_url":"https://api.github.com/users/teambit/repos","events_url":"https://api.github.com/users/teambit/events{/privacy}","received_events_url":"https://api.github.com/users/teambit/received_events","type":"Organization","site_admin":false},"repo":{"id":79723839,"name":"bit","full_name":"teambit/bit","owner":{"login":"teambit","id":24789812,"avatar_url":"https://avatars1.githubusercontent.com/u/24789812?v=4","gravatar_id":"","url":"https://api.github.com/users/teambit","html_url":"https://github.com/teambit","followers_url":"https://api.github.com/users/teambit/followers","following_url":"https://api.github.com/users/teambit/following{/other_user}","gists_url":"https://api.github.com/users/teambit/gists{/gist_id}","starred_url":"https://api.github.com/users/teambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambit/subscriptions","organizations_url":"https://api.github.com/users/teambit/orgs","repos_url":"https://api.github.com/users/teambit/repos","events_url":"https://api.github.com/users/teambit/events{/privacy}","received_events_url":"https://api.github.com/users/teambit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teambit/bit","description":"Share code components with your team across projects","fork":false,"url":"https://api.github.com/repos/teambit/bit","forks_url":"https://api.github.com/repos/teambit/bit/forks","keys_url":"https://api.github.com/repos/teambit/bit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambit/bit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambit/bit/teams","hooks_url":"https://api.github.com/repos/teambit/bit/hooks","issue_events_url":"https://api.github.com/repos/teambit/bit/issues/events{/number}","events_url":"https://api.github.com/repos/teambit/bit/events","assignees_url":"https://api.github.com/repos/teambit/bit/assignees{/user}","branches_url":"https://api.github.com/repos/teambit/bit/branches{/branch}","tags_url":"https://api.github.com/repos/teambit/bit/tags","blobs_url":"https://api.github.com/repos/teambit/bit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambit/bit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambit/bit/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambit/bit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambit/bit/statuses/{sha}","languages_url":"https://api.github.com/repos/teambit/bit/languages","stargazers_url":"https://api.github.com/repos/teambit/bit/stargazers","contributors_url":"https://api.github.com/repos/teambit/bit/contributors","subscribers_url":"https://api.github.com/repos/teambit/bit/subscribers","subscription_url":"https://api.github.com/repos/teambit/bit/subscription","commits_url":"https://api.github.com/repos/teambit/bit/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambit/bit/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambit/bit/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambit/bit/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambit/bit/contents/{+path}","compare_url":"https://api.github.com/repos/teambit/bit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambit/bit/merges","archive_url":"https://api.github.com/repos/teambit/bit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambit/bit/downloads","issues_url":"https://api.github.com/repos/teambit/bit/issues{/number}","pulls_url":"https://api.github.com/repos/teambit/bit/pulls{/number}","milestones_url":"https://api.github.com/repos/teambit/bit/milestones{/number}","notifications_url":"https://api.github.com/repos/teambit/bit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambit/bit/labels{/name}","releases_url":"https://api.github.com/repos/teambit/bit/releases{/id}","deployments_url":"https://api.github.com/repos/teambit/bit/deployments","created_at":"2017-01-22T14:51:43Z","updated_at":"2017-09-03T19:52:19Z","pushed_at":"2017-09-04T14:45:42Z","git_url":"git://github.com/teambit/bit.git","ssh_url":"git@github.com:teambit/bit.git","clone_url":"https://github.com/teambit/bit.git","svn_url":"https://github.com/teambit/bit","homepage":"https://bitsrc.io","size":33298,"stargazers_count":684,"watchers_count":684,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"open_issues_count":17,"forks":33,"open_issues":17,"watchers":684,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teambit/bit/pulls/265"},"html":{"href":"https://github.com/teambit/bit/pull/265"},"issue":{"href":"https://api.github.com/repos/teambit/bit/issues/265"},"comments":{"href":"https://api.github.com/repos/teambit/bit/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/teambit/bit/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/teambit/bit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teambit/bit/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/teambit/bit/statuses/0517a5a059992af418f02c6b2444ed6b77fe1d60"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"GiladShoham"}}