Skip to content

Commit

Permalink
fix: add missing message on dry-mode (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored Aug 18, 2019
1 parent 8702ec2 commit 3922854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/shipjs/src/step/prepare/commitChanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export default async ({ nextVersion, dir, config, dryRun }) =>
if (dryRun) {
print('$', info('git add .'));
print('$', info('git commit'));
print(` git commit message: ${message}`);
print(' |');
print(` | ${message}`);
print(' |');
return;
}
await beforeCommitChanges({ exec: wrapExecWithDir(dir) });
Expand Down
2 changes: 1 addition & 1 deletion packages/shipjs/src/step/runStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import wrapRun from '../util/wrapRun';
import { info, warning, error, bold, underline, slateblue } from '../color';

const makeSpaces = num => ' '.repeat(num);
const indentPrint = indent => text => print(`${makeSpaces(indent)}${text}`);
const indentPrint = indent => (...args) => print(makeSpaces(indent), ...args);

export default function runStep({ title }, stepFn) {
if (title) {
Expand Down

0 comments on commit 3922854

Please sign in to comment.