MCPcopy Create free account
hub / github.com/commonhaus/foundation / findCommunityFiles

Method findCommunityFiles

templates/panda/PolicyPanda.java:333–343  ·  view source on GitHub ↗
(GHRepository repo)

Source from the content-addressed store, hash-verified

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);

Callers 2

runPolicyCheckMethod · 0.95
processRepositoryMethod · 0.95

Calls 1

findFileInRepoMethod · 0.80

Tested by

no test coverage detected