{"action":"created","comment":{"url":"https://api.github.com/repos/juju/juju-gui/pulls/comments/107646898","pull_request_review_id":28629744,"id":107646898,"diff_hunk":"@@ -0,0 +1,87 @@\n+/*\n+This file is part of the Juju GUI, which lets users view and manage Juju\n+environments within a graphical interface (https://launchpad.net/juju-gui).\n+Copyright (C) 2017 Canonical Ltd.\n+\n+This program is free software: you can redistribute it and/or modify it under\n+the terms of the GNU Affero General Public License version 3, as published by\n+the Free Software Foundation.\n+\n+This program is distributed in the hope that it will be useful, but WITHOUT\n+ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,\n+SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero\n+General Public License for more details.\n+\n+You should have received a copy of the GNU Affero General Public License along\n+with this program.  If not, see <http://www.gnu.org/licenses/>.\n+*/\n+\n+'use strict';\n+\n+YUI.add('analytics', function(Y) {\n+\n+  let ns = Y.namespace('juju');\n+\n+  /**\n+    Send analytics to GA.\n+\n+    @param {String} category A sensible category name. Generally the\n+      component name is a good start.\n+    @param {String} action Some identifiable action.\n+    @param {String} label Name the event. This might be enough for\n+      some events.\n+    @param {Object} value A single depth object of extra information.","path":"jujugui/static/gui/src/app/utils/analytics.js","position":33,"original_position":33,"commit_id":"f83cb224f8b95401490ef6689ddf250ded60bd61","original_commit_id":"f83cb224f8b95401490ef6689ddf250ded60bd61","user":{"login":"frankban","id":1408172,"avatar_url":"https://avatars3.githubusercontent.com/u/1408172?v=3","gravatar_id":"","url":"https://api.github.com/users/frankban","html_url":"https://github.com/frankban","followers_url":"https://api.github.com/users/frankban/followers","following_url":"https://api.github.com/users/frankban/following{/other_user}","gists_url":"https://api.github.com/users/frankban/gists{/gist_id}","starred_url":"https://api.github.com/users/frankban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankban/subscriptions","organizations_url":"https://api.github.com/users/frankban/orgs","repos_url":"https://api.github.com/users/frankban/repos","events_url":"https://api.github.com/users/frankban/events{/privacy}","received_events_url":"https://api.github.com/users/frankban/received_events","type":"User","site_admin":false},"body":"Add `@return {Function} ...`.","created_at":"2017-03-23T11:42:12Z","updated_at":"2017-03-23T11:47:25Z","html_url":"https://github.com/juju/juju-gui/pull/2663#discussion_r107646898","pull_request_url":"https://api.github.com/repos/juju/juju-gui/pulls/2663","_links":{"self":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/comments/107646898"},"html":{"href":"https://github.com/juju/juju-gui/pull/2663#discussion_r107646898"},"pull_request":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/2663"}}},"pull_request":{"url":"https://api.github.com/repos/juju/juju-gui/pulls/2663","id":111976857,"html_url":"https://github.com/juju/juju-gui/pull/2663","diff_url":"https://github.com/juju/juju-gui/pull/2663.diff","patch_url":"https://github.com/juju/juju-gui/pull/2663.patch","issue_url":"https://api.github.com/repos/juju/juju-gui/issues/2663","number":2663,"state":"open","locked":false,"title":"Analytics for extra stats","user":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars0.githubusercontent.com/u/479384?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukewh","html_url":"https://github.com/Lukewh","followers_url":"https://api.github.com/users/Lukewh/followers","following_url":"https://api.github.com/users/Lukewh/following{/other_user}","gists_url":"https://api.github.com/users/Lukewh/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukewh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukewh/subscriptions","organizations_url":"https://api.github.com/users/Lukewh/orgs","repos_url":"https://api.github.com/users/Lukewh/repos","events_url":"https://api.github.com/users/Lukewh/events{/privacy}","received_events_url":"https://api.github.com/users/Lukewh/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-22T10:37:28Z","updated_at":"2017-03-23T11:47:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df1904edcd7050b848f6761079982c93ca34a012","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/juju/juju-gui/pulls/2663/commits","review_comments_url":"https://api.github.com/repos/juju/juju-gui/pulls/2663/comments","review_comment_url":"https://api.github.com/repos/juju/juju-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/juju-gui/issues/2663/comments","statuses_url":"https://api.github.com/repos/juju/juju-gui/statuses/f83cb224f8b95401490ef6689ddf250ded60bd61","head":{"label":"Lukewh:analytics","ref":"analytics","sha":"f83cb224f8b95401490ef6689ddf250ded60bd61","user":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars0.githubusercontent.com/u/479384?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukewh","html_url":"https://github.com/Lukewh","followers_url":"https://api.github.com/users/Lukewh/followers","following_url":"https://api.github.com/users/Lukewh/following{/other_user}","gists_url":"https://api.github.com/users/Lukewh/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukewh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukewh/subscriptions","organizations_url":"https://api.github.com/users/Lukewh/orgs","repos_url":"https://api.github.com/users/Lukewh/repos","events_url":"https://api.github.com/users/Lukewh/events{/privacy}","received_events_url":"https://api.github.com/users/Lukewh/received_events","type":"User","site_admin":false},"repo":{"id":79209822,"name":"juju-gui","full_name":"Lukewh/juju-gui","owner":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars0.githubusercontent.com/u/479384?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukewh","html_url":"https://github.com/Lukewh","followers_url":"https://api.github.com/users/Lukewh/followers","following_url":"https://api.github.com/users/Lukewh/following{/other_user}","gists_url":"https://api.github.com/users/Lukewh/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukewh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukewh/subscriptions","organizations_url":"https://api.github.com/users/Lukewh/orgs","repos_url":"https://api.github.com/users/Lukewh/repos","events_url":"https://api.github.com/users/Lukewh/events{/privacy}","received_events_url":"https://api.github.com/users/Lukewh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lukewh/juju-gui","description":"Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.","fork":true,"url":"https://api.github.com/repos/Lukewh/juju-gui","forks_url":"https://api.github.com/repos/Lukewh/juju-gui/forks","keys_url":"https://api.github.com/repos/Lukewh/juju-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lukewh/juju-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lukewh/juju-gui/teams","hooks_url":"https://api.github.com/repos/Lukewh/juju-gui/hooks","issue_events_url":"https://api.github.com/repos/Lukewh/juju-gui/issues/events{/number}","events_url":"https://api.github.com/repos/Lukewh/juju-gui/events","assignees_url":"https://api.github.com/repos/Lukewh/juju-gui/assignees{/user}","branches_url":"https://api.github.com/repos/Lukewh/juju-gui/branches{/branch}","tags_url":"https://api.github.com/repos/Lukewh/juju-gui/tags","blobs_url":"https://api.github.com/repos/Lukewh/juju-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lukewh/juju-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lukewh/juju-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lukewh/juju-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lukewh/juju-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/Lukewh/juju-gui/languages","stargazers_url":"https://api.github.com/repos/Lukewh/juju-gui/stargazers","contributors_url":"https://api.github.com/repos/Lukewh/juju-gui/contributors","subscribers_url":"https://api.github.com/repos/Lukewh/juju-gui/subscribers","subscription_url":"https://api.github.com/repos/Lukewh/juju-gui/subscription","commits_url":"https://api.github.com/repos/Lukewh/juju-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lukewh/juju-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lukewh/juju-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lukewh/juju-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lukewh/juju-gui/contents/{+path}","compare_url":"https://api.github.com/repos/Lukewh/juju-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lukewh/juju-gui/merges","archive_url":"https://api.github.com/repos/Lukewh/juju-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lukewh/juju-gui/downloads","issues_url":"https://api.github.com/repos/Lukewh/juju-gui/issues{/number}","pulls_url":"https://api.github.com/repos/Lukewh/juju-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/Lukewh/juju-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/Lukewh/juju-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lukewh/juju-gui/labels{/name}","releases_url":"https://api.github.com/repos/Lukewh/juju-gui/releases{/id}","deployments_url":"https://api.github.com/repos/Lukewh/juju-gui/deployments","created_at":"2017-01-17T09:16:02Z","updated_at":"2017-01-17T09:16:08Z","pushed_at":"2017-03-23T11:11:35Z","git_url":"git://github.com/Lukewh/juju-gui.git","ssh_url":"git@github.com:Lukewh/juju-gui.git","clone_url":"https://github.com/Lukewh/juju-gui.git","svn_url":"https://github.com/Lukewh/juju-gui","homepage":"","size":120995,"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":"develop"}},"base":{"label":"juju:develop","ref":"develop","sha":"f064ad4998d5d466793345c7a91d0301c6b7cf07","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars3.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":14960387,"name":"juju-gui","full_name":"juju/juju-gui","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars3.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/juju-gui","description":"Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.","fork":false,"url":"https://api.github.com/repos/juju/juju-gui","forks_url":"https://api.github.com/repos/juju/juju-gui/forks","keys_url":"https://api.github.com/repos/juju/juju-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/juju-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/juju-gui/teams","hooks_url":"https://api.github.com/repos/juju/juju-gui/hooks","issue_events_url":"https://api.github.com/repos/juju/juju-gui/issues/events{/number}","events_url":"https://api.github.com/repos/juju/juju-gui/events","assignees_url":"https://api.github.com/repos/juju/juju-gui/assignees{/user}","branches_url":"https://api.github.com/repos/juju/juju-gui/branches{/branch}","tags_url":"https://api.github.com/repos/juju/juju-gui/tags","blobs_url":"https://api.github.com/repos/juju/juju-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/juju-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/juju-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/juju-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/juju-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/juju-gui/languages","stargazers_url":"https://api.github.com/repos/juju/juju-gui/stargazers","contributors_url":"https://api.github.com/repos/juju/juju-gui/contributors","subscribers_url":"https://api.github.com/repos/juju/juju-gui/subscribers","subscription_url":"https://api.github.com/repos/juju/juju-gui/subscription","commits_url":"https://api.github.com/repos/juju/juju-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/juju-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/juju-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/juju-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/juju-gui/contents/{+path}","compare_url":"https://api.github.com/repos/juju/juju-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/juju-gui/merges","archive_url":"https://api.github.com/repos/juju/juju-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/juju-gui/downloads","issues_url":"https://api.github.com/repos/juju/juju-gui/issues{/number}","pulls_url":"https://api.github.com/repos/juju/juju-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/juju-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/juju-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/juju-gui/labels{/name}","releases_url":"https://api.github.com/repos/juju/juju-gui/releases{/id}","deployments_url":"https://api.github.com/repos/juju/juju-gui/deployments","created_at":"2013-12-05T17:15:48Z","updated_at":"2017-03-20T14:29:26Z","pushed_at":"2017-03-23T11:11:37Z","git_url":"git://github.com/juju/juju-gui.git","ssh_url":"git@github.com:juju/juju-gui.git","clone_url":"https://github.com/juju/juju-gui.git","svn_url":"https://github.com/juju/juju-gui","homepage":"","size":120939,"stargazers_count":107,"watchers_count":107,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":148,"forks":61,"open_issues":148,"watchers":107,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/2663"},"html":{"href":"https://github.com/juju/juju-gui/pull/2663"},"issue":{"href":"https://api.github.com/repos/juju/juju-gui/issues/2663"},"comments":{"href":"https://api.github.com/repos/juju/juju-gui/issues/2663/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/2663/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/2663/commits"},"statuses":{"href":"https://api.github.com/repos/juju/juju-gui/statuses/f83cb224f8b95401490ef6689ddf250ded60bd61"}}}}
{"actor":{"display_login":"frankban"}}