MCPcopy Create free account
hub / github.com/appium/appium / flush

Function flush

scripts/crowdin-stats.mjs:234–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}`;

Callers 1

formatSlackMessageFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected