Skip to content

Commit

Permalink
Merge pull request #2453 from intuit/fix-slack-message-chunking
Browse files Browse the repository at this point in the history
fix chunking large changelogs
  • Loading branch information
hipstersmoothie committed Apr 4, 2024
2 parents 2f17b25 + 80c7bb1 commit bd0339f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/slack/src/index.ts
Expand Up @@ -171,8 +171,8 @@ export function convertToBlocks(

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

if (line.length > 3000) {
const splitLines = splitCharacterLimit(line, 3000);
if (fullSection.length > 3000) {
const splitLines = splitCharacterLimit(fullSection, 3000);

splitLines.forEach((splitLine) => {
currentMessage.push(createSectionBlock(splitLine));
Expand Down

0 comments on commit bd0339f

Please sign in to comment.