Skip to content

Commit bd0339f

Browse files
Merge pull request #2453 from intuit/fix-slack-message-chunking
fix chunking large changelogs
2 parents 2f17b25 + 80c7bb1 commit bd0339f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/slack/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export function convertToBlocks(
171171

172172
const fullSection = lines.join("\n");
173173

174-
if (line.length > 3000) {
175-
const splitLines = splitCharacterLimit(line, 3000);
174+
if (fullSection.length > 3000) {
175+
const splitLines = splitCharacterLimit(fullSection, 3000);
176176

177177
splitLines.forEach((splitLine) => {
178178
currentMessage.push(createSectionBlock(splitLine));

0 commit comments

Comments
 (0)