{"action":"created","comment":{"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments/176143957","pull_request_review_id":105795873,"id":176143957,"diff_hunk":"@@ -101,6 +115,47 @@ <h4>Where people are using {{ snap_title }}</h4>\n       whitelistUrls: ['snapcraft.io']\n     }).install();\n     Raven.context(function () {\n+      if (typeof ga !== 'undefined') {","path":"templates/snap-details.html","position":48,"original_position":48,"commit_id":"b91c181ea2a12d26c22164756778903297085a3a","original_commit_id":"b91c181ea2a12d26c22164756778903297085a3a","user":{"login":"bartaz","id":83575,"avatar_url":"https://avatars2.githubusercontent.com/u/83575?v=4","gravatar_id":"","url":"https://api.github.com/users/bartaz","html_url":"https://github.com/bartaz","followers_url":"https://api.github.com/users/bartaz/followers","following_url":"https://api.github.com/users/bartaz/following{/other_user}","gists_url":"https://api.github.com/users/bartaz/gists{/gist_id}","starred_url":"https://api.github.com/users/bartaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartaz/subscriptions","organizations_url":"https://api.github.com/users/bartaz/orgs","repos_url":"https://api.github.com/users/bartaz/repos","events_url":"https://api.github.com/users/bartaz/events{/privacy}","received_events_url":"https://api.github.com/users/bartaz/received_events","type":"User","site_admin":false},"body":"GA is loaded asynchronously so in many cases this will run before QA is loaded and will silently fail.\r\n\r\nWe should only check for GA at the moment we attempt to use it and initialise everything else normally to have event handlers in place regardless of GA being defined.","created_at":"2018-03-21T16:15:56Z","updated_at":"2018-03-21T16:15:56Z","html_url":"https://github.com/canonical-websites/snapcraft.io/pull/419#discussion_r176143957","pull_request_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments/176143957"},"html":{"href":"https://github.com/canonical-websites/snapcraft.io/pull/419#discussion_r176143957"},"pull_request":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419"}}},"pull_request":{"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419","id":176197113,"html_url":"https://github.com/canonical-websites/snapcraft.io/pull/419","diff_url":"https://github.com/canonical-websites/snapcraft.io/pull/419.diff","patch_url":"https://github.com/canonical-websites/snapcraft.io/pull/419.patch","issue_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/419","number":419,"state":"open","locked":false,"title":"CLI install command","user":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars3.githubusercontent.com/u/479384?v=4","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":"# Done\r\n\r\nFixes https://github.com/canonical-websites/snapcraft.io/issues/389\r\n\r\n- Removed buggy and unsupported 'Install' button\r\n- Added CLI install instruction\r\n\r\n# QA\r\n\r\n- Pull this branch\r\n- `./run`\r\n- Visit http://0.0.0.0:8004/vlc or visit http://snapcraft.io-pr-419.run.demo.haus/vlc\r\n- Click the copy to clipboard button\r\n- Paste the result somewhere, it should match:\r\n  `sudo snap install vlc`\r\n\r\n# Screenshots\r\n\r\n## Desktop\r\n![screenshot-2018-3-21 vlc linux software in the snap store 1](https://user-images.githubusercontent.com/479384/37705695-d1da63b2-2cf4-11e8-80dd-cba09c9da8ae.png)\r\n\r\n## Mobile\r\n![screenshot-2018-3-21 vlc linux software in the snap store](https://user-images.githubusercontent.com/479384/37705701-d5445120-2cf4-11e8-842e-9a59b263abed.png)\r\n\r\n\r\n","created_at":"2018-03-20T13:52:20Z","updated_at":"2018-03-21T16:15:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5b01d8baf507bd095184fdf620edcc19eab94bc","assignee":{"login":"bartaz","id":83575,"avatar_url":"https://avatars2.githubusercontent.com/u/83575?v=4","gravatar_id":"","url":"https://api.github.com/users/bartaz","html_url":"https://github.com/bartaz","followers_url":"https://api.github.com/users/bartaz/followers","following_url":"https://api.github.com/users/bartaz/following{/other_user}","gists_url":"https://api.github.com/users/bartaz/gists{/gist_id}","starred_url":"https://api.github.com/users/bartaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartaz/subscriptions","organizations_url":"https://api.github.com/users/bartaz/orgs","repos_url":"https://api.github.com/users/bartaz/repos","events_url":"https://api.github.com/users/bartaz/events{/privacy}","received_events_url":"https://api.github.com/users/bartaz/received_events","type":"User","site_admin":false},"assignees":[{"login":"bartaz","id":83575,"avatar_url":"https://avatars2.githubusercontent.com/u/83575?v=4","gravatar_id":"","url":"https://api.github.com/users/bartaz","html_url":"https://github.com/bartaz","followers_url":"https://api.github.com/users/bartaz/followers","following_url":"https://api.github.com/users/bartaz/following{/other_user}","gists_url":"https://api.github.com/users/bartaz/gists{/gist_id}","starred_url":"https://api.github.com/users/bartaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartaz/subscriptions","organizations_url":"https://api.github.com/users/bartaz/orgs","repos_url":"https://api.github.com/users/bartaz/repos","events_url":"https://api.github.com/users/bartaz/events{/privacy}","received_events_url":"https://api.github.com/users/bartaz/received_events","type":"User","site_admin":false},{"login":"lyubomir-popov","id":2741678,"avatar_url":"https://avatars2.githubusercontent.com/u/2741678?v=4","gravatar_id":"","url":"https://api.github.com/users/lyubomir-popov","html_url":"https://github.com/lyubomir-popov","followers_url":"https://api.github.com/users/lyubomir-popov/followers","following_url":"https://api.github.com/users/lyubomir-popov/following{/other_user}","gists_url":"https://api.github.com/users/lyubomir-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/lyubomir-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyubomir-popov/subscriptions","organizations_url":"https://api.github.com/users/lyubomir-popov/orgs","repos_url":"https://api.github.com/users/lyubomir-popov/repos","events_url":"https://api.github.com/users/lyubomir-popov/events{/privacy}","received_events_url":"https://api.github.com/users/lyubomir-popov/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":698999577,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels/Review:%20Code%20needed","name":"Review: Code needed","color":"cdcdcd","default":false},{"id":698999582,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels/Review:%20Design%20+1","name":"Review: Design +1","color":"38b44a","default":false},{"id":698999584,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels/Review:%20QA%20needed","name":"Review: QA needed","color":"cdcdcd","default":false},{"id":698999581,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels/Review:%20UX%20+1","name":"Review: UX +1","color":"38b44a","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419/commits","review_comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419/comments","review_comment_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/419/comments","statuses_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/b91c181ea2a12d26c22164756778903297085a3a","head":{"label":"Lukewh:cli-command","ref":"cli-command","sha":"b91c181ea2a12d26c22164756778903297085a3a","user":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars3.githubusercontent.com/u/479384?v=4","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":109846889,"name":"snapcraft.io","full_name":"Lukewh/snapcraft.io","owner":{"login":"Lukewh","id":479384,"avatar_url":"https://avatars3.githubusercontent.com/u/479384?v=4","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/snapcraft.io","description":null,"fork":true,"url":"https://api.github.com/repos/Lukewh/snapcraft.io","forks_url":"https://api.github.com/repos/Lukewh/snapcraft.io/forks","keys_url":"https://api.github.com/repos/Lukewh/snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lukewh/snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lukewh/snapcraft.io/teams","hooks_url":"https://api.github.com/repos/Lukewh/snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/Lukewh/snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/Lukewh/snapcraft.io/events","assignees_url":"https://api.github.com/repos/Lukewh/snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/Lukewh/snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/Lukewh/snapcraft.io/tags","blobs_url":"https://api.github.com/repos/Lukewh/snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lukewh/snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lukewh/snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lukewh/snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lukewh/snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/Lukewh/snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/Lukewh/snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/Lukewh/snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/Lukewh/snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/Lukewh/snapcraft.io/subscription","commits_url":"https://api.github.com/repos/Lukewh/snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lukewh/snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lukewh/snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lukewh/snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lukewh/snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/Lukewh/snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lukewh/snapcraft.io/merges","archive_url":"https://api.github.com/repos/Lukewh/snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lukewh/snapcraft.io/downloads","issues_url":"https://api.github.com/repos/Lukewh/snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/Lukewh/snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/Lukewh/snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/Lukewh/snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lukewh/snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/Lukewh/snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/Lukewh/snapcraft.io/deployments","created_at":"2017-11-07T14:32:57Z","updated_at":"2017-12-20T11:52:11Z","pushed_at":"2018-03-21T15:41:21Z","git_url":"git://github.com/Lukewh/snapcraft.io.git","ssh_url":"git@github.com:Lukewh/snapcraft.io.git","clone_url":"https://github.com/Lukewh/snapcraft.io.git","svn_url":"https://github.com/Lukewh/snapcraft.io","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"canonical-websites:master","ref":"master","sha":"4ebf439d32264f0829c25a3494748eee847a08b7","user":{"login":"canonical-websites","id":26072773,"avatar_url":"https://avatars2.githubusercontent.com/u/26072773?v=4","gravatar_id":"","url":"https://api.github.com/users/canonical-websites","html_url":"https://github.com/canonical-websites","followers_url":"https://api.github.com/users/canonical-websites/followers","following_url":"https://api.github.com/users/canonical-websites/following{/other_user}","gists_url":"https://api.github.com/users/canonical-websites/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-websites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-websites/subscriptions","organizations_url":"https://api.github.com/users/canonical-websites/orgs","repos_url":"https://api.github.com/users/canonical-websites/repos","events_url":"https://api.github.com/users/canonical-websites/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-websites/received_events","type":"Organization","site_admin":false},"repo":{"id":100534315,"name":"snapcraft.io","full_name":"canonical-websites/snapcraft.io","owner":{"login":"canonical-websites","id":26072773,"avatar_url":"https://avatars2.githubusercontent.com/u/26072773?v=4","gravatar_id":"","url":"https://api.github.com/users/canonical-websites","html_url":"https://github.com/canonical-websites","followers_url":"https://api.github.com/users/canonical-websites/followers","following_url":"https://api.github.com/users/canonical-websites/following{/other_user}","gists_url":"https://api.github.com/users/canonical-websites/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-websites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-websites/subscriptions","organizations_url":"https://api.github.com/users/canonical-websites/orgs","repos_url":"https://api.github.com/users/canonical-websites/repos","events_url":"https://api.github.com/users/canonical-websites/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-websites/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/canonical-websites/snapcraft.io","description":null,"fork":false,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io","forks_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/forks","keys_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/teams","hooks_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/events","assignees_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/tags","blobs_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/subscription","commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/merges","archive_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/downloads","issues_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/deployments","created_at":"2017-08-16T21:29:29Z","updated_at":"2018-03-21T15:46:44Z","pushed_at":"2018-03-21T15:59:10Z","git_url":"git://github.com/canonical-websites/snapcraft.io.git","ssh_url":"git@github.com:canonical-websites/snapcraft.io.git","clone_url":"https://github.com/canonical-websites/snapcraft.io.git","svn_url":"https://github.com/canonical-websites/snapcraft.io","homepage":null,"size":770,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":70,"license":null,"forks":17,"open_issues":70,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419"},"html":{"href":"https://github.com/canonical-websites/snapcraft.io/pull/419"},"issue":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/419"},"comments":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/b91c181ea2a12d26c22164756778903297085a3a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bartaz"}}