{"action":"created","comment":{"url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/comments/27755948","id":27755948,"diff_hunk":"@@ -68,8 +68,22 @@ exports.group = function(group){\n \n   return {\n     user_id: group.userId(),\n-    attributes: {\n-      group: group.traits()\n-    }\n+    group_id: group.groupId(),\n+    group_attributes: group.traits()\n   };\n };\n+\n+/**\n+* Map alias.\n+*\n+* @param {Alias} alias\n+* @return {Object}\n+* @api private\n+*/\n+\n+exports.alias = function(alias) {\n+    return {\n+        user_id: group.userId(),\n+        previous_id: group.previousId()","path":"lib/mapper.js","position":23,"original_position":23,"commit_id":"a673bd5f2bda083b0db2793cd3f2741d98358c51","original_commit_id":"a673bd5f2bda083b0db2793cd3f2741d98358c51","user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"body":"Same as above.","created_at":"2015-04-03T21:07:08Z","updated_at":"2015-04-03T21:07:08Z","html_url":"https://github.com/segmentio/integration-outbound/pull/5#discussion_r27755948","pull_request_url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/comments/27755948"},"html":{"href":"https://github.com/segmentio/integration-outbound/pull/5#discussion_r27755948"},"pull_request":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5","id":32378831,"html_url":"https://github.com/segmentio/integration-outbound/pull/5","diff_url":"https://github.com/segmentio/integration-outbound/pull/5.diff","patch_url":"https://github.com/segmentio/integration-outbound/pull/5.patch","issue_url":"https://api.github.com/repos/segmentio/integration-outbound/issues/5","number":5,"state":"open","locked":false,"title":"Aliases and groups","user":{"login":"MrTravisB","id":852543,"avatar_url":"https://avatars.githubusercontent.com/u/852543?v=3","gravatar_id":"","url":"https://api.github.com/users/MrTravisB","html_url":"https://github.com/MrTravisB","followers_url":"https://api.github.com/users/MrTravisB/followers","following_url":"https://api.github.com/users/MrTravisB/following{/other_user}","gists_url":"https://api.github.com/users/MrTravisB/gists{/gist_id}","starred_url":"https://api.github.com/users/MrTravisB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrTravisB/subscriptions","organizations_url":"https://api.github.com/users/MrTravisB/orgs","repos_url":"https://api.github.com/users/MrTravisB/repos","events_url":"https://api.github.com/users/MrTravisB/events{/privacy}","received_events_url":"https://api.github.com/users/MrTravisB/received_events","type":"User","site_admin":false},"body":"We're working on adding support for groups and aliases to our API. For groups our `identify` endpoints just takes a `group_id` and `group_attributes` params. For aliases the `identify` endpoint takes a `previous_id` param.\r\n\r\nPlease let me know if this implemented right.\r\n\r\nPlease don't merge this yet. We'll won't be releasing these features until later this week. Just wanted to get this out there in case it was wrong so that it can be ready to go when we are ready to deploy.","created_at":"2015-04-01T00:15:28Z","updated_at":"2015-04-03T21:07:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cffda84bd02187de560db2bdaf698e8d765fd6a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5/commits","review_comments_url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5/comments","review_comment_url":"https://api.github.com/repos/segmentio/integration-outbound/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segmentio/integration-outbound/issues/5/comments","statuses_url":"https://api.github.com/repos/segmentio/integration-outbound/statuses/a673bd5f2bda083b0db2793cd3f2741d98358c51","head":{"label":"outboundio:master","ref":"master","sha":"a673bd5f2bda083b0db2793cd3f2741d98358c51","user":{"login":"outboundio","id":4888920,"avatar_url":"https://avatars.githubusercontent.com/u/4888920?v=3","gravatar_id":"","url":"https://api.github.com/users/outboundio","html_url":"https://github.com/outboundio","followers_url":"https://api.github.com/users/outboundio/followers","following_url":"https://api.github.com/users/outboundio/following{/other_user}","gists_url":"https://api.github.com/users/outboundio/gists{/gist_id}","starred_url":"https://api.github.com/users/outboundio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outboundio/subscriptions","organizations_url":"https://api.github.com/users/outboundio/orgs","repos_url":"https://api.github.com/users/outboundio/repos","events_url":"https://api.github.com/users/outboundio/events{/privacy}","received_events_url":"https://api.github.com/users/outboundio/received_events","type":"Organization","site_admin":false},"repo":{"id":33216418,"name":"integration-outbound","full_name":"outboundio/integration-outbound","owner":{"login":"outboundio","id":4888920,"avatar_url":"https://avatars.githubusercontent.com/u/4888920?v=3","gravatar_id":"","url":"https://api.github.com/users/outboundio","html_url":"https://github.com/outboundio","followers_url":"https://api.github.com/users/outboundio/followers","following_url":"https://api.github.com/users/outboundio/following{/other_user}","gists_url":"https://api.github.com/users/outboundio/gists{/gist_id}","starred_url":"https://api.github.com/users/outboundio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outboundio/subscriptions","organizations_url":"https://api.github.com/users/outboundio/orgs","repos_url":"https://api.github.com/users/outboundio/repos","events_url":"https://api.github.com/users/outboundio/events{/privacy}","received_events_url":"https://api.github.com/users/outboundio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outboundio/integration-outbound","description":"Outbound server-side integration","fork":true,"url":"https://api.github.com/repos/outboundio/integration-outbound","forks_url":"https://api.github.com/repos/outboundio/integration-outbound/forks","keys_url":"https://api.github.com/repos/outboundio/integration-outbound/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outboundio/integration-outbound/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outboundio/integration-outbound/teams","hooks_url":"https://api.github.com/repos/outboundio/integration-outbound/hooks","issue_events_url":"https://api.github.com/repos/outboundio/integration-outbound/issues/events{/number}","events_url":"https://api.github.com/repos/outboundio/integration-outbound/events","assignees_url":"https://api.github.com/repos/outboundio/integration-outbound/assignees{/user}","branches_url":"https://api.github.com/repos/outboundio/integration-outbound/branches{/branch}","tags_url":"https://api.github.com/repos/outboundio/integration-outbound/tags","blobs_url":"https://api.github.com/repos/outboundio/integration-outbound/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outboundio/integration-outbound/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outboundio/integration-outbound/git/refs{/sha}","trees_url":"https://api.github.com/repos/outboundio/integration-outbound/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outboundio/integration-outbound/statuses/{sha}","languages_url":"https://api.github.com/repos/outboundio/integration-outbound/languages","stargazers_url":"https://api.github.com/repos/outboundio/integration-outbound/stargazers","contributors_url":"https://api.github.com/repos/outboundio/integration-outbound/contributors","subscribers_url":"https://api.github.com/repos/outboundio/integration-outbound/subscribers","subscription_url":"https://api.github.com/repos/outboundio/integration-outbound/subscription","commits_url":"https://api.github.com/repos/outboundio/integration-outbound/commits{/sha}","git_commits_url":"https://api.github.com/repos/outboundio/integration-outbound/git/commits{/sha}","comments_url":"https://api.github.com/repos/outboundio/integration-outbound/comments{/number}","issue_comment_url":"https://api.github.com/repos/outboundio/integration-outbound/issues/comments{/number}","contents_url":"https://api.github.com/repos/outboundio/integration-outbound/contents/{+path}","compare_url":"https://api.github.com/repos/outboundio/integration-outbound/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outboundio/integration-outbound/merges","archive_url":"https://api.github.com/repos/outboundio/integration-outbound/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outboundio/integration-outbound/downloads","issues_url":"https://api.github.com/repos/outboundio/integration-outbound/issues{/number}","pulls_url":"https://api.github.com/repos/outboundio/integration-outbound/pulls{/number}","milestones_url":"https://api.github.com/repos/outboundio/integration-outbound/milestones{/number}","notifications_url":"https://api.github.com/repos/outboundio/integration-outbound/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outboundio/integration-outbound/labels{/name}","releases_url":"https://api.github.com/repos/outboundio/integration-outbound/releases{/id}","created_at":"2015-03-31T23:51:54Z","updated_at":"2015-04-01T00:12:23Z","pushed_at":"2015-04-01T00:12:23Z","git_url":"git://github.com/outboundio/integration-outbound.git","ssh_url":"git@github.com:outboundio/integration-outbound.git","clone_url":"https://github.com/outboundio/integration-outbound.git","svn_url":"https://github.com/outboundio/integration-outbound","homepage":"segment.com","size":99,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"segmentio:master","ref":"master","sha":"40c65c39b280e7533604ee6db62d6073b7aea3d0","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":26639854,"name":"integration-outbound","full_name":"segmentio/integration-outbound","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/integration-outbound","description":"Outbound server-side integration","fork":false,"url":"https://api.github.com/repos/segmentio/integration-outbound","forks_url":"https://api.github.com/repos/segmentio/integration-outbound/forks","keys_url":"https://api.github.com/repos/segmentio/integration-outbound/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/integration-outbound/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/integration-outbound/teams","hooks_url":"https://api.github.com/repos/segmentio/integration-outbound/hooks","issue_events_url":"https://api.github.com/repos/segmentio/integration-outbound/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/integration-outbound/events","assignees_url":"https://api.github.com/repos/segmentio/integration-outbound/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/integration-outbound/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/integration-outbound/tags","blobs_url":"https://api.github.com/repos/segmentio/integration-outbound/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/integration-outbound/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/integration-outbound/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/integration-outbound/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/integration-outbound/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/integration-outbound/languages","stargazers_url":"https://api.github.com/repos/segmentio/integration-outbound/stargazers","contributors_url":"https://api.github.com/repos/segmentio/integration-outbound/contributors","subscribers_url":"https://api.github.com/repos/segmentio/integration-outbound/subscribers","subscription_url":"https://api.github.com/repos/segmentio/integration-outbound/subscription","commits_url":"https://api.github.com/repos/segmentio/integration-outbound/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/integration-outbound/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/integration-outbound/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/integration-outbound/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/integration-outbound/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/integration-outbound/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/integration-outbound/merges","archive_url":"https://api.github.com/repos/segmentio/integration-outbound/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/integration-outbound/downloads","issues_url":"https://api.github.com/repos/segmentio/integration-outbound/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/integration-outbound/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/integration-outbound/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/integration-outbound/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/integration-outbound/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/integration-outbound/releases{/id}","created_at":"2014-11-14T13:31:38Z","updated_at":"2015-03-10T01:13:39Z","pushed_at":"2015-04-01T00:15:29Z","git_url":"git://github.com/segmentio/integration-outbound.git","ssh_url":"git@github.com:segmentio/integration-outbound.git","clone_url":"https://github.com/segmentio/integration-outbound.git","svn_url":"https://github.com/segmentio/integration-outbound","homepage":"segment.com","size":298,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5"},"html":{"href":"https://github.com/segmentio/integration-outbound/pull/5"},"issue":{"href":"https://api.github.com/repos/segmentio/integration-outbound/issues/5"},"comments":{"href":"https://api.github.com/repos/segmentio/integration-outbound/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segmentio/integration-outbound/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/integration-outbound/statuses/a673bd5f2bda083b0db2793cd3f2741d98358c51"}}}}