Skip to content

Commit d1dd176

Browse files
mbrookesCopilot
andauthored
[docs-infra] Refine changelog contributor acknowledgment messages (#20123)
Signed-off-by: Matt <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent b35e1bc commit d1dd176

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/changelogUtils.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,19 @@ async function generateChangelog({
533533
a.toLowerCase().localeCompare(b.toLowerCase()),
534534
);
535535

536-
if (contributors.length > 0) {
536+
if (contributors.length > 1) {
537537
lines.push(
538-
`Special thanks go out to the community members for their valuable contributions:\n${contributors.join(', ')}`,
538+
`Special thanks go out to these community members for their valuable contributions:\n${contributors.join(', ')}`,
539+
);
540+
} else if (contributors.length === 1) {
541+
lines.push(
542+
`Special thanks go out to community member ${contributors[0]} for their valuable contribution.`,
539543
);
540544
}
541545

542546
if (community.team.size > 0) {
543547
lines.push(
544-
`The following are all team members who have contributed to this release:\n${teamMembers.join(', ')}`,
548+
`The following team members contributed to this release:\n${teamMembers.join(', ')}`,
545549
);
546550
}
547551

0 commit comments

Comments
 (0)