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
|
@ -12,16 +12,13 @@ const { execSync } = require('child_process')
|
|||
const { GitProcess } = require('dugite')
|
||||
const { getCurrentBranch } = require('./lib/utils.js')
|
||||
|
||||
const octokit = require('@octokit/rest')()
|
||||
const path = require('path')
|
||||
|
||||
const gitDir = path.resolve(__dirname, '..')
|
||||
|
||||
octokit.authenticate({
|
||||
type: 'token',
|
||||
token: process.env.ELECTRON_GITHUB_TOKEN
|
||||
const octokit = require('@octokit/rest')({
|
||||
auth: process.env.ELECTRON_GITHUB_TOKEN
|
||||
})
|
||||
|
||||
const path = require('path')
|
||||
const gitDir = path.resolve(__dirname, '..')
|
||||
|
||||
function getLastBumpCommit (tag) {
|
||||
const data = execSync(`git log -n1 --grep "Bump ${tag}" --format='format:{"hash": "%H", "message": "%s"}'`).toString()
|
||||
return JSON.parse(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue