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,5 +1,6 @@
const args = require('minimist')(process.argv.slice(2));
const octokit = require('@octokit/rest')();
const { Octokit } = require('@octokit/rest');
const octokit = new Octokit();
const path = require('path');
const SOURCE_ROOT = path.normalize(path.dirname(__dirname));