{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/90992311","pull_request_review_id":11504523,"id":90992311,"diff_hunk":"@@ -0,0 +1,518 @@\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+'use strict';\n+\n+const ReportGenerator = require('../../../lighthouse-core/report/report-generator');\n+// TODO: We only need getFilenamePrefix from asset-saver. Tree shake!\n+const getFilenamePrefix = require('../../../lighthouse-core/lib/asset-saver.js').getFilenamePrefix;\n+\n+const firebase = require('firebase/app');\n+require('firebase/auth');\n+const idb = require('idb-keyval');\n+\n+// Polyfills\n+// TODO: dynamically load this based on feature detection.\n+require('whatwg-fetch');\n+const URLSearchParams = require('url-search-params');\n+\n+const LH_CURRENT_VERSION = require('../../../package.json').version;\n+const APP_URL = `${location.origin}${location.pathname}`;\n+\n+/**\n+ * Logs messages via a UI butter.\n+ * @class\n+ */\n+class Logger {\n+  constructor(selector) {\n+    this.el = document.querySelector(selector);\n+  }\n+\n+  /**\n+   * Shows a butter bar.\n+   * @param {!string} msg The message to show.\n+   * @param {boolean=} autoHide True to hide the message after a duration.\n+   *     Default is true.\n+   */\n+  log(msg, autoHide = true) {\n+    clearTimeout(this._id);\n+\n+    this.el.textContent = msg;\n+    this.el.classList.add('show');\n+    if (autoHide) {\n+      this._id = setTimeout(() => {\n+        this.el.classList.remove('show');\n+      }, 7000);\n+    }\n+  }\n+\n+  warn(msg) {\n+    console.warn(msg);\n+  }\n+\n+  error(msg) {\n+    console.error(msg);\n+  }\n+\n+  /**\n+   * Explicitly hides the butter bar.\n+   */\n+  hide() {\n+    clearTimeout(this._id);\n+    this.el.classList.remove('show');\n+  }\n+}\n+\n+const logger = new Logger('#log');\n+\n+/**\n+ * Wrapper for Firebase Authentication\n+ * @class\n+ */\n+class FirebaseAuth {\n+  constructor() {\n+    this.accessToken = null;\n+    this.user = null;\n+\n+    this.provider = new firebase.auth.GithubAuthProvider();\n+    this.provider.addScope('gist');\n+\n+    firebase.initializeApp({\n+      apiKey: 'AIzaSyApMz8FHTyJNqqUtA51tik5Mro8j-2qMcM',\n+      authDomain: 'lighthouse-viewer.firebaseapp.com',\n+      databaseURL: 'https://lighthouse-viewer.firebaseio.com',\n+      storageBucket: 'lighthouse-viewer.appspot.com',\n+      messagingSenderId: '962507201498'\n+    });\n+\n+    // Wrap auth state callback in a promise so  other parts of the app that\n+    // require login can hook into the changes.\n+    this.ready = new Promise((resolve, reject) => {\n+      firebase.auth().onAuthStateChanged(user => {\n+        idb.get('accessToken').then(token => {\n+          if (user && token) {\n+            this.accessToken = token;\n+            this.user = user;\n+          }\n+          resolve(user);\n+        });\n+      });\n+    });\n+  }\n+\n+  /**\n+   * Signs in the user to Github using the Firebase API.\n+   * @return {!Promise<object>} The logged in user.\n+   */\n+  signIn() {\n+    return firebase.auth().signInWithPopup(this.provider).then(result => {\n+      this.accessToken = result.credential.accessToken;\n+      this.user = result.user;\n+      // A limitation of firebase auth is that it doesn't return an oauth token\n+      // after a page refresh. We'll get a firebase token, but not an oauth token\n+      // for GH. Since GH's tokens never expire, stash the access token in IDB.\n+      return idb.set('accessToken', this.accessToken).then(_ => {\n+        return this.accessToken;\n+      });\n+    });\n+  }\n+\n+  /**\n+   * Signs the user out.\n+   * @return {!Promise}\n+   */\n+  signOut() {\n+    return firebase.auth().signOut().then(() => {\n+      this.accessToken = null;\n+      return idb.delete('accessToken');\n+    });\n+  }\n+}\n+\n+/**\n+ * Wrapper around the Github API for reading/writing gists.\n+ * @class\n+ */\n+class GithubAPI {\n+  constructor() {\n+    // this.CLIENT_ID = '48e4c3145c4978268ecb';\n+    this.auth = new FirebaseAuth();\n+  }\n+\n+  static get LH_JSON_EXT() {\n+    return '.lighthouse.report.json';\n+  }\n+\n+  authorize() {\n+    return this.auth.accessToken ? Promise.resolve(this.auth.accessToken) :\n+                                   this.auth.signIn();\n+  }\n+\n+  /**\n+   * Creates a gist under the users account.\n+   * @param {!object} jsonFile The gist file body.\n+   * @return {!Promise<string>} id of the created gist.\n+   */\n+  createGist(jsonFile) {\n+    logger.log('Saving JSON to Github gist...', false);\n+\n+    return this.authorize()\n+      .then(accessToken => {\n+        const filename = getFilenamePrefix({\n+          url: jsonFile.url,\n+          date: new Date(jsonFile.generatedTime)\n+        });\n+        const body = {\n+          description: 'Lighthouse json report',\n+          public: false,\n+          files: {\n+            [`${filename}${GithubAPI.LH_JSON_EXT}`]: {\n+              content: JSON.stringify(jsonFile)\n+            }\n+          }\n+        };\n+\n+        const request = new Request('https://api.github.com/gists', {\n+          method: 'POST',\n+          headers: new Headers({Authorization: `token ${accessToken}`}),\n+          // Stringify twice so quotes are escaped for POST request to succeed.\n+          body: JSON.stringify(body)\n+        });\n+        return fetch(request);\n+      })\n+      .then(resp => resp.json())\n+      .then(json => {\n+        logger.hide();\n+        return json.id;\n+      });\n+  }\n+\n+  /**\n+   * Fetches the body content of a gist.\n+   * @param {!string} id The id of a gist.\n+   * @return {!Promise<{etag: string, content: !Object}>} json content of the gist.\n+   */\n+  getGistContent(id) {\n+    return this.auth.ready.then(user => {\n+      const headers = new Headers();\n+\n+      // If there's an authenticated user, include an Authorization header to\n+      // have higher rate limits with the Github API. Otherwise, rely on ETags.\n+      if (user) {\n+        headers.set('Authorization', `token ${this.auth.accessToken}`);\n+      }\n+\n+      return idb.get(id).then(cachedGist => {\n+        if (cachedGist && cachedGist.etag) {\n+          headers.set('If-None-Match', cachedGist.etag);\n+        }\n+\n+        // Always make the request to see if there's newer content.\n+        return fetch(`https://api.github.com/gists/${id}`, {headers}).then(resp => {\n+          const remaining = resp.headers.get('X-RateLimit-Remaining');\n+          const limit = resp.headers.get('X-RateLimit-Limit');\n+          if (Number(remaining) < 10) {\n+            logger.warn('Warning: approaching Github\\'s rate limit. ' +\n+                        `${limit - remaining}/${limit} requests used. Consider signing ` +\n+                        'in to increase this limit.');\n+          }\n+\n+          const etag = resp.headers.get('ETag');\n+\n+          if (!resp.ok) {\n+            if (resp.status === 304) {\n+              return cachedGist;\n+            } else if (resp.status === 404) {\n+              // Delete the entry from IDB if it no longer exists on the server.\n+              idb.delete(id); // Note: async.\n+            }\n+            const msg = `${resp.status} fetching gist`;\n+            logger.log(msg);\n+            throw new Error(msg);\n+          }\n+\n+          return resp.json().then(json => {\n+            const fileName = Object.keys(json.files)[0]; // Attempt to use first file in gist.\n+            const f = json.files[fileName];\n+            if (f.truncated) {\n+              return fetch(f.raw_url).then(resp => resp.json())\n+                  .then(json => ({etag, content: json}));\n+            }\n+            return {etag, content: JSON.parse(f.content)};\n+          });\n+        });\n+      });\n+    });\n+  }\n+\n+  /**\n+   * Fetches the user's gists.\n+   * @param {!string} username\n+   * @return {!Promise<Array>} List of user;s gists.\n+   */\n+  getGists(username) {\n+    return fetch(`https://api.github.com/users/${username}/gists`, {\n+      headers: new Headers({\n+        Authorization: `token ${this.auth.accessToken}`\n+      })\n+    })\n+    .then(resp => resp.json());\n+  }\n+}\n+\n+class FileUploader {\n+  /**\n+   * @param {function()} fileHandlerCallback Invoked when the user chooses a new file.\n+   */\n+  constructor(fileHandlerCallback) {\n+    this.dropZone = document.querySelector('.drop_zone');\n+    this.placeholder = document.querySelector('.viewer-placeholder');\n+    this._fileHandlerCallback = fileHandlerCallback;\n+    this._dragging = false;\n+\n+    this.addHiddenFileInput();\n+    this.addListeners();\n+  }\n+\n+  addHiddenFileInput() {\n+    this.fileInput = document.createElement('input');\n+    this.fileInput.id = 'hidden-file-input';\n+    this.fileInput.type = 'file';\n+    this.fileInput.hidden = true;\n+    this.fileInput.accept = 'application/json';\n+\n+    this.fileInput.addEventListener('change', e => {\n+      this._fileHandlerCallback(e.target.files[0]);\n+    });\n+\n+    document.body.appendChild(this.fileInput);\n+  }\n+\n+  addListeners() {\n+    this.placeholder.firstElementChild.addEventListener('click', () => {\n+      this.fileInput.click();\n+    });\n+\n+    // The mouseleave event is more reliable than dragleave when the user drops\n+    // the file outside the window.\n+    document.addEventListener('mouseleave', _ => {\n+      if (!this._dragging) {\n+        return;\n+      }\n+      this._resetDraggingUI();\n+    });\n+\n+    document.addEventListener('dragover', e => {\n+      e.stopPropagation();\n+      e.preventDefault();\n+      e.dataTransfer.dropEffect = 'copy'; // Explicitly show as copy action.\n+    });\n+\n+    document.addEventListener('dragenter', _ => {\n+      this.dropZone.classList.add('dropping');\n+      this._dragging = true;\n+    });\n+\n+    document.addEventListener('drop', e => {\n+      e.stopPropagation();\n+      e.preventDefault();\n+\n+      this._resetDraggingUI();\n+\n+      // Note, this ignores multiple files in the drop, only taking the first.\n+      this._fileHandlerCallback(e.dataTransfer.files[0]);\n+    });\n+  }\n+\n+  _resetDraggingUI() {\n+    this.dropZone.classList.remove('dropping');\n+    this._dragging = false;\n+    logger.hide();\n+  }\n+\n+  removeDropzonePlaceholder() {\n+    // Remove placeholder drop area after viewing results for first time.\n+    // General dropzone takes over.\n+    if (this.placeholder) {\n+      this.placeholder.remove();\n+      this.placeholder = null;\n+    }\n+  }\n+\n+  /**\n+   * Reads a file and returns its content in the specified format.\n+   * @static\n+   * @param {!File} file\n+   * @param {!string} readAs A format to read the file ('text', 'dataurl',\n+   *     'arraybuffer', 'binstr'). The default is to return the file as text.\n+   * @return {!Promise<string>}\n+   */\n+  static readFile(file, readAs) {\n+    return new Promise((resolve, reject) => {\n+      const reader = new window.FileReader();\n+      reader.onload = function(e) {\n+        resolve(e.target.result);\n+      };\n+      reader.onerror = reject;\n+      switch (readAs) {\n+        case 'arraybuffer':\n+          reader.readAsArrayBuffer(file);\n+          break;\n+        case 'binstr':\n+          reader.readAsBinaryString(file);\n+          break;\n+        case 'dataurl':\n+          reader.readAsDataURL(file);\n+          break;\n+        case 'text':\n+        default:\n+          reader.readAsText(file);\n+      }\n+    });\n+  }\n+}\n+\n+class LighthouseViewerReport {\n+  constructor() {\n+    this.onShare = this.onShare.bind(this);\n+    this.onFileUpload = this.onFileUpload.bind(this);\n+\n+    this.json = null;\n+    this.fileUploader = new FileUploader(this.onFileUpload);\n+    this.github = new GithubAPI();\n+\n+    this.addListeners();\n+    this.loadFromURL();\n+  }\n+\n+  addListeners() {\n+    const printButton = document.querySelector('.js-print');\n+    if (!printButton) {\n+      return;\n+    }\n+\n+    printButton.addEventListener('click', _ => {\n+      window.print();\n+    });\n+\n+    const button = document.createElement('button');\n+    button.classList.add('share');\n+    button.addEventListener('click', this.onShare);\n+    printButton.parentElement.insertBefore(button, printButton);","path":"lighthouse-viewer/app/src/main.js","position":414,"original_position":414,"commit_id":"309d59eae6751d6b0630993e5531f9a6f8b7d7ca","original_commit_id":"309d59eae6751d6b0630993e5531f9a6f8b7d7ca","user":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"body":"how do you feel about putting the share button into `report.template.html` conditionally based on `reportContext` instead of like this?\r\n\r\n","created_at":"2016-12-06T01:00:05Z","updated_at":"2016-12-06T01:03:26Z","html_url":"https://github.com/GoogleChrome/lighthouse/pull/1109#discussion_r90992311","pull_request_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109","_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments/90992311"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/1109#discussion_r90992311"},"pull_request":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109","id":96570885,"html_url":"https://github.com/GoogleChrome/lighthouse/pull/1109","diff_url":"https://github.com/GoogleChrome/lighthouse/pull/1109.diff","patch_url":"https://github.com/GoogleChrome/lighthouse/pull/1109.patch","issue_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/1109","number":1109,"state":"open","locked":false,"title":"Lighthouse Viewer","user":{"login":"ebidel","id":238208,"avatar_url":"https://avatars.githubusercontent.com/u/238208?v=3","gravatar_id":"","url":"https://api.github.com/users/ebidel","html_url":"https://github.com/ebidel","followers_url":"https://api.github.com/users/ebidel/followers","following_url":"https://api.github.com/users/ebidel/following{/other_user}","gists_url":"https://api.github.com/users/ebidel/gists{/gist_id}","starred_url":"https://api.github.com/users/ebidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebidel/subscriptions","organizations_url":"https://api.github.com/users/ebidel/orgs","repos_url":"https://api.github.com/users/ebidel/repos","events_url":"https://api.github.com/users/ebidel/events{/privacy}","received_events_url":"https://api.github.com/users/ebidel/received_events","type":"User","site_admin":false},"body":"R: all\r\n\r\nThis adds a online viewer for LH json reports, served from `gh-pages`. It browserifies our current report generating code and adds Firebase for authorization to the Github API. Shared reports are saved as gists to Github and fetched later\r\n\r\nTry it: https://ebidel.github.io/viewer-test/\r\n\r\n<img width=\"1126\" alt=\"screen shot 2016-12-05 at 9 12 38 am\" src=\"https://cloud.githubusercontent.com/assets/238208/20894691/4e74d148-bacb-11e6-8fba-99b7469e93a7.png\">\r\n\r\n**Deploys**\r\n\r\ncan be done during a release using `npm run deploy-viewer` in the repo root. That will build `lighthouse-viewer/dist` and push to `gh-pages`. The `dist` folder of LH viewer will be the only thing in the `gh-pages` branch.\r\n\r\nFuture work is tracked in https://github.com/GoogleChrome/lighthouse/issues/1108","created_at":"2016-12-05T17:15:18Z","updated_at":"2016-12-06T01:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"969790868db06c5c239115e8ead56f41f3b9fa1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109/commits","review_comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109/comments","review_comment_url":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/1109/comments","statuses_url":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/309d59eae6751d6b0630993e5531f9a6f8b7d7ca","head":{"label":"GoogleChrome:viewer","ref":"viewer","sha":"309d59eae6751d6b0630993e5531f9a6f8b7d7ca","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":"Auditing, performance metrics, and best practices for Progressive Web Apps","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-12-05T16:37:25Z","pushed_at":"2016-12-06T00:25:37Z","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":"","size":10981,"stargazers_count":4842,"watchers_count":4842,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":145,"forks":178,"open_issues":145,"watchers":4842,"default_branch":"master"}},"base":{"label":"GoogleChrome:master","ref":"master","sha":"aa6d38b3ea8b87677e3d1b4b7dfc93c78ed19f44","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":"Auditing, performance metrics, and best practices for Progressive Web Apps","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-12-05T16:37:25Z","pushed_at":"2016-12-06T00:25:37Z","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":"","size":10981,"stargazers_count":4842,"watchers_count":4842,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":145,"forks":178,"open_issues":145,"watchers":4842,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109"},"html":{"href":"https://github.com/GoogleChrome/lighthouse/pull/1109"},"issue":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/1109"},"comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/1109/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/pulls/1109/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChrome/lighthouse/statuses/309d59eae6751d6b0630993e5531f9a6f8b7d7ca"}}}}
{"actor":{"display_login":"paulirish"}}