escaping markdown

This commit is contained in:
angiejones
2025-10-20 20:03:34 -07:00
parent d5d92919e0
commit ef67d88d68
+20 -30
View File
@@ -75,36 +75,26 @@ jobs:
const timestamp = new Date().toUTCString(); const timestamp = new Date().toUTCString();
const formattedDate = new Date().toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }); const formattedDate = new Date().toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
const dashboardBody = `# GitHub Health const dashboardBody = '# GitHub Health\n\n' +
'**Updated:** ' + formattedDate + '\n\n' +
**Updated:** ${formattedDate} '## Issues\n\n' +
'**Open:** ' + totalOpenIssues + '\n\n' +
## Issues '**No labels:** ' + issuesWithoutLabels.length + ' (these are recent)\n\n' +
'### Label Breakdown\n\n' +
**Open:** ${totalOpenIssues} '| Label | Count |\n' +
'|-------|-------|\n' +
**No labels:** ${issuesWithoutLabels.length} (these are recent) '| [P0](https://github.com/' + owner + '/' + repo + '/labels/P0) | ' + (labelCounts['P0'] || 0) + ' |\n' +
'| [P1](https://github.com/' + owner + '/' + repo + '/labels/P1) | ' + (labelCounts['P1'] || 0) + ' |\n' +
### Label Breakdown '| [Compaction](https://github.com/' + owner + '/' + repo + '/labels/Compaction) | ' + (labelCounts['Compaction'] || 0) + ' |\n' +
'| [Windows](https://github.com/' + owner + '/' + repo + '/labels/Windows) | ' + (labelCounts['Windows'] || 0) + ' |\n' +
| Label | Count | '| [Provider](https://github.com/' + owner + '/' + repo + '/labels/Provider) | ' + (labelCounts['Provider'] || 0) + ' |\n' +
|-------|-------| '| [MCP/Extensions](https://github.com/' + owner + '/' + repo + '/labels/MCP%2FExtensions) | ' + (labelCounts['MCP/Extensions'] || 0) + ' |\n' +
| [P0](https://github.com/${owner}/${repo}/labels/P0) | ${labelCounts['P0'] || 0} | '| [Linux](https://github.com/' + owner + '/' + repo + '/labels/Linux) | ' + (labelCounts['Linux'] || 0) + ' |\n\n' +
| [P1](https://github.com/${owner}/${repo}/labels/P1) | ${labelCounts['P1'] || 0} | '## Open PRs\n\n' +
| [Compaction](https://github.com/${owner}/${repo}/labels/Compaction) | ${labelCounts['Compaction'] || 0} | '**Total:** ' + totalOpenPRs + '\n\n' +
| [Windows](https://github.com/${owner}/${repo}/labels/Windows) | ${labelCounts['Windows'] || 0} | '---\n\n' +
| [Provider](https://github.com/${owner}/${repo}/labels/Provider) | ${labelCounts['Provider'] || 0} | '*Last updated: ' + timestamp + '*\n' +
| [MCP/Extensions](https://github.com/${owner}/${repo}/labels/MCP%2FExtensions) | ${labelCounts['MCP/Extensions'] || 0} | '*This dashboard is automatically updated daily by [GitHub Actions](https://github.com/' + owner + '/' + repo + '/actions/workflows/update-health-dashboard.yml)*';
| [Linux](https://github.com/${owner}/${repo}/labels/Linux) | ${labelCounts['Linux'] || 0} |
## Open PRs
**Total:** ${totalOpenPRs}
---
*Last updated: ${timestamp}*
*This dashboard is automatically updated daily by [GitHub Actions](https://github.com/${owner}/${repo}/actions/workflows/update-health-dashboard.yml)*`;
console.log('Dashboard generated, updating discussion...'); console.log('Dashboard generated, updating discussion...');