Skip to content

Commit

Permalink
Merge pull request #1774 from intuit/dry-run
Browse files Browse the repository at this point in the history
don't check if git clean during dry run
  • Loading branch information
hipstersmoothie committed Feb 4, 2021
2 parents b10d509 + 41274d6 commit 59ee635
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/core/src/auto.ts
Expand Up @@ -1202,7 +1202,9 @@ export default class Auto {
process.exit(0);
}

await this.checkClean();
if (!options.dryRun) {
await this.checkClean();
}

let { pr, build } = await this.getPrEnvInfo();
pr = options.pr ? String(options.pr) : pr;
Expand Down Expand Up @@ -1332,7 +1334,10 @@ export default class Auto {
process.exit(0);
}

await this.checkClean();
if (!options.dryRun) {
await this.checkClean()
}

await this.setGitUser();

this.hooks.onCreateLogParse.tap(
Expand Down Expand Up @@ -1664,7 +1669,9 @@ export default class Auto {
noCommit: options.noChangelog,
});

await this.checkClean();
if (!options.dryRun) {
await this.checkClean();
}

this.logger.verbose.info("Calling version hook");
await this.hooks.version.promise({
Expand Down

0 comments on commit 59ee635

Please sign in to comment.