Skip to content

Commit 2039d08

Browse files
committed
feat: stringify the illegal commit messages when reporting them
1 parent 26bf0b0 commit 2039d08

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\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`,
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: ${JSON.stringify(illegalMessages)}\n\n`,
7474
);
7575

7676
action.addStep(step);

0 commit comments

Comments
 (0)