Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,19 @@ export default class ReleasePreparation extends Session {
import.meta.url
);

return filterAlphaReleaseCommits(runSync(changelogMaker, [
const changelog = runSync(changelogMaker, [
'--group',
'--markdown',
'--filter-release',
'--start-ref',
this.getLastRef(tagName)
])).trim();
]);
// Without a GitHub token, changelog-maker prints an auth prompt and exits 0.
if (changelog.includes('Paste your token here:')) {
throw new Error('changelog-maker needs a GitHub token: run it once in ' +
'a terminal to store one, then try again.');
}
return filterAlphaReleaseCommits(changelog).trim();
}

async getLTSCodename(version) {
Expand Down