{"action":"created","comment":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/35122431","id":35122431,"diff_hunk":"@@ -12,12 +11,14 @@ var Analysis = Vue.extend({\n         SyntaxHighlighter.defaults.gutter = false;\n     },\n     ready: function() {\n-        $('#analysis').removeClass('hide');\n-        $('#download-diff').hide();\n-        $('#view-diff').hide();\n+        var $analysis = $('#analysis');\n+        $analysis.removeClass('hide');\n         $('#status-buttons').removeClass('hide');\n-        this.analysisId = $('#analysis').data('id');\n-        this.getResults();\n+        this.analysisId = $analysis.data('id');\n+        this.hasDiff = Boolean($analysis.data('has-diff'));\n+        if (this.hasDiff) {","path":"resources/assets/js/components/analysis.js","position":24,"original_position":24,"commit_id":"28d5ce0b2313a3d0ea59f7285ac3f57be075d72c","original_commit_id":"28d5ce0b2313a3d0ea59f7285ac3f57be075d72c","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"We just only skip getting the results for status codes 0, 1, or 2.","created_at":"2015-07-21T16:23:24Z","updated_at":"2015-07-21T16:23:24Z","html_url":"https://github.com/StyleCI/StyleCI/pull/503#discussion_r35122431","pull_request_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503","_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/35122431"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/503#discussion_r35122431"},"pull_request":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503"}}},"pull_request":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503","id":40476060,"html_url":"https://github.com/StyleCI/StyleCI/pull/503","diff_url":"https://github.com/StyleCI/StyleCI/pull/503.diff","patch_url":"https://github.com/StyleCI/StyleCI/pull/503.patch","issue_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/503","number":503,"state":"open","locked":false,"title":"Lazy load diff and js fixes","user":{"login":"joecohens","id":1803556,"avatar_url":"https://avatars.githubusercontent.com/u/1803556?v=3","gravatar_id":"","url":"https://api.github.com/users/joecohens","html_url":"https://github.com/joecohens","followers_url":"https://api.github.com/users/joecohens/followers","following_url":"https://api.github.com/users/joecohens/following{/other_user}","gists_url":"https://api.github.com/users/joecohens/gists{/gist_id}","starred_url":"https://api.github.com/users/joecohens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joecohens/subscriptions","organizations_url":"https://api.github.com/users/joecohens/orgs","repos_url":"https://api.github.com/users/joecohens/repos","events_url":"https://api.github.com/users/joecohens/events{/privacy}","received_events_url":"https://api.github.com/users/joecohens/received_events","type":"User","site_admin":false},"body":"/cc @GrahamCampbell \r\n\r\nCloses https://github.com/StyleCI/StyleCI/issues/497 and https://github.com/StyleCI/StyleCI/issues/498","created_at":"2015-07-21T16:19:52Z","updated_at":"2015-07-21T16:23:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77ffadc8770168702abc350529779700cadeefca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503/commits","review_comments_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503/comments","review_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/503/comments","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/28d5ce0b2313a3d0ea59f7285ac3f57be075d72c","head":{"label":"StyleCI:diff-loading","ref":"diff-loading","sha":"28d5ce0b2313a3d0ea59f7285ac3f57be075d72c","user":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"repo":{"id":26929642,"name":"StyleCI","full_name":"StyleCI/StyleCI","owner":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StyleCI/StyleCI","description":"The PHP Coding Style Continuous Integration Service","fork":false,"url":"https://api.github.com/repos/StyleCI/StyleCI","forks_url":"https://api.github.com/repos/StyleCI/StyleCI/forks","keys_url":"https://api.github.com/repos/StyleCI/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StyleCI/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StyleCI/StyleCI/teams","hooks_url":"https://api.github.com/repos/StyleCI/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/StyleCI/StyleCI/events","assignees_url":"https://api.github.com/repos/StyleCI/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/StyleCI/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/StyleCI/StyleCI/tags","blobs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StyleCI/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/StyleCI/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/StyleCI/StyleCI/languages","stargazers_url":"https://api.github.com/repos/StyleCI/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/StyleCI/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/StyleCI/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/StyleCI/StyleCI/subscription","commits_url":"https://api.github.com/repos/StyleCI/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/StyleCI/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/comments{/number}","contents_url":"https://api.github.com/repos/StyleCI/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/StyleCI/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StyleCI/StyleCI/merges","archive_url":"https://api.github.com/repos/StyleCI/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StyleCI/StyleCI/downloads","issues_url":"https://api.github.com/repos/StyleCI/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/StyleCI/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/StyleCI/StyleCI/releases{/id}","created_at":"2014-11-20T20:06:19Z","updated_at":"2015-07-20T11:26:21Z","pushed_at":"2015-07-21T16:21:14Z","git_url":"git://github.com/StyleCI/StyleCI.git","ssh_url":"git@github.com:StyleCI/StyleCI.git","clone_url":"https://github.com/StyleCI/StyleCI.git","svn_url":"https://github.com/StyleCI/StyleCI","homepage":"https://styleci.io/","size":10368,"stargazers_count":162,"watchers_count":162,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":11,"forks":23,"open_issues":11,"watchers":162,"default_branch":"master"}},"base":{"label":"StyleCI:master","ref":"master","sha":"34bddfa6686ebcfd472916f69c818bbcd7d9f30f","user":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"repo":{"id":26929642,"name":"StyleCI","full_name":"StyleCI/StyleCI","owner":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StyleCI/StyleCI","description":"The PHP Coding Style Continuous Integration Service","fork":false,"url":"https://api.github.com/repos/StyleCI/StyleCI","forks_url":"https://api.github.com/repos/StyleCI/StyleCI/forks","keys_url":"https://api.github.com/repos/StyleCI/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StyleCI/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StyleCI/StyleCI/teams","hooks_url":"https://api.github.com/repos/StyleCI/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/StyleCI/StyleCI/events","assignees_url":"https://api.github.com/repos/StyleCI/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/StyleCI/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/StyleCI/StyleCI/tags","blobs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StyleCI/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/StyleCI/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/StyleCI/StyleCI/languages","stargazers_url":"https://api.github.com/repos/StyleCI/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/StyleCI/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/StyleCI/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/StyleCI/StyleCI/subscription","commits_url":"https://api.github.com/repos/StyleCI/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/StyleCI/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/comments{/number}","contents_url":"https://api.github.com/repos/StyleCI/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/StyleCI/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StyleCI/StyleCI/merges","archive_url":"https://api.github.com/repos/StyleCI/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StyleCI/StyleCI/downloads","issues_url":"https://api.github.com/repos/StyleCI/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/StyleCI/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/StyleCI/StyleCI/releases{/id}","created_at":"2014-11-20T20:06:19Z","updated_at":"2015-07-20T11:26:21Z","pushed_at":"2015-07-21T16:21:14Z","git_url":"git://github.com/StyleCI/StyleCI.git","ssh_url":"git@github.com:StyleCI/StyleCI.git","clone_url":"https://github.com/StyleCI/StyleCI.git","svn_url":"https://github.com/StyleCI/StyleCI","homepage":"https://styleci.io/","size":10368,"stargazers_count":162,"watchers_count":162,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":11,"forks":23,"open_issues":11,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/503"},"issue":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/503"},"comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/503/comments"},"review_comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503/comments"},"review_comment":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/503/commits"},"statuses":{"href":"https://api.github.com/repos/StyleCI/StyleCI/statuses/28d5ce0b2313a3d0ea59f7285ac3f57be075d72c"}}}}