(GHRepository repo)
| 331 | } |
| 332 | |
| 333 | private CommunityFiles findCommunityFiles(GHRepository repo) { |
| 334 | // These files cascade from the org down to the repository |
| 335 | // Find and capture them in a record that we can use to validate |
| 336 | // presence/contents with fallbacks |
| 337 | // Standard community health files - reference: |
| 338 | // https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file |
| 339 | return new CommunityFiles( |
| 340 | findFileInRepo(repo, "GOVERNANCE"), |
| 341 | findFileInRepo(repo, "CODE_OF_CONDUCT"), |
| 342 | findFileInRepo(repo, "CONTRIBUTING")); |
| 343 | } |
| 344 | |
| 345 | private void addCheck(GHRepository repo, Information check) { |
| 346 | checks.add(check); |
no test coverage detected