()
| 571 | record CodeownersCheck(CodeOwnerError[] errors, GHContent content) |
| 572 | implements Information { |
| 573 | public String summary() { |
| 574 | // formatter:off |
| 575 | return "- %s Codeowners - %s%s%s".formatted( |
| 576 | (ok() ? "💚" : "❌"), |
| 577 | (ok() ? "File is valid" : "File has errors"), |
| 578 | Stream.of(errors) |
| 579 | .map(CodeOwnerError::summary) |
| 580 | .collect(Collectors.joining("")), |
| 581 | urlText(content)); |
| 582 | // formatter:on |
| 583 | } |
| 584 | |
| 585 | public String markdownSummary() { |
| 586 | return "- [%s] %s Codeowners - %s%s%s".formatted( |