chore: fix changlelog section parsing and reference right ENV (#25633)

This commit is contained in:
Emily Rohrbough
2023-01-31 09:00:23 -06:00
committed by GitHub
parent 660ff67578
commit 6f1653cf6d
3 changed files with 19 additions and 16 deletions
@@ -7,7 +7,11 @@ const { getCurrentReleaseData } = require('./get-current-release-data')
const { getNextVersionForBinary } = require('../get-next-version')
const { getLinkedIssues } = require('./get-linked-issues')
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN })
if (process.env.CIRCLECI && !process.env.GH_TOKEN) {
throw new Error('The GITHUB_TOKEN env is not set.')
}
const octokit = new Octokit({ auth: process.env.GH_TOKEN })
/**
* Get the list of file names that have been added, deleted or changed since the git