Skip to content
Snippets Groups Projects

Iss #146 - Update status UI to list successfully validated users

Merged Iss #146 - Update status UI to list successfully validated users
Merged Martin Lowe requested to merge (removed):malowe/main/146 into main
3 files
+ 56
16
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -50,6 +50,21 @@ public class EclipseQuteTemplateExtensions {
return statuses.stream().flatMap(s -> s.getErrors().stream()).collect(Collectors.toList());
}
/**
* Converts the status list to a list of email addresses that were associated with validated commits.
*
* @param statuses the list of commit statuses for the current validation.
* @return list of email addresses associated with valid requests
*/
static List<String> getUniquePassedMails(List<CommitValidationStatus> statuses) {
return statuses
.stream()
.filter(s -> s.getErrors().isEmpty())
.map(CommitValidationStatus::getUserMail)
.distinct()
.collect(Collectors.toList());
}
/**
* <p>
* Obfuscates an email for public consumption, showing the first letter of the email address, and the domain of the
Loading