octokit.codesOfConduct.getAllCodesOfConduct();
This endpoint has no parameters
See also: GitHub Developer Guide documentation.
octokit.codesOfConduct.getConductCode({key,});
name | required | description |
---|---|---|
key | yes |
See also: GitHub Developer Guide documentation.
Returns the contents of the repository's code of conduct file, if one is detected.
A code of conduct is detected if there is a file named CODE_OF_CONDUCT
in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.
octokit.codesOfConduct.getForRepo({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.