Skip to content

Commit debbe4c

Browse files
committed
show as much output as possible
1 parent 7de0c81 commit debbe4c

File tree

3 files changed

+462
-144
lines changed

3 files changed

+462
-144
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const githubCommentMaxLength = 65400;
3737
if (output === '') {
3838
console.log('No change');
3939
} else if (output.length > githubCommentMaxLength) {
40-
console.log('Output too long for GitHub PR');
40+
const trimmedOutput = output.slice(0, githubCommentMaxLength - 40) + '...Output too long for GitHub PR';
41+
console.log(trimmedOutput);
4142
} else {
4243
console.log(output);
4344
}

0 commit comments

Comments
 (0)