Skip to content

Commit

Permalink
Account for length buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeichestakov committed Jun 21, 2024
1 parent 0e36dbe commit 4e8a465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/action/src/util/get-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${Array.from(stats.authors)
.join(', ')}
`.trim();

if (message.length >= maxLength) {
if (message.length >= maxLength - lengthBuffer) {
return `${message.slice(
0,
maxLength - lengthBuffer,
Expand Down

0 comments on commit 4e8a465

Please sign in to comment.