File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
src/main/kotlin/org/openrewrite Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -651,17 +651,13 @@ import TabItem from '@theme/TabItem';
651651 private fun BufferedWriter.writeContributors (recipeDescriptor : RecipeDescriptor ) {
652652 if (recipeDescriptor.contributors.isNotEmpty()) {
653653 newLine()
654- writeln(" ## Contributors" )
655- writeln(
656- recipeDescriptor.contributors.stream()
657- .map { contributor: Contributor ->
658- if (contributor.email.contains(" noreply" )) {
659- contributor.name
660- } else {
661- " [" + contributor.name + " ](mailto:" + contributor.email + " )"
662- }
663- }.collect(joining(" , " ))
664- )
654+ writeln(" ## Contributors\n " )
655+ // Extract unique contributor names (removing duplicates)
656+ val uniqueNames = recipeDescriptor.contributors
657+ .map { contributor -> contributor.name }
658+ .distinct()
659+ .sorted()
660+ writeln(uniqueNames.joinToString(" , " ))
665661 }
666662 }
667663
You can’t perform that action at this time.
0 commit comments