MCPcopy Index your code
hub / github.com/adobe/react-spectrum / formatRows

Function formatRows

scripts/getCommitsForTesting.mjs:163–169  ·  view source on GitHub ↗
(rows)

Source from the content-addressed store, hash-verified

161 let {v3PRs, s2PRs, racPRs, otherPRs, offPRs, counts} = await generateData(startDate, endDate);
162
163 function formatRows(rows) {
164 return rows
165 .map(([component, instructions, url, title]) =>
166 [escapeCSV(component), escapeCSV(instructions), url, escapeCSV(title)].join()
167 )
168 .join('\n');
169 }
170
171 let csv = `V3 \n${formatRows(v3PRs)}\n\nRainbow \n${formatRows(s2PRs)}\n\nRAC \n${formatRows(racPRs)}\n\nOff PR \n${formatRows(offPRs)}\n\nOther \n${formatRows(otherPRs)}\n`;
172

Callers 1

generateCSVFunction · 0.85

Calls 1

escapeCSVFunction · 0.85

Tested by

no test coverage detected