@@ -71654,10 +71654,11 @@ function buildSummaryMarkdown(results, passed, skipped, failed, total) {
7165471654 lines.push('');
7165571655 lines.push('| Commit | Status | Details |');
7165671656 lines.push('|--------|--------|---------|');
71657+ const skippedRows = [];
7165771658 for (const result of results) {
7165871659 const shortSha = `\`${result.commit.substring(0, 8)}\``;
7165971660 if (result.skipped) {
71660- lines .push(`| ${shortSha} | Skipped | ${result.skipReason || 'N/A'} |`);
71661+ skippedRows .push(`| ${shortSha} | Skipped | ${result.skipReason || 'N/A'} |`);
7166171662 }
7166271663 else if (result.valid) {
7166371664 const signer = result.signer || 'verified';
@@ -71668,6 +71669,20 @@ function buildSummaryMarkdown(results, passed, skipped, failed, total) {
7166871669 lines.push(`| ${shortSha} | \u274c Failed | ${error} |`);
7166971670 }
7167071671 }
71672+ // Collapse skipped commits if there are more than 3
71673+ if (skippedRows.length > 0 && skippedRows.length <= 3) {
71674+ lines.push(...skippedRows);
71675+ }
71676+ else if (skippedRows.length > 3) {
71677+ lines.push('');
71678+ lines.push(`<details><summary>${skippedRows.length} skipped commits (merge commits)</summary>`);
71679+ lines.push('');
71680+ lines.push('| Commit | Status | Details |');
71681+ lines.push('|--------|--------|---------|');
71682+ lines.push(...skippedRows);
71683+ lines.push('');
71684+ lines.push('</details>');
71685+ }
7167171686 lines.push('');
7167271687 const resultEmoji = failed === 0 ? '\u2705' : '\u274c';
7167371688 let resultLine = `**Result:** ${resultEmoji} ${passed}/${total} commits verified`;
0 commit comments