postLighthouseComment(prInfo, lhr, thresholds) {
    let rows = '';
    Object.values(lhr.categories).forEach(cat => {
      const threshold = thresholds[cat.id] || '-';
      rows += `| ${cat.title} | ${cat.score * 100} | ${threshold} \n`;
    });

    const body = `
Updated [Lighthouse](https://developers.google.com/web/tools/lighthouse/) report for the changes in this PR:

| Category | New score | Required threshold |
| ------------- | ------------- | ------------- |
${rows}

_Tested with Lighthouse version: ${lhr.lighthouseVersion}_`;

    const scores = LighthouseCI.getOverallScores(lhr);

    // eslint-disable-next-line no-unused-vars
    return this.github.issues.createComment(Object.assign({body}, prInfo)).then(status => scores);
  }
Posts a comment to the PR with the latest Lighthouse scores.
@param {!{owner: string, repo: string, number: number}} prInfo
@param {!Object} lhr Lighthouse results object.
@param {!Object<string, number>} thresholds Minimum scores per category.
@return {!Promise<!Object<string, number>} Lighthouse scores.