Skip to content

Commit

Permalink
Merge pull request #1870 from intuit/changelog-quiet-dry
Browse files Browse the repository at this point in the history
fix using --dry-run and --quiet together with the changelog command
  • Loading branch information
hipstersmoothie committed Mar 12, 2021
2 parents af15d88 + 0e20d45 commit 6b6138e
Showing 1 changed file with 6 additions and 5 deletions.
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

0 comments on commit 6b6138e

Please sign in to comment.