@@ -975,6 +975,10 @@ export interface Routes {
975
975
PullsCreateEndpoint | PullsCreateFromIssueEndpoint ,
976
976
PullsCreateRequestOptions | PullsCreateFromIssueRequestOptions
977
977
] ;
978
+ "PUT /repos/:owner/:repo/pulls/:pull_number/update-branch" : [
979
+ PullsUpdateBranchEndpoint ,
980
+ PullsUpdateBranchRequestOptions
981
+ ] ;
978
982
"PATCH /repos/:owner/:repo/pulls/:pull_number" : [
979
983
PullsUpdateEndpoint ,
980
984
PullsUpdateRequestOptions
@@ -1152,6 +1156,14 @@ export interface Routes {
1152
1156
ReposDisableVulnerabilityAlertsEndpoint ,
1153
1157
ReposDisableVulnerabilityAlertsRequestOptions
1154
1158
] ;
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
+ ] ;
1155
1167
"GET /repos/:owner/:repo/contributors" : [
1156
1168
ReposListContributorsEndpoint ,
1157
1169
ReposListContributorsRequestOptions
@@ -1324,11 +1336,11 @@ export interface Routes {
1324
1336
ReposListCommitCommentsEndpoint ,
1325
1337
ReposListCommitCommentsRequestOptions
1326
1338
] ;
1327
- "GET /repos/:owner/:repo/commits/:ref /comments" : [
1339
+ "GET /repos/:owner/:repo/commits/:commit_sha /comments" : [
1328
1340
ReposListCommentsForCommitEndpoint ,
1329
1341
ReposListCommentsForCommitRequestOptions
1330
1342
] ;
1331
- "POST /repos/:owner/:repo/commits/:sha /comments" : [
1343
+ "POST /repos/:owner/:repo/commits/:commit_sha /comments" : [
1332
1344
ReposCreateCommitCommentEndpoint ,
1333
1345
ReposCreateCommitCommentRequestOptions
1334
1346
] ;
@@ -1381,8 +1393,14 @@ export interface Routes {
1381
1393
ReposGetContentsRequestOptions
1382
1394
] ;
1383
1395
"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
1386
1404
] ;
1387
1405
"DELETE /repos/:owner/:repo/contents/:path" : [
1388
1406
ReposDeleteFileEndpoint ,
@@ -2343,6 +2361,8 @@ type AppsDeleteInstallationRequestOptions = {
2343
2361
8000
} ;
2344
2362
type AppsCreateInstallationTokenEndpoint = {
2345
2363
installation_id : number ;
2364
+ repository_ids ?: number [ ] ;
2365
+ permissions ?: object ;
2346
2366
} ;
2347
2367
type AppsCreateInstallationTokenRequestOptions = {
2348
2368
method : "POST" ;
@@ -4956,6 +4976,18 @@ type PullsCreateFromIssueRequestOptions = {
4956
4976
headers : Headers ;
4957
4977
request : EndpointRequestOptions ;
4958
4978
} ;
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
+ } ;
4959
4991
type PullsUpdateEndpoint = {
4960
4992
owner : string ;
4961
4993
repo : string ;
@@ -5628,6 +5660,26 @@ type ReposDisableVulnerabilityAlertsRequestOptions = {
5628
5660
headers : Headers ;
5629
5661
request : EndpointRequestOptions ;
5630
5662
} ;
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
+ } ;
5631
5683
type ReposListContributorsEndpoint = {
5632
5684
owner : string ;
5633
5685
repo : string ;
@@ -6146,9 +6198,10 @@ type ReposListCommitCommentsRequestOptions = {
6146
6198
type ReposListCommentsForCommitEndpoint = {
6147
6199
owner : string ;
6148
6200
repo : string ;
6149
- ref : string ;
6201
+ commit_sha : string ;
6150
6202
per_page ?: number ;
6151
6203
page ?: number ;
6204
+ ref ?: string ;
6152
6205
} ;
6153
6206
type ReposListCommentsForCommitRequestOptions = {
6154
6207
method : "GET" ;
@@ -6159,11 +6212,12 @@ type ReposListCommentsForCommitRequestOptions = {
6159
6212
type ReposCreateCommitCommentEndpoint = {
6160
6213
owner : string ;
6161
6214
repo : string ;
6162
- sha : string ;
6215
+ commit_sha : string ;
6163
6216
body : string ;
6164
6217
path ?: string ;
6165
6218
position ?: number ;
6166
6219
line ?: number ;
6220
+ sha ?: string ;
6167
6221
} ;
6168
6222
type ReposCreateCommitCommentRequestOptions = {
6169
6223
method : "POST" ;
@@ -6314,12 +6368,34 @@ type ReposGetContentsRequestOptions = {
6314
6368
headers : Headers ;
6315
6369
request : EndpointRequestOptions ;
6316
6370
} ;
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
+ } ;
6317
6392
type ReposCreateFileEndpoint = {
6318
6393
owner : string ;
6319
6394
repo : string ;
6320
6395
path : string ;
6321
6396
message : string ;
6322
6397
content : string ;
6398
+ sha ?: string ;
6323
6399
branch ?: string ;
6324
6400
committer ?: object ;
6325
6401
"committer.name" : string ;
@@ -6340,7 +6416,7 @@ type ReposUpdateFileEndpoint = {
6340
6416
path : string ;
6341
6417
message : string ;
6342
6418
content : string ;
6343
- sha : string ;
6419
+ sha ? : string ;
6344
6420
branch ?: string ;
6345
6421
committer ?: object ;
6346
6422
"committer.name" : string ;
0 commit comments