build: remove deprecated octokit auth calls (#18205)
This commit is contained in:
parent
e63f527e76
commit
6770a8c64a
6 changed files with 19 additions and 23 deletions
|
@ -6,7 +6,9 @@ const os = require('os')
|
|||
const path = require('path')
|
||||
|
||||
const { GitProcess } = require('dugite')
|
||||
const octokit = require('@octokit/rest')()
|
||||
const octokit = require('@octokit/rest')({
|
||||
auth: process.env.ELECTRON_GITHUB_TOKEN
|
||||
})
|
||||
const semver = require('semver')
|
||||
|
||||
const MAX_FAIL_COUNT = 3
|
||||
|
@ -17,8 +19,6 @@ const NO_NOTES = 'No notes'
|
|||
const FOLLOW_REPOS = [ 'electron/electron', 'electron/libchromiumcontent', 'electron/node' ]
|
||||
const gitDir = path.resolve(__dirname, '..', '..')
|
||||
|
||||
octokit.authenticate({ type: 'token', token: process.env.ELECTRON_GITHUB_TOKEN })
|
||||
|
||||
const breakTypes = new Set(['breaking-change'])
|
||||
const docTypes = new Set(['doc', 'docs'])
|
||||
const featTypes = new Set(['feat', 'feature'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue