Skip to content

Commit 26bf0b0

Browse files
committed
feat: report illegal commit messages in error message
1 parent 708d100 commit 26bf0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proxy/processors/push-action/checkCommitMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const exec = async (req: any, action: Action): Promise<Action> => {
7070
step.error = true;
7171
step.log(`The following commit messages are illegal: ${illegalMessages}`);
7272
step.setError(
73-
'\n\n\n\nYour push has been blocked.\nPlease ensure your commit message(s) does not contain sensitive information or URLs.\n\n\n',
73+
`\n\n\nYour push has been blocked.\nPlease ensure your commit message(s) does not contain sensitive information or URLs.\n\nThe following commit messages are illegal: ${illegalMessages}\n\n`,
7474
);
7575

7676
action.addStep(step);

0 commit comments

Comments
 (0)