Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds http response codes 422: [organizations], 409: [org, organization-role, organization-roles, action/runs, repo/commits, repo/contents, dependabot/alerts, repo/git, repo/pages, codespaces/start, repository_invitations ] , adds private-vulnerability-reporting[get] #425

Merged
merged 1 commit into from Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
521 changes: 520 additions & 1 deletion cache/api.github.com.deref.json

Large diffs are not rendered by default.

107 changes: 106 additions & 1 deletion cache/api.github.com.json
Expand Up @@ -5180,7 +5180,7 @@
"/organizations": {
"get": {
"summary": "List organizations",
"description": "Lists all organizations, in the order that they were created on GitHub.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.",
"description": "Lists all organizations, in the order that they were created.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.",
"tags": [
"orgs"
],
Expand Down Expand Up @@ -9041,6 +9041,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"422": {
"description": "There is a problem with your account's associated payment method."
},
"500": {
"$ref": "#/components/responses/internal_error"
}
Expand Down Expand Up @@ -32754,6 +32757,9 @@
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -32982,6 +32988,9 @@
"$ref": "#/components/headers/link"
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
}
},
"x-github": {
Expand Down Expand Up @@ -33040,6 +33049,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
},
Expand Down Expand Up @@ -37288,6 +37300,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37441,6 +37456,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37494,6 +37512,9 @@
},
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
}
},
"x-github": {
Expand Down Expand Up @@ -37550,6 +37571,9 @@
"$ref": "#/components/headers/link"
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
}
},
"x-github": {
Expand Down Expand Up @@ -37601,6 +37625,9 @@
},
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
}
},
"x-github": {
Expand Down Expand Up @@ -37687,6 +37714,9 @@
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37770,6 +37800,9 @@
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37807,6 +37840,9 @@
"204": {
"description": "Response"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37940,6 +37976,9 @@
}
}
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -37998,6 +38037,9 @@
},
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
}
},
"x-github": {
Expand Down Expand Up @@ -38134,6 +38176,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -38207,6 +38252,9 @@
"404": {
"$ref": "#/components/responses/not_found"
},
"409": {
"$ref": "#/components/responses/conflict"
},
"422": {
"$ref": "#/components/responses/validation_failed"
}
Expand Down Expand Up @@ -44668,6 +44716,63 @@
}
},
"/repos/{owner}/{repo}/private-vulnerability-reporting": {
"get": {
"summary": "Check if private vulnerability reporting is enabled for a repository",
"description": "Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see \"[Evaluating the security settings of a repository](https://docs.github.com/code-security/security-advisories/working-with-repository-security-advisories/evaluating-the-security-settings-of-a-repository)\".",
"tags": [
"repos"
],
"operationId": "repos/check-private-vulnerability-reporting",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository"
},
"parameters": [
{
"$ref": "#/components/parameters/owner"
},
{
"$ref": "#/components/parameters/repo"
}
],
"responses": {
"200": {
"description": "Private vulnerability reporting status",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether or not private vulnerability reporting is enabled for the repository."
}
},
"required": [
"enabled"
]
},
"examples": {
"default": {
"value": {
"enabled": true
}
}
}
}
}
},
"422": {
"$ref": "#/components/responses/bad_request"
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "repos",
"subcategory": "repos"
}
},
"put": {
"summary": "Enable private vulnerability reporting for a repository",
"description": "Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability).\"",
Expand Down