8000 fix(typescript): updated endpoint route & parameter definitions · octokit/endpoint.js@111acad · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 111acad

Browse files
Octokit Botgr2m
authored andcommitted
fix(typescript): updated endpoint route & parameter definitions
1 parent 6a57d59 commit 111acad

File tree

1 file changed

+83
-7
lines changed

1 file changed

+83
-7
lines changed

src/generated/routes.ts

Lines changed: 83 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,10 @@ export interface Routes {
975975
PullsCreateEndpoint | PullsCreateFromIssueEndpoint,
976976
PullsCreateRequestOptions | PullsCreateFromIssueRequestOptions
977977
];
978+
"PUT /repos/:owner/:repo/pulls/:pull_number/update-branch": [
979+
PullsUpdateBranchEndpoint,
980+
PullsUpdateBranchRequestOptions
981+
];
978982
"PATCH /repos/:owner/:repo/pulls/:pull_number": [
979983
PullsUpdateEndpoint,
980984
PullsUpdateRequestOptions
@@ -1152,6 +1156,14 @@ export interface Routes {
11521156
ReposDisableVulnerabilityAlertsEndpoint,
11531157
ReposDisableVulnerabilityAlertsRequestOptions
11541158
];
1159+
"PUT /repos/:owner/:repo/automated-security-fixes": [
1160+
ReposEnableAutomatedSecurityFixesEndpoint,
1161+
ReposEnableAutomatedSecurityFixesRequestOptions
1162+
];
1163+
"DELETE /repos/:owner/:repo/automated-security-fixes": [
1164+
ReposDisableAutomatedSecurityFixesEndpoint,
1165+
ReposDisableAutomatedSecurityFixesRequestOptions
1166+
];
11551167
"GET /repos/:owner/:repo/contributors": [
11561168
ReposListContributorsEndpoint,
11571169
ReposListContributorsRequestOptions
@@ -1324,11 +1336,11 @@ export interface Routes {
13241336
ReposListCommitCommentsEndpoint,
13251337
ReposListCommitCommentsRequestOptions
13261338
];
1327-
"GET /repos/:owner/:repo/commits/:ref/comments": [
1339+
"GET /repos/:owner/:repo/commits/:commit_sha/comments": [
13281340
ReposListCommentsForCommitEndpoint,
13291341
ReposListCommentsForCommitRequestOptions
13301342
];
1331-
"POST /repos/:owner/:repo/commits/:sha/comments": [
1343+
"POST /repos/:owner/:repo/commits/:commit_sha/comments": [
13321344
ReposCreateCommitCommentEndpoint,
13331345
ReposCreateCommitCommentRequestOptions
13341346
];
@@ -1381,8 +1393,14 @@ export interface Routes {
13811393
ReposGetContentsRequestOptions
13821394
];
13831395
"PUT /repos/:owner/:repo/contents/:path": [
1384-
ReposCreateFileEndpoint | ReposUpdateFileEndpoint,
1385-
ReposCreateFileRequestOptions | ReposUpdateFileRequestOptions
1396+
1397+
| ReposCreateOrUpdateFileEndpoint
1398+
| ReposCreateFileEndpoint
1399+
| ReposUpdateFileEndpoint,
1400+
1401+
| ReposCreateOrUpdateFileRequestOptions
1402+
| ReposCreateFileRequestOptions
1403+
| ReposUpdateFileRequestOptions
13861404
];
13871405
"DELETE /repos/:owner/:repo/contents/:path": [
13881406
ReposDeleteFileEndpoint,
@@ -2343,6 +2361,8 @@ type AppsDeleteInstallationRequestOptions = {
23432361 8000
};
23442362
type AppsCreateInstallationTokenEndpoint = {
23452363
installation_id: number;
2364+
repository_ids?: number[];
2365+
permissions?: object;
23462366
};
23472367
type AppsCreateInstallationTokenRequestOptions = {
23482368
method: "POST";
@@ -4956,6 +4976,18 @@ type PullsCreateFromIssueRequestOptions = {
49564976
headers: Headers;
49574977
request: EndpointRequestOptions;
49584978
};
4979+
type PullsUpdateBranchEndpoint = {
4980+
owner: string;
4981+
repo: string;
4982+
pull_number: number;
4983+
expected_head_sha?: string;
4984+
};
4985+
type PullsUpdateBranchRequestOptions = {
4986+
method: "PUT";
4987+
url: Url;
4988+
headers: Headers;
4989+
request: EndpointRequestOptions;
4990+
};
49594991
type PullsUpdateEndpoint = {
49604992
owner: string;
49614993
repo: string;
@@ -5628,6 +5660,26 @@ type ReposDisableVulnerabilityAlertsRequestOptions = {
56285660
headers: Headers;
56295661
request: EndpointRequestOptions;
56305662
};
5663+
type ReposEnableAutomatedSecurityFixesEndpoint = {
5664+
owner: string;
5665+
repo: string;
5666+
};
5667+
type ReposEnableAutomatedSecurityFixesRequestOptions = {
5668+
method: "PUT";
5669+
url: Url;
5670+
headers: Headers;
5671+
request: EndpointRequestOptions;
5672+
};
5673+
type ReposDisableAutomatedSecurityFixesEndpoint = {
5674+
owner: string;
5675+
repo: string;
5676+
};
5677+
type ReposDisableAutomatedSecurityFixesRequestOptions = {
5678+
method: "DELETE";
5679+
url: Url;
5680+
headers: Headers;
5681+
request: EndpointRequestOptions;
5682+
};
56315683
type ReposListContributorsEndpoint = {
56325684
owner: string;
56335685
repo: string;
@@ -6146,9 +6198,10 @@ type ReposListCommitCommentsRequestOptions = {
61466198
type ReposListCommentsForCommitEndpoint = {
61476199
owner: string;
61486200
repo: string;
6149-
ref: string;
6201+
commit_sha: string;
61506202
per_page?: number;
61516203
page?: number;
6204+
ref?: string;
61526205
};
61536206
type ReposListCommentsForCommitRequestOptions = {
61546207
method: "GET";
@@ -6159,11 +6212,12 @@ type ReposListCommentsForCommitRequestOptions = {
61596212
type ReposCreateCommitCommentEndpoint = {
61606213
owner: string;
61616214
repo: string;
6162-
sha: string;
6215+
commit_sha: string;
61636216
body: string;
61646217
path?: string;
61656218
position?: number;
61666219
line?: number;
6220+
sha?: string;
61676221
};
61686222
type ReposCreateCommitCommentRequestOptions = {
61696223
method: "POST";
@@ -6314,12 +6368,34 @@ type ReposGetContentsRequestOptions = {
63146368
headers: Headers;
63156369
request: EndpointRequestOptions;
63166370
};
6371+
type ReposCreateOrUpdateFileEndpoint = {
6372+
owner: string;
6373+
repo: string;
6374+
path: string;
6375+
message: string;
6376+
content: string;
6377+ sha?: string;
6378+
branch?: string;
6379+
committer?: object;
6380+
"committer.name": string;
6381+
"committer.email": string;
6382+
author?: object;
6383+
"author.name": string;
6384+
"author.email": string;
6385+
};
6386+
type ReposCreateOrUpdateFileRequestOptions = {
6387+
method: "PUT";
6388+
url: Url;
6389+
headers: Headers;
6390+
request: EndpointRequestOptions;
6391+
};
63176392
type ReposCreateFileEndpoint = {
63186393
owner: string;
63196394
repo: string;
63206395
path: string;
63216396
message: string;
63226397
content: string;
6398+
sha?: string;
63236399
branch?: string;
63246400
committer?: object;
63256401
"committer.name": string;
@@ -6340,7 +6416,7 @@ type ReposUpdateFileEndpoint = {
63406416
path: string;
63416417
message: string;
63426418
content: string;
6343-
sha: string;
6419+
sha?: string;
63446420
branch?: string;
63456421
committer?: object;
63466422
"committer.name": string;

0 commit comments

Comments
 (0)
0