mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
chore: Fix github integration
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
parent
82355ef43f
commit
57b36e93a7
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ const path = require('path')
|
|||
const btoa = require('btoa')
|
||||
const { version } = require(path.join(__dirname, '..', 'package.json'))
|
||||
const size = require('any-size')
|
||||
const github = require('@octokit/rest')({
|
||||
const { Octokit } = require('@octokit/rest')
|
||||
const github = new Octokit({
|
||||
// GitHub personal access token
|
||||
auth: process.env.github_token,
|
||||
// User agent with version from package.json
|
||||
|
|
|
|||
Loading…
Reference in a new issue