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

Function generateCSV

scripts/getCommitsForTesting.mjs:160–174  ·  view source on GitHub ↗
(startDate, endDate)

Source from the content-addressed store, hash-verified

158}
159
160export async function generateCSV(startDate, endDate) {
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
173 return {csv, counts};
174}
175
176async function listOpenOffPRs() {
177 let allPRs = [];

Callers 1

writeTestingCSVFunction · 0.85

Calls 2

generateDataFunction · 0.85
formatRowsFunction · 0.85

Tested by

no test coverage detected