Skip to content

Commit b6cf4e9

Browse files
committed
update log for no changes detected and share the message
1 parent 178f6a9 commit b6cf4e9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/rush-lib/src/cli/actions/ChangeAction.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class ChangeAction extends BaseRushAction {
113113

114114
this._sortedProjectList = this._getChangedPackageNames().sort();
115115
if (this._sortedProjectList.length === 0) {
116-
console.log('No changes were detected on this branch. Nothing to do.');
116+
this._logNoChangeFileRequired();
117117
this._warnUncommittedChanges();
118118
return Promise.resolve();
119119
}
@@ -147,7 +147,7 @@ export class ChangeAction extends BaseRushAction {
147147
if (changedPackages.length > 0) {
148148
this._validateChangeFile(changedPackages);
149149
} else {
150-
console.log('No changes were detected on this branch.');
150+
this._logNoChangeFileRequired();
151151
}
152152
}
153153

@@ -478,4 +478,8 @@ export class ChangeAction extends BaseRushAction {
478478
FileSystem.writeFile(fileName, output, { ensureFolderExists: true });
479479
console.log(`Created file: ${fileName}`);
480480
}
481+
482+
private _logNoChangeFileRequired() {
483+
console.log('No changes were detected to relevant packages on this branch. Nothing to do.');
484+
}
481485
}

0 commit comments

Comments
 (0)