Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/promote_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,11 @@ export default class ReleasePromotion extends Session {
const [commitTitle, ...modifiedFiles] = releaseCommitOnDefaultBranch.trim().split('\n');
await this.validateReleaseCommit(commitTitle);
if (modifiedFiles.some(file => !file.endsWith('.md'))) {
cli.warn('Some modified files are not markdown, that\'s unusual.');
cli.warn(
'Some modified files are not markdown, that\'s unusual. Consider amending the commit.'
);
cli.info(`The list of modified files: ${modifiedFiles.map(f => `- ${f}`).join('\n')}`);
if (await cli.prompt('Consider amending the commit before continuing. Ready to continue?', {
if (await cli.prompt('Ignore and continue anyway?', {
defaultAnswer: false
})) {
break;
Expand Down
Loading