|
44178 | 44178 | } |
44179 | 44179 | ], |
44180 | 44180 | "summary": "Get the code of conduct for a repository", |
44181 | | - "description": "This method returns the contents of the repository's code of conduct file, if one is detected.", |
| 44181 | + "description": "Returns the contents of the repository's code of conduct file, if one is detected.\n\nA 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.", |
44182 | 44182 | "tags": [ |
44183 | 44183 | "codes-of-conduct" |
44184 | 44184 | ], |
|
44206 | 44206 | "categoryLabel": "Codes of conduct", |
44207 | 44207 | "notes": [], |
44208 | 44208 | "bodyParameters": [], |
44209 | | - "descriptionHTML": "<p>This method returns the contents of the repository's code of conduct file, if one is detected.</p>", |
| 44209 | + "descriptionHTML": "<p>Returns the contents of the repository's code of conduct file, if one is detected.</p>\n<p>A code of conduct is detected if there is a file named <code>CODE_OF_CONDUCT</code> in the root directory of the repository. GitHub detects which code of conduct it is using fuzzy matching.</p>", |
44210 | 44210 | "responses": [ |
44211 | 44211 | { |
44212 | 44212 | "httpStatusCode": "200", |
|
44253 | 44253 | } |
44254 | 44254 | ], |
44255 | 44255 | "summary": "Get community profile metrics", |
44256 | | - "description": "This endpoint will return all community profile metrics, including an\noverall health score, repository description, the presence of documentation, detected\ncode of conduct, detected license, and the presence of ISSUE\\_TEMPLATE, PULL\\_REQUEST\\_TEMPLATE,\nREADME, and CONTRIBUTING files.\n\n`content_reports_enabled` is only returned for organization-owned repositories.", |
| 44256 | + "description": "This endpoint will return all community profile metrics, including an\noverall health score, repository description, the presence of documentation, detected\ncode of conduct, detected license, and the presence of ISSUE\\_TEMPLATE, PULL\\_REQUEST\\_TEMPLATE,\nREADME, and CONTRIBUTING files.\n\nThe `health_percentage` score is defined as a percentage of how many of\nthese four documents are present: README, CONTRIBUTING, LICENSE, and\nCODE_OF_CONDUCT. For example, if all four documents are present, then\nthe `health_percentage` is `100`. If only one is present, then the\n`health_percentage` is `25`.\n\n`content_reports_enabled` is only returned for organization-owned repositories.", |
44257 | 44257 | "tags": [ |
44258 | 44258 | "repos" |
44259 | 44259 | ], |
|
44275 | 44275 | "subcategoryLabel": "Community", |
44276 | 44276 | "notes": [], |
44277 | 44277 | "bodyParameters": [], |
44278 | | - "descriptionHTML": "<p>This endpoint will return all community profile metrics, including an\noverall health score, repository description, the presence of documentation, detected\ncode of conduct, detected license, and the presence of ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE,\nREADME, and CONTRIBUTING files.</p>\n<p><code>content_reports_enabled</code> is only returned for organization-owned repositories.</p>", |
| 44278 | + "descriptionHTML": "<p>This endpoint will return all community profile metrics, including an\noverall health score, repository description, the presence of documentation, detected\ncode of conduct, detected license, and the presence of ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE,\nREADME, and CONTRIBUTING files.</p>\n<p>The <code>health_percentage</code> score is defined as a percentage of how many of\nthese four documents are present: README, CONTRIBUTING, LICENSE, and\nCODE_OF_CONDUCT. For example, if all four documents are present, then\nthe <code>health_percentage</code> is <code>100</code>. If only one is present, then the\n<code>health_percentage</code> is <code>25</code>.</p>\n<p><code>content_reports_enabled</code> is only returned for organization-owned repositories.</p>", |
44279 | 44279 | "responses": [ |
44280 | 44280 | { |
44281 | 44281 | "httpStatusCode": "200", |
|
0 commit comments