pr-status: Show all participants in review thread overview (#92730)

Co-authored-by: Tobias Koppers <[email protected]>
Co-authored-by: Claude <[email protected]>
This commit is contained in:
Tobias Koppers
2026-04-15 10:24:43 +02:00
committed by GitHub
co-authored by Tobias Koppers Claude
parent 8a2c5e017e
commit f760e48532
+9 -4
View File
@@ -819,18 +819,23 @@ function generateIndexMd(
'',
`## Inline Review Comments (${reviewThreads.length} threads)`,
'',
'| File | Line | Author | Replies | Status | Details |',
'|------|------|--------|---------|--------|---------|'
'| File | Line | Participants | Replies | Status | Details |',
'|------|------|--------------|---------|--------|---------|'
)
for (let i = 0; i < reviewThreads.length; i++) {
const thread = reviewThreads[i]
const line = thread.line || thread.startLine || 'N/A'
const author = thread.comments.nodes[0]?.author?.login || 'Unknown'
const participants = new Set()
for (const comment of thread.comments.nodes) {
if (comment.author?.login) participants.add(comment.author.login)
}
const participantsStr =
participants.size > 0 ? [...participants].join(', ') : 'Unknown'
const replyCount = Math.max(0, thread.comments.nodes.length - 1)
const status = thread.isResolved ? 'Resolved' : 'Open'
lines.push(
`| ${escapeMarkdownTableCell(thread.path)} | ${line} | ${author} | ${replyCount} | ${status} | [View](thread-${i + 1}.md) |`
`| ${escapeMarkdownTableCell(thread.path)} | ${line} | ${participantsStr} | ${replyCount} | ${status} | [View](thread-${i + 1}.md) |`
)
}
}