build: quash octokit deprecation warning (#24790)

This commit is contained in:
Shelley Vohr 2020-08-05 08:59:52 -07:00 committed by GitHub
parent 99874fd71f
commit 9274117e12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 124 additions and 131 deletions

View file

@ -1,6 +1,7 @@
if (!process.env.CI) require('dotenv-safe').load();
const octokit = require('@octokit/rest')({
const { Octokit } = require('@octokit/rest');
const octokit = new Octokit({
auth: process.env.ELECTRON_GITHUB_TOKEN
});