mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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:
co-authored by
Tobias Koppers
Claude
parent
8a2c5e017e
commit
f760e48532
@@ -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) |`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user