Skip to content

Commit

Permalink
docs: moar docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed May 3, 2022
1 parent 522d014 commit bd58254
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deno/surface-lighthouse-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const isPullRequestEvent = (
* on which to add or update the Lighthouse report
*
* - on a "push" event: the original issue to track the latest report:
* https://github.com/guardian/dotcom-rendering/issues/4584
* https://github.com/guardian/dotcom-rendering/issues/4584, which allows
* to track the state Lighthouse CI Reports on `main` over time.
*/
const issue_number = isPullRequestEvent(payload)
? // If PullRequestEvent
Expand Down Expand Up @@ -92,7 +93,8 @@ const GIHUB_PARAMS = {
issue_number,
} as const;

const octokit = new Octokit({ auth: token }) as unknown as OctokitWithRest;
// @ts-expect-error -- Octokit’s own types are not as good as ours
const octokit = new Octokit({ auth: token }) as OctokitWithRest;

/* -- Methods -- */

Expand Down

0 comments on commit bd58254

Please sign in to comment.