Skip to content

Commit

Permalink
feat: update generated files with new features and fixes (release not…
Browse files Browse the repository at this point in the history
…es to be updated manually) (#190)

* fix: mark `assignees` and request body as required in the `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees` (i.e. remove assignees from an issue) API
* fix: remove defunkt `GET /repos/{owner}/{repo}/community/code_of_conduct` API
* chore: update some descriptions
* fix: allow `selected_repository_ids` for `PUT /orgs/{org}/actions/secrets/{secret_name}` AND `PUT /orgs/{org}/dependabot/secrets/{secret_name}` to be integers or strings
* fix: remove unused `prebuild_availability` enum values (`blob`, `pool`) for Codespaces machines
* chore: rename refs to use dash-separated rather than underscore_separated names
* feat: add for `is_alphanumeric` boolean response attribute to `GET /repos/{owner}/{repo}/autolinks`, `POST /repos/{owner}/{repo}/autolinks` and `GET /repos/{owner}/{repo}/autolinks/{autolink_id}`
  • Loading branch information
octokitbot committed Jul 1, 2022
1 parent e5f8240 commit ff9ee2f
Show file tree
Hide file tree
Showing 18 changed files with 1,835 additions and 1,959 deletions.
2,557 changes: 1,267 additions & 1,290 deletions cache/api.github.com.json

Large diffs are not rendered by default.

54 changes: 28 additions & 26 deletions cache/ghes-3.2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "6.2.1",
"version": "6.3.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
Expand Down Expand Up @@ -8629,7 +8629,7 @@
"selected_repository_ids": {
"type": "array",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
"items": { "type": "string" }
"items": { "type": "integer" }
}
},
"required": ["visibility"]
Expand All @@ -8640,7 +8640,7 @@
"encrypted_value": "c2VjcmV0",
"key_id": "012345678912345678",
"visibility": "selected",
"selected_repository_ids": ["1296269", "1296280"]
"selected_repository_ids": [1296269, 1296280]
}
}
}
Expand Down Expand Up @@ -21819,7 +21819,7 @@
}
},
"deployment_branch_policy": {
"$ref": "#/components/schemas/deployment_branch_policy"
"$ref": "#/components/schemas/deployment-branch-policy"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -24610,14 +24610,15 @@
"operationId": "issues/remove-assignees",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/issues#remove-assignees-from-an-issue"
"url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue"
},
"parameters": [
{ "$ref": "#/components/parameters/owner" },
{ "$ref": "#/components/parameters/repo" },
{ "$ref": "#/components/parameters/issue-number" }
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
Expand All @@ -24628,7 +24629,8 @@
"description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
"items": { "type": "string" }
}
}
},
"required": ["assignees"]
},
"examples": {
"default": { "value": { "assignees": ["hubot", "other_user"] } }
Expand Down Expand Up @@ -40713,7 +40715,7 @@
],
"nullable": true
},
"author_association": {
"author-association": {
"title": "author_association",
"type": "string",
"example": "OWNER",
Expand Down Expand Up @@ -40879,7 +40881,7 @@
"$ref": "#/components/schemas/nullable-integration"
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
},
Expand Down Expand Up @@ -40945,7 +40947,7 @@
},
"issue_url": { "type": "string", "format": "uri" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
Expand Down Expand Up @@ -41420,7 +41422,7 @@
"example": "2011-04-18T23:23:56Z"
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
}
},
"required": [
Expand Down Expand Up @@ -47140,7 +47142,7 @@
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
},
Expand Down Expand Up @@ -47185,7 +47187,7 @@
"properties": { "href": { "type": "string" } },
"required": ["href"]
},
"auto_merge": {
"auto-merge": {
"title": "Auto merge",
"description": "The status of auto merging a pull request.",
"type": "object",
Expand Down Expand Up @@ -47401,9 +47403,9 @@
]
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"auto_merge": { "$ref": "#/components/schemas/auto_merge" },
"auto_merge": { "$ref": "#/components/schemas/auto-merge" },
"draft": {
"description": "Indicates whether or not the pull request is a draft.",
"example": false,
Expand Down Expand Up @@ -48127,7 +48129,7 @@
"example": 30,
"description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
},
"deployment_branch_policy": {
"deployment-branch-policy": {
"type": "object",
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"properties": {
Expand Down Expand Up @@ -48248,7 +48250,7 @@
}
},
"deployment_branch_policy": {
"$ref": "#/components/schemas/deployment_branch_policy"
"$ref": "#/components/schemas/deployment-branch-policy"
}
},
"required": [
Expand Down Expand Up @@ -48765,7 +48767,7 @@
"$ref": "#/components/schemas/nullable-integration"
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
},
Expand Down Expand Up @@ -48895,7 +48897,7 @@
},
"rename": { "$ref": "#/components/schemas/issue-event-rename" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"lock_reason": { "type": "string", "nullable": true },
"performed_via_github_app": {
Expand Down Expand Up @@ -49598,7 +49600,7 @@
},
"issue_url": { "type": "string", "format": "uri" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"performed_via_github_app": {
"$ref": "#/components/schemas/nullable-integration"
Expand Down Expand Up @@ -49813,7 +49815,7 @@
"body_html": { "type": "string" },
"body_text": { "type": "string" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
}
},
"required": [
Expand Down Expand Up @@ -49920,7 +49922,7 @@
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"_links": {
"type": "object",
Expand Down Expand Up @@ -51359,9 +51361,9 @@
]
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"auto_merge": { "$ref": "#/components/schemas/auto_merge" },
"auto_merge": { "$ref": "#/components/schemas/auto-merge" },
"draft": {
"description": "Indicates whether or not the pull request is a draft.",
"example": false,
Expand Down Expand Up @@ -51516,7 +51518,7 @@
"body_html": { "type": "string" },
"body_text": { "type": "string" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
}
},
"required": [
Expand Down Expand Up @@ -51591,7 +51593,7 @@
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
},
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"_links": {
"type": "object",
Expand Down Expand Up @@ -52199,7 +52201,7 @@
"body": { "type": "string" },
"score": { "type": "number" },
"author_association": {
"$ref": "#/components/schemas/author_association"
"$ref": "#/components/schemas/author-association"
},
"draft": { "type": "boolean" },
"repository": { "$ref": "#/components/schemas/repository" },
Expand Down
Loading

2 comments on commit ff9ee2f

@gevmarlen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got errors after this update, i tried clean installation, but anyway

Error: node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts:903:48 - error TS2344: Type '"/orgs/{org_id}/codespaces"' does not satisfy the constraint 'keyof paths'.

903     "GET /orgs/{org_id}/codespaces": Operation<"/orgs/{org_id}/codespaces", "get">;
                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts:1612:70 - error TS2344: Type '"/repos/{owner}/{repo}/community/code_of_conduct"' does not satisfy the constraint 'keyof paths'.

1612     "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">;

With version 12.5.0 works good

@timrogers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gevmarlen Sorry to hear that! Could you create an issue, and include all of the Octokit-related entries in your package-lock.json/yarn.lock? We can take a look.

Please sign in to comment.