Skip to content

Commit

Permalink
feat(typescript): POST /repos/:owner/:repo/generate (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and gr2m committed Jul 17, 2019
1 parent 10598e1 commit 68fce64
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
20 changes: 20 additions & 0 deletions src/generated/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 68fce64

Please sign in to comment.