Skip to content

Commit

Permalink
feat: add support for new GET /repos/{owner}/{repo}/codespaces/new
Browse files Browse the repository at this point in the history
…API operation (#425)
  • Loading branch information
octokitbot authored Jul 15, 2022
1 parent a716dce commit 454fe59
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^12.9.1"
"@octokit/openapi-types": "^12.10.0"
},
"scripts": {
"build": "pika-pack build",
Expand Down Expand Up @@ -96,7 +96,7 @@
]
},
"octokit": {
"openapi-version": "6.6.3"
"openapi-version": "6.7.0"
},
"renovate": {
"extends": [
Expand Down
13 changes: 13 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -4388,6 +4388,19 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/codespaces/new",
"documentationUrl": "https://docs.github.com/rest/reference/codespaces#preview-attributes-for-a-new-codespace",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "client_ip" }
],
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/user/codespaces/secrets/{secret_name}/repositories/{repository_id}",
Expand Down
7 changes: 7 additions & 0 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,13 @@ export interface Endpoints {
"/repos/{owner}/{repo}/codespaces/machines",
"get"
>;
/**
* @see https://docs.github.com/rest/reference/codespaces#preview-attributes-for-a-new-codespace
*/
"GET /repos/{owner}/{repo}/codespaces/new": Operation<
"/repos/{owner}/{repo}/codespaces/new",
"get"
>;
/**
* @see https://docs.github.com/rest/reference/codespaces#list-repository-secrets
*/
Expand Down

0 comments on commit 454fe59

Please sign in to comment.