in tools/rfc-render/render-rfc-table.js [7:28]
async function render(renderStatus = undefined, groupByStatus = true) {
const issuesByStatus = await issuesGroupedByStatus(renderStatus);
const lines = [];
lines.push('\\#|Title|Owner|Status');
lines.push('---|-----|-----|------');
if (groupByStatus) {
for (const statusGroup of (renderStatus || Object.keys(issuesByStatus))) {
for (const row of issuesByStatus[statusGroup]?.sort(byNumber) || []) {
lines.push(renderRow(row));
}
}
} else {
for (const row of Object.values(issuesByStatus).flat().sort(byNumber)) {
lines.push(renderRow(row));
}
}
return lines;
}