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

Function flushSection

scripts/github-contrib-stats.mjs:264–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 let currentLen = 0;
263
264 const flushSection = () => {
265 if (currentLines.length === 0) {
266 return;
267 }
268 const content = currentLines.join('\n');
269 blocks.push({
270 type: 'section',
271 text: {type: 'mrkdwn', text: content},
272 });
273 currentLines = [];
274 currentLen = 0;
275 };
276
277 for (const line of rowLines) {
278 const addLen = line.length + 1; // plus newline

Callers 1

formatSlackMessageFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected