Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix using --dry-run and --quiet together with the changelog command #1870

Merged
merged 1 commit into from Mar 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions packages/core/src/auto.ts
Expand Up @@ -1827,17 +1827,18 @@ export default class Auto {
this.versionBump
);

if (args.quiet) {
console.log(releaseNotes);
}

if (dryRun) {
this.logger.log.info("Potential Changelog Addition:\n", releaseNotes);
this.logger.verbose.info("`changelog` dry run complete.");

return;
}

if (args.quiet) {
console.log(releaseNotes);
} else {
this.logger.log.info("New Release Notes\n", releaseNotes);
}
this.logger.log.info("New Release Notes\n", releaseNotes);

const currentVersion = await this.getCurrentVersion(lastRelease);
const context = {
Expand Down