{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/56351624","id":56351624,"diff_hunk":"@@ -0,0 +1,42 @@\n+/**\n+ * @license\n+ * Copyright 2016 Google Inc. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+function hasCorrectViewportMetaQuery(obj) {\n+  var ret;\n+\n+  if (obj.type === \"object\" && obj.subtype === \"null\") {\n+    ret = {pass: false};\n+  } else if (obj.subtype === 'node' && obj.props.content.includes('width=')) {\n+    ret = {pass: true};\n+  } else {\n+    throw new Error(\"Unexpected viewport elements.\");\n+  }\n+\n+  return ret;\n+}\n+\n+module.exports = function(data) {\n+  if (data.viewportMetaQuery === undefined) {\n+    throw new Error('viewport meta auditor requires viewport meta query data');\n+  }\n+\n+  return Promise.resolve({\n+    hasCorrectViewportMetaQuery: hasCorrectViewportMetaQuery(\n+                                     data.viewportMetaQuery)","path":"audits/viewport-meta-tag/audit.js","position":39,"original_position":39,"commit_id":"2266671c5351f8d4ade79e276eb219ddb4bad6f2","original_commit_id":"efec8316f515eb211fc5a101f2c7e6a0f6b39936","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"body":"yeah","created_at":"2016-03-16T15:13:28Z","updated_at":"2016-03-16T15:13:28Z","html_url":"https://github.com/GoogleChrome/lighthouse/pull/10#discussion_r56351624","pull_request_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/56351624"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/10#discussion_r56351624"},"pull_request":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10","id":62660045,"html_url":"https://github.com/GoogleChrome/lighthouse/pull/10","diff_url":"https://github.com/GoogleChrome/lighthouse/pull/10.diff","patch_url":"https://github.com/GoogleChrome/lighthouse/pull/10.patch","issue_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/10","number":10,"state":"open","locked":false,"title":"experimental restructure ","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"body":"fixes #11\r\n\r\n-----------\r\n> currently listening to :musical_note:  https://www.youtube.com/watch?v=zI_SBAkdKzc :musical_note:","created_at":"2016-03-13T03:02:08Z","updated_at":"2016-03-16T15:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"764318d65fb986f2eca81ef81f29995a97d20d89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10/commits","review_comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10/comments","review_comment_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/10/comments","statuses_url":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/2266671c5351f8d4ade79e276eb219ddb4bad6f2","head":{"label":"samccone:sjs/split-it-up","ref":"sjs/split-it-up","sha":"2266671c5351f8d4ade79e276eb219ddb4bad6f2","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"repo":{"id":53375842,"name":"lighthouse","full_name":"samccone/lighthouse","owner":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samccone/lighthouse","description":null,"fork":true,"url":"https://api.github.com/repos/samccone/lighthouse","forks_url":"https://api.github.com/repos/samccone/lighthouse/forks","keys_url":"https://api.github.com/repos/samccone/lighthouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samccone/lighthouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samccone/lighthouse/teams","hooks_url":"https://api.github.com/repos/samccone/lighthouse/hooks","issue_events_url":"https://api.github.com/repos/samccone/lighthouse/issues/events{/number}","events_url":"https://api.github.com/repos/samccone/lighthouse/events","assignees_url":"https://api.github.com/repos/samccone/lighthouse/assignees{/user}","branches_url":"https://api.github.com/repos/samccone/lighthouse/branches{/branch}","tags_url":"https://api.github.com/repos/samccone/lighthouse/tags","blobs_url":"https://api.github.com/repos/samccone/lighthouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samccone/lighthouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samccone/lighthouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/samccone/lighthouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samccone/lighthouse/statuses/{sha}","languages_url":"https://api.github.com/repos/samccone/lighthouse/languages","stargazers_url":"https://api.github.com/repos/samccone/lighthouse/stargazers","contributors_url":"https://api.github.com/repos/samccone/lighthouse/contributors","subscribers_url":"https://api.github.com/repos/samccone/lighthouse/subscribers","subscription_url":"https://api.github.com/repos/samccone/lighthouse/subscription","commits_url":"https://api.github.com/repos/samccone/lighthouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/samccone/lighthouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/samccone/lighthouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/samccone/lighthouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/samccone/lighthouse/contents/{+path}","compare_url":"https://api.github.com/repos/samccone/lighthouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samccone/lighthouse/merges","archive_url":"https://api.github.com/repos/samccone/lighthouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samccone/lighthouse/downloads","issues_url":"https://api.github.com/repos/samccone/lighthouse/issues{/number}","pulls_url":"https://api.github.com/repos/samccone/lighthouse/pulls{/number}","milestones_url":"https://api.github.com/repos/samccone/lighthouse/milestones{/number}","notifications_url":"https://api.github.com/repos/samccone/lighthouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samccone/lighthouse/labels{/name}","releases_url":"https://api.github.com/repos/samccone/lighthouse/releases{/id}","deployments_url":"https://api.github.com/repos/samccone/lighthouse/deployments","created_at":"2016-03-08T02:30:13Z","updated_at":"2016-03-08T02:30:14Z","pushed_at":"2016-03-16T15:12:45Z","git_url":"git://github.com/samccone/lighthouse.git","ssh_url":"git@github.com:samccone/lighthouse.git","clone_url":"https://github.com/samccone/lighthouse.git","svn_url":"https://github.com/samccone/lighthouse","homepage":null,"size":1164,"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":"GoogleChrome:master","ref":"master","sha":"698042c2cecf031ab4a9106912e03a0070f47d3a","user":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"repo":{"id":53370988,"name":"lighthouse","full_name":"GoogleChrome/lighthouse","owner":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChrome/lighthouse","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleChrome/lighthouse","forks_url":"https://api.github.com/repos/GoogleChrome/lighthouse/forks","keys_url":"https://api.github.com/repos/GoogleChrome/lighthouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChrome/lighthouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChrome/lighthouse/teams","hooks_url":"https://api.github.com/repos/GoogleChrome/lighthouse/hooks","issue_events_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChrome/lighthouse/events","assignees_url":"https://api.github.com/repos/GoogleChrome/lighthouse/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChrome/lighthouse/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChrome/lighthouse/tags","blobs_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChrome/lighthouse/languages","stargazers_url":"https://api.github.com/repos/GoogleChrome/lighthouse/stargazers","contributors_url":"https://api.github.com/repos/GoogleChrome/lighthouse/contributors","subscribers_url":"https://api.github.com/repos/GoogleChrome/lighthouse/subscribers","subscription_url":"https://api.github.com/repos/GoogleChrome/lighthouse/subscription","commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChrome/lighthouse/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChrome/lighthouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChrome/lighthouse/merges","archive_url":"https://api.github.com/repos/GoogleChrome/lighthouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChrome/lighthouse/downloads","issues_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChrome/lighthouse/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChrome/lighthouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChrome/lighthouse/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChrome/lighthouse/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/deployments","created_at":"2016-03-08T01:03:11Z","updated_at":"2016-03-14T04:27:00Z","pushed_at":"2016-03-16T15:12:45Z","git_url":"git://github.com/GoogleChrome/lighthouse.git","ssh_url":"git@github.com:GoogleChrome/lighthouse.git","clone_url":"https://github.com/GoogleChrome/lighthouse.git","svn_url":"https://github.com/GoogleChrome/lighthouse","homepage":null,"size":1165,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/10"},"issue":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/10"},"comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/2266671c5351f8d4ade79e276eb219ddb4bad6f2"}}}}