diff --git a/package-lock.json b/package-lock.json index fe63b336..63fdd020 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1441,9 +1441,9 @@ } }, "@octokit/routes": { - "version": "20.8.1", - "resolved": "https://registry.npmjs.org/@octokit/routes/-/routes-20.8.1.tgz", - "integrity": "sha512-hfkgANZ+eTDvPWg/uHYBoqOE6vN/MEU14zgj1zTh4JE6B7ALr7ULNR3dRiIxMiNRC4UMVmy3AGG/qmESE7ZeEQ==", + "version": "20.9.0", + "resolved": "https://registry.npmjs.org/@octokit/routes/-/routes-20.9.0.tgz", + "integrity": "sha512-FagfMwkcHDLaFYs4vX1GgAU770y5PTH5IMrIeXf1cVbiV05ux0mayEE96hdOPb5YzsXnTlXhYL+dLkPTrnyFmg==", "dev": true }, "@pika/pack": { diff --git a/package.json b/package.json index d1c20359..08ef6fe3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/octokit/endpoint.js#readme", "devDependencies": { - "@octokit/routes": "20.8.1", + "@octokit/routes": "20.9.0", "@pika/pack": "^0.4.0", "@pika/plugin-build-node": "^0.4.0", "@pika/plugin-build-web": "^0.4.0", diff --git a/src/generated/routes.ts b/src/generated/routes.ts index deeceffd..e7957bb3 100644 --- a/src/generated/routes.ts +++ b/src/generated/routes.ts @@ -1138,6 +1138,10 @@ export interface Routes { ReposCreateInOrgEndpoint, ReposCreateInOrgRequestOptions ]; + "POST /repos/:owner/:repo/generate": [ + ReposCreateUsingTemplateEndpoint, + ReposCreateUsingTemplateRequestOptions + ]; "GET /repos/:owner/:repo": [ReposGetEndpoint, ReposGetRequestOptions]; "PATCH /repos/:owner/:repo": [ReposUpdateEndpoint, ReposUpdateRequestOptions]; "GET /repos/:owner/:repo/topics": [ @@ -5562,6 +5566,7 @@ type ReposCreateForAuthenticatedUserEndpoint = { has_issues?: boolean; has_projects?: boolean; has_wiki?: boolean; + is_template?: boolean; team_id?: number; auto_init?: boolean; gitignore_template?: string; @@ -5585,6 +5590,7 @@ type ReposCreateInOrgEndpoint = { has_issues?: boolean; has_projects?: boolean; has_wiki?: boolean; + is_template?: boolean; team_id?: number; auto_init?: boolean; gitignore_template?: string; @@ -5599,6 +5605,19 @@ type ReposCreateInOrgRequestOptions = { headers: Headers; request: EndpointRequestOptions; }; +type ReposCreateUsingTemplateEndpoint = { + repo: string; + owner: string; + name: string; + description?: string; + private?: boolean; +}; +type ReposCreateUsingTemplateRequestOptions = { + method: "POST"; + url: Url; + headers: Headers; + request: EndpointRequestOptions; +}; type ReposGetEndpoint = { owner: string; repo: string; @@ -5619,6 +5638,7 @@ type ReposUpdateEndpoint = { has_issues?: boolean; has_projects?: boolean; has_wiki?: boolean; + is_template?: boolean; default_branch?: string; allow_squash_merge?: boolean; allow_merge_commit?: boolean;