{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TACO/pulls/comments/48313514","id":48313514,"diff_hunk":"@@ -39,6 +40,9 @@ class CliHelper {\n                 // if version flag found, show version and exit\n                 CliHelper.handleVersionFlag(args);\n             })\n+            .then(function(): Q.Promise<any> {\n+                return telemetry.init(\"REMOTEBUILD\", require(\"../package.json\").version, undefined ,\"RemotebuildTelemetrySettings.json\");","path":"src/remotebuild/lib/cli.ts","position":13,"original_position":13,"commit_id":"491da81ee23ff9c61a3eaecebd63a779e936f030","original_commit_id":"491da81ee23ff9c61a3eaecebd63a779e936f030","user":{"login":"digeff","id":14098140,"avatar_url":"https://avatars.githubusercontent.com/u/14098140?v=3","gravatar_id":"","url":"https://api.github.com/users/digeff","html_url":"https://github.com/digeff","followers_url":"https://api.github.com/users/digeff/followers","following_url":"https://api.github.com/users/digeff/following{/other_user}","gists_url":"https://api.github.com/users/digeff/gists{/gist_id}","starred_url":"https://api.github.com/users/digeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digeff/subscriptions","organizations_url":"https://api.github.com/users/digeff/orgs","repos_url":"https://api.github.com/users/digeff/repos","events_url":"https://api.github.com/users/digeff/events{/privacy}","received_events_url":"https://api.github.com/users/digeff/received_events","type":"User","site_admin":false},"body":"I'd personally use null here instead of undefined, and change the code to make null have the proper semantics.","created_at":"2015-12-23T00:29:09Z","updated_at":"2015-12-23T00:29:09Z","html_url":"https://github.com/Microsoft/TACO/pull/224#discussion_r48313514","pull_request_url":"https://api.github.com/repos/Microsoft/TACO/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/comments/48313514"},"html":{"href":"https://github.com/Microsoft/TACO/pull/224#discussion_r48313514"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TACO/pulls/224","id":54153082,"html_url":"https://github.com/Microsoft/TACO/pull/224","diff_url":"https://github.com/Microsoft/TACO/pull/224.diff","patch_url":"https://github.com/Microsoft/TACO/pull/224.patch","issue_url":"https://api.github.com/repos/Microsoft/TACO/issues/224","number":224,"state":"open","locked":false,"title":"Add Telemetry to Remotebuild","user":{"login":"joshuaskelton","id":14099985,"avatar_url":"https://avatars.githubusercontent.com/u/14099985?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaskelton","html_url":"https://github.com/joshuaskelton","followers_url":"https://api.github.com/users/joshuaskelton/followers","following_url":"https://api.github.com/users/joshuaskelton/following{/other_user}","gists_url":"https://api.github.com/users/joshuaskelton/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaskelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaskelton/subscriptions","organizations_url":"https://api.github.com/users/joshuaskelton/orgs","repos_url":"https://api.github.com/users/joshuaskelton/repos","events_url":"https://api.github.com/users/joshuaskelton/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaskelton/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nAdding basic telemetry points to remotebuild. Telemetry is captured on server start and per build.\r\n\r\n## Changes\r\n\r\n* Added a new telemetry settings file for remotebuild.\r\n* Added telemetry init/prompt to server start.\r\n* Added telemetry after build complete.","created_at":"2015-12-18T21:41:29Z","updated_at":"2015-12-23T00:29:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f1a63842dcf468f55aca8fd06ef5b6133cb730f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TACO/pulls/224/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TACO/pulls/224/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TACO/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TACO/issues/224/comments","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/491da81ee23ff9c61a3eaecebd63a779e936f030","head":{"label":"Microsoft:add_remotebuild_telemetry","ref":"add_remotebuild_telemetry","sha":"491da81ee23ff9c61a3eaecebd63a779e936f030","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":41325355,"name":"TACO","full_name":"Microsoft/TACO","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TACO","description":"Tools for Apache Cordova","fork":false,"url":"https://api.github.com/repos/Microsoft/TACO","forks_url":"https://api.github.com/repos/Microsoft/TACO/forks","keys_url":"https://api.github.com/repos/Microsoft/TACO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TACO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TACO/teams","hooks_url":"https://api.github.com/repos/Microsoft/TACO/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TACO/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TACO/events","assignees_url":"https://api.github.com/repos/Microsoft/TACO/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TACO/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TACO/tags","blobs_url":"https://api.github.com/repos/Microsoft/TACO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TACO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TACO/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TACO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TACO/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TACO/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TACO/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TACO/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TACO/subscription","commits_url":"https://api.github.com/repos/Microsoft/TACO/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TACO/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TACO/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TACO/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TACO/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TACO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TACO/merges","archive_url":"https://api.github.com/repos/Microsoft/TACO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TACO/downloads","issues_url":"https://api.github.com/repos/Microsoft/TACO/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TACO/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TACO/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TACO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TACO/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TACO/releases{/id}","created_at":"2015-08-24T20:26:25Z","updated_at":"2015-12-22T11:20:21Z","pushed_at":"2015-12-22T23:55:26Z","git_url":"git://github.com/Microsoft/TACO.git","ssh_url":"git@github.com:Microsoft/TACO.git","clone_url":"https://github.com/Microsoft/TACO.git","svn_url":"https://github.com/Microsoft/TACO","homepage":null,"size":6909,"stargazers_count":125,"watchers_count":125,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":13,"forks":19,"open_issues":13,"watchers":125,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"50f404c949cc93fd1eb01d1f14da1b29f4c1407d","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":41325355,"name":"TACO","full_name":"Microsoft/TACO","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TACO","description":"Tools for Apache Cordova","fork":false,"url":"https://api.github.com/repos/Microsoft/TACO","forks_url":"https://api.github.com/repos/Microsoft/TACO/forks","keys_url":"https://api.github.com/repos/Microsoft/TACO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TACO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TACO/teams","hooks_url":"https://api.github.com/repos/Microsoft/TACO/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TACO/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TACO/events","assignees_url":"https://api.github.com/repos/Microsoft/TACO/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TACO/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TACO/tags","blobs_url":"https://api.github.com/repos/Microsoft/TACO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TACO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TACO/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TACO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TACO/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TACO/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TACO/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TACO/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TACO/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TACO/subscription","commits_url":"https://api.github.com/repos/Microsoft/TACO/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TACO/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TACO/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TACO/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TACO/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TACO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TACO/merges","archive_url":"https://api.github.com/repos/Microsoft/TACO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TACO/downloads","issues_url":"https://api.github.com/repos/Microsoft/TACO/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TACO/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TACO/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TACO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TACO/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TACO/releases{/id}","created_at":"2015-08-24T20:26:25Z","updated_at":"2015-12-22T11:20:21Z","pushed_at":"2015-12-22T23:55:26Z","git_url":"git://github.com/Microsoft/TACO.git","ssh_url":"git@github.com:Microsoft/TACO.git","clone_url":"https://github.com/Microsoft/TACO.git","svn_url":"https://github.com/Microsoft/TACO","homepage":null,"size":6909,"stargazers_count":125,"watchers_count":125,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":13,"forks":19,"open_issues":13,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/224"},"html":{"href":"https://github.com/Microsoft/TACO/pull/224"},"issue":{"href":"https://api.github.com/repos/Microsoft/TACO/issues/224"},"comments":{"href":"https://api.github.com/repos/Microsoft/TACO/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TACO/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TACO/statuses/491da81ee23ff9c61a3eaecebd63a779e936f030"}}}}