()
| 232 | let buf = []; |
| 233 | |
| 234 | const flush = () => { |
| 235 | const text = buf.length ? `${current}\n${buf.join('\n')}` : current; |
| 236 | blocks.push({ |
| 237 | type: 'section', |
| 238 | text: {type: 'mrkdwn', text}, |
| 239 | }); |
| 240 | buf = []; |
| 241 | current = header; // next chunk keeps the same header for clarity |
| 242 | }; |
| 243 | |
| 244 | for (const line of lines) { |
| 245 | const tentative = buf.length ? `${current}\n${buf.join('\n')}\n${line}` : `${current}\n${line}`; |
no test coverage detected