Skip to content

Commit 254ebaa

Browse files
authored
chore(git-node): clarify prompt message in promotion script (#1100)
1 parent 383db96 commit 254ebaa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/promote_release.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,11 @@ export default class ReleasePromotion extends Session {
540540
const [commitTitle, ...modifiedFiles] = releaseCommitOnDefaultBranch.trim().split('\n');
541541
await this.validateReleaseCommit(commitTitle);
542542
if (modifiedFiles.some(file => !file.endsWith('.md'))) {
543-
cli.warn('Some modified files are not markdown, that\'s unusual.');
543+
cli.warn(
544+
'Some modified files are not markdown, that\'s unusual. Consider amending the commit.'
545+
);
544546
cli.info(`The list of modified files: ${modifiedFiles.map(f => `- ${f}`).join('\n')}`);
545-
if (await cli.prompt('Consider amending the commit before continuing. Ready to continue?', {
547+
if (await cli.prompt('Ignore and continue anyway?', {
546548
defaultAnswer: false
547549
})) {
548550
break;

0 commit comments

Comments
 (0)