|
1 | 1 | { |
2 | 2 | "openapi": "3.0.3", |
3 | 3 | "info": { |
4 | | - "version": "2.1.0", |
| 4 | + "version": "2.2.0", |
5 | 5 | "title": "GitHub's official OpenAPI spec + Octokit extension", |
6 | 6 | "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", |
7 | 7 | "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, |
|
18675 | 18675 | "/repos/{owner}/{repo}/community/code_of_conduct": { |
18676 | 18676 | "get": { |
18677 | 18677 | "summary": "Get the code of conduct for a repository", |
18678 | | - "description": "This method returns the contents of the repository's code of conduct file, if one is detected.", |
| 18678 | + "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.", |
18679 | 18679 | "tags": ["codes-of-conduct"], |
18680 | 18680 | "operationId": "codes-of-conduct/get-for-repo", |
18681 | 18681 | "externalDocs": { |
|
18720 | 18720 | "/repos/{owner}/{repo}/community/profile": { |
18721 | 18721 | "get": { |
18722 | 18722 | "summary": "Get community profile metrics", |
18723 | | - "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.", |
| 18723 | + "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.", |
18724 | 18724 | "tags": ["repos"], |
18725 | 18725 | "operationId": "repos/get-community-profile-metrics", |
18726 | 18726 | "externalDocs": { |
|
43428 | 43428 | "conclusion": { |
43429 | 43429 | "type": "string", |
43430 | 43430 | "example": "neutral", |
| 43431 | + "enum": [ |
| 43432 | + "success", |
| 43433 | + "failure", |
| 43434 | + "neutral", |
| 43435 | + "cancelled", |
| 43436 | + "skipped", |
| 43437 | + "timed_out", |
| 43438 | + "action_required" |
| 43439 | + ], |
43431 | 43440 | "nullable": true |
43432 | 43441 | }, |
43433 | 43442 | "started_at": { |
@@ -43562,11 +43571,21 @@ |
43562 | 43571 | "status": { |
43563 | 43572 | "type": "string", |
43564 | 43573 | "example": "completed", |
| 43574 | + "enum": ["queued", "in_progress", "completed"], |
43565 | 43575 | "nullable": true |
43566 | 43576 | }, |
43567 | 43577 | "conclusion": { |
43568 | 43578 | "type": "string", |
43569 | 43579 | "example": "neutral", |
| 43580 | + "enum": [ |
| 43581 | + "success", |
| 43582 | + "failure", |
| 43583 | + "neutral", |
| 43584 | + "cancelled", |
| 43585 | + "skipped", |
| 43586 | + "timed_out", |
| 43587 | + "action_required" |
| 43588 | + ], |
43570 | 43589 | "nullable": true |
43571 | 43590 | }, |
43572 | 43591 | "url": { |
|
0 commit comments