@octokit/types 4.1.8 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,7 +136,7 @@ export interface Endpoints {
136
136
  response: OctokitResponse<any>;
137
137
  };
138
138
  /**
139
- * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user
139
+ * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization
140
140
  */
141
141
  "DELETE /orgs/:org/blocks/:username": {
142
142
  parameters: OrgsUnblockUserEndpoint;
@@ -144,19 +144,19 @@ export interface Endpoints {
144
144
  response: OctokitResponse<any>;
145
145
  };
146
146
  /**
147
- * @see https://developer.github.com/v3/orgs/#remove-a-credential-authorization-for-an-organization
147
+ * @see https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization
148
148
  */
149
149
  "DELETE /orgs/:org/credential-authorizations/:credential_id": {
150
- parameters: OrgsRemoveCredentialAuthorizationEndpoint;
151
- request: OrgsRemoveCredentialAuthorizationRequestOptions;
150
+ parameters: OrgsRemoveSamlSsoAuthorizationEndpoint;
151
+ request: OrgsRemoveSamlSsoAuthorizationRequestOptions;
152
152
  response: OctokitResponse<any>;
153
153
  };
154
154
  /**
155
- * @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook
155
+ * @see https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook
156
156
  */
157
157
  "DELETE /orgs/:org/hooks/:hook_id": {
158
- parameters: OrgsDeleteHookEndpoint;
159
- request: OrgsDeleteHookRequestOptions;
158
+ parameters: OrgsDeleteWebhookEndpoint;
159
+ request: OrgsDeleteWebhookRequestOptions;
160
160
  response: OctokitResponse<any>;
161
161
  };
162
162
  /**
@@ -168,7 +168,7 @@ export interface Endpoints {
168
168
  response: OctokitResponse<any>;
169
169
  };
170
170
  /**
171
- * @see https://developer.github.com/v3/orgs/members/#remove-a-member
171
+ * @see https://developer.github.com/v3/orgs/members/#remove-an-organization-member
172
172
  */
173
173
  "DELETE /orgs/:org/members/:username": {
174
174
  parameters: OrgsRemoveMemberEndpoint;
@@ -176,11 +176,11 @@ export interface Endpoints {
176
176
  response: OctokitResponse<any>;
177
177
  };
178
178
  /**
179
- * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership
179
+ * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user
180
180
  */
181
181
  "DELETE /orgs/:org/memberships/:username": {
182
- parameters: OrgsRemoveMembershipEndpoint;
183
- request: OrgsRemoveMembershipRequestOptions;
182
+ parameters: OrgsRemoveMembershipForUserEndpoint;
183
+ request: OrgsRemoveMembershipForUserRequestOptions;
184
184
  response: OctokitResponse<any>;
185
185
  };
186
186
  /**
@@ -200,7 +200,7 @@ export interface Endpoints {
200
200
  response: OctokitResponse<any>;
201
201
  };
202
202
  /**
203
- * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator
203
+ * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization
204
204
  */
205
205
  "DELETE /orgs/:org/outside_collaborators/:username": {
206
206
  parameters: OrgsRemoveOutsideCollaboratorEndpoint;
@@ -208,11 +208,11 @@ export interface Endpoints {
208
208
  response: OctokitResponse<OrgsRemoveOutsideCollaboratorResponseData>;
209
209
  };
210
210
  /**
211
- * @see https://developer.github.com/v3/orgs/members/#conceal-a-users-membership
211
+ * @see https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user
212
212
  */
213
213
  "DELETE /orgs/:org/public_members/:username": {
214
- parameters: OrgsConcealMembershipEndpoint;
215
- request: OrgsConcealMembershipRequestOptions;
214
+ parameters: OrgsRemovePublicMembershipForAuthenticatedUserEndpoint;
215
+ request: OrgsRemovePublicMembershipForAuthenticatedUserRequestOptions;
216
216
  response: OctokitResponse<any>;
217
217
  };
218
218
  /**
@@ -288,7 +288,7 @@ export interface Endpoints {
288
288
  response: OctokitResponse<any>;
289
289
  };
290
290
  /**
291
- * @see https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator
291
+ * @see https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator
292
292
  */
293
293
  "DELETE /projects/:project_id/collaborators/:username": {
294
294
  parameters: ProjectsRemoveCollaboratorEndpoint;
@@ -368,87 +368,87 @@ export interface Endpoints {
368
368
  response: OctokitResponse<any>;
369
369
  };
370
370
  /**
371
- * @see https://developer.github.com/v3/repos/branches/#remove-branch-protection
371
+ * @see https://developer.github.com/v3/repos/branches/#delete-branch-protection
372
372
  */
373
373
  "DELETE /repos/:owner/:repo/branches/:branch/protection": {
374
- parameters: ReposRemoveBranchProtectionEndpoint;
375
- request: ReposRemoveBranchProtectionRequestOptions;
374
+ parameters: ReposDeleteBranchProtectionEndpoint;
375
+ request: ReposDeleteBranchProtectionRequestOptions;
376
376
  response: OctokitResponse<any>;
377
377
  };
378
378
  /**
379
- * @see https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch
379
+ * @see https://developer.github.com/v3/repos/branches/#delete-admin-branch-protection
380
380
  */
381
381
  "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": {
382
- parameters: ReposRemoveProtectedBranchAdminEnforcementEndpoint;
383
- request: ReposRemoveProtectedBranchAdminEnforcementRequestOptions;
382
+ parameters: ReposDeleteAdminBranchProtectionEndpoint;
383
+ request: ReposDeleteAdminBranchProtectionRequestOptions;
384
384
  response: OctokitResponse<any>;
385
385
  };
386
386
  /**
387
- * @see https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch
387
+ * @see https://developer.github.com/v3/repos/branches/#delete-pull-request-review-protection
388
388
  */
389
389
  "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": {
390
- parameters: ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint;
391
- request: ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions;
390
+ parameters: ReposDeletePullRequestReviewProtectionEndpoint;
391
+ request: ReposDeletePullRequestReviewProtectionRequestOptions;
392
392
  response: OctokitResponse<any>;
393
393
  };
394
394
  /**
395
- * @see https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch
395
+ * @see https://developer.github.com/v3/repos/branches/#delete-commit-signature-protection
396
396
  */
397
397
  "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": {
398
- parameters: ReposRemoveProtectedBranchRequiredSignaturesEndpoint;
399
- request: ReposRemoveProtectedBranchRequiredSignaturesRequestOptions;
398
+ parameters: ReposDeleteCommitSignatureProtectionEndpoint;
399
+ request: ReposDeleteCommitSignatureProtectionRequestOptions;
400
400
  response: OctokitResponse<any>;
401
401
  };
402
402
  /**
403
- * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch
403
+ * @see https://developer.github.com/v3/repos/branches/#remove-status-check-protection
404
404
  */
405
405
  "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": {
406
- parameters: ReposRemoveProtectedBranchRequiredStatusChecksEndpoint;
407
- request: ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions;
406
+ parameters: ReposRemoveStatusCheckProtectionEndpoint;
407
+ request: ReposRemoveStatusCheckProtectionRequestOptions;
408
408
  response: OctokitResponse<any>;
409
409
  };
410
410
  /**
411
- * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch
411
+ * @see https://developer.github.com/v3/repos/branches/#remove-status-check-contexts
412
412
  */
413
413
  "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": {
414
- parameters: ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint;
415
- request: ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions;
416
- response: OctokitResponse<ReposRemoveProtectedBranchRequiredStatusChecksContextsResponseData>;
414
+ parameters: ReposRemoveStatusCheckContextsEndpoint;
415
+ request: ReposRemoveStatusCheckContextsRequestOptions;
416
+ response: OctokitResponse<ReposRemoveStatusCheckContextsResponseData>;
417
417
  };
418
418
  /**
419
- * @see https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch
419
+ * @see https://developer.github.com/v3/repos/branches/#delete-access-restrictions
420
420
  */
421
421
  "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": {
422
- parameters: ReposRemoveProtectedBranchRestrictionsEndpoint;
423
- request: ReposRemoveProtectedBranchRestrictionsRequestOptions;
422
+ parameters: ReposDeleteAccessRestrictionsEndpoint;
423
+ request: ReposDeleteAccessRestrictionsRequestOptions;
424
424
  response: OctokitResponse<any>;
425
425
  };
426
426
  /**
427
- * @see https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch
427
+ * @see https://developer.github.com/v3/repos/branches/#remove-app-access-restrictions
428
428
  */
429
429
  "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": {
430
- parameters: ReposRemoveProtectedBranchAppRestrictionsEndpoint;
431
- request: ReposRemoveProtectedBranchAppRestrictionsRequestOptions;
432
- response: OctokitResponse<ReposRemoveProtectedBranchAppRestrictionsResponseData>;
430
+ parameters: ReposRemoveAppAccessRestrictionsEndpoint;
431
+ request: ReposRemoveAppAccessRestrictionsRequestOptions;
432
+ response: OctokitResponse<ReposRemoveAppAccessRestrictionsResponseData>;
433
433
  };
434
434
  /**
435
- * @see https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch
435
+ * @see https://developer.github.com/v3/repos/branches/#remove-team-access-restrictions
436
436
  */
437
437
  "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": {
438
- parameters: ReposRemoveProtectedBranchTeamRestrictionsEndpoint;
439
- request: ReposRemoveProtectedBranchTeamRestrictionsRequestOptions;
440
- response: OctokitResponse<ReposRemoveProtectedBranchTeamRestrictionsResponseData>;
438
+ parameters: ReposRemoveTeamAccessRestrictionsEndpoint;
439
+ request: ReposRemoveTeamAccessRestrictionsRequestOptions;
440
+ response: OctokitResponse<ReposRemoveTeamAccessRestrictionsResponseData>;
441
441
  };
442
442
  /**
443
- * @see https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch
443
+ * @see https://developer.github.com/v3/repos/branches/#remove-user-access-restrictions
444
444
  */
445
445
  "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": {
446
- parameters: ReposRemoveProtectedBranchUserRestrictionsEndpoint;
447
- request: ReposRemoveProtectedBranchUserRestrictionsRequestOptions;
448
- response: OctokitResponse<ReposRemoveProtectedBranchUserRestrictionsResponseData>;
446
+ parameters: ReposRemoveUserAccessRestrictionsEndpoint;
447
+ request: ReposRemoveUserAccessRestrictionsRequestOptions;
448
+ response: OctokitResponse<ReposRemoveUserAccessRestrictionsResponseData>;
449
449
  };
450
450
  /**
451
- * @see https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator
451
+ * @see https://developer.github.com/v3/repos/collaborators/#remove-a-repository-collaborator
452
452
  */
453
453
  "DELETE /repos/:owner/:repo/collaborators/:username": {
454
454
  parameters: ReposRemoveCollaboratorEndpoint;
@@ -487,14 +487,6 @@ export interface Endpoints {
487
487
  request: ReposDeleteDeploymentRequestOptions;
488
488
  response: OctokitResponse<any>;
489
489
  };
490
- /**
491
- * @see https://developer.github.com/v3/repos/downloads/#delete-a-download
492
- */
493
- "DELETE /repos/:owner/:repo/downloads/:download_id": {
494
- parameters: ReposDeleteDownloadEndpoint;
495
- request: ReposDeleteDownloadRequestOptions;
496
- response: OctokitResponse<any>;
497
- };
498
490
  /**
499
491
  * @see https://developer.github.com/v3/git/refs/#delete-a-reference
500
492
  */
@@ -504,11 +496,11 @@ export interface Endpoints {
504
496
  response: OctokitResponse<any>;
505
497
  };
506
498
  /**
507
- * @see https://developer.github.com/v3/repos/hooks/#delete-a-hook
499
+ * @see https://developer.github.com/v3/repos/hooks/#delete-a-repository-webhook
508
500
  */
509
501
  "DELETE /repos/:owner/:repo/hooks/:hook_id": {
510
- parameters: ReposDeleteHookEndpoint;
511
- request: ReposDeleteHookRequestOptions;
502
+ parameters: ReposDeleteWebhookEndpoint;
503
+ request: ReposDeleteWebhookRequestOptions;
512
504
  response: OctokitResponse<any>;
513
505
  };
514
506
  /**
@@ -592,11 +584,11 @@ export interface Endpoints {
592
584
  response: OctokitResponse<any>;
593
585
  };
594
586
  /**
595
- * @see https://developer.github.com/v3/repos/keys/#remove-a-deploy-key
587
+ * @see https://developer.github.com/v3/repos/keys/#delete-a-deploy-key
596
588
  */
597
589
  "DELETE /repos/:owner/:repo/keys/:key_id": {
598
- parameters: ReposRemoveDeployKeyEndpoint;
599
- request: ReposRemoveDeployKeyRequestOptions;
590
+ parameters: ReposDeleteDeployKeyEndpoint;
591
+ request: ReposDeleteDeployKeyRequestOptions;
600
592
  response: OctokitResponse<any>;
601
593
  };
602
594
  /**
@@ -616,23 +608,23 @@ export interface Endpoints {
616
608
  response: OctokitResponse<any>;
617
609
  };
618
610
  /**
619
- * @see https://developer.github.com/v3/repos/pages/#disable-a-pages-site
611
+ * @see https://developer.github.com/v3/repos/pages/#delete-a-github-pages-site
620
612
  */
621
613
  "DELETE /repos/:owner/:repo/pages": {
622
- parameters: ReposDisablePagesSiteEndpoint;
623
- request: ReposDisablePagesSiteRequestOptions;
614
+ parameters: ReposDeletePagesSiteEndpoint;
615
+ request: ReposDeletePagesSiteRequestOptions;
624
616
  response: OctokitResponse<any>;
625
617
  };
626
618
  /**
627
- * @see https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request
619
+ * @see https://developer.github.com/v3/pulls/review_requests/#remove-requested-reviewers-from-a-pull-request
628
620
  */
629
621
  "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": {
630
- parameters: PullsDeleteReviewRequestEndpoint;
631
- request: PullsDeleteReviewRequestRequestOptions;
622
+ parameters: PullsRemoveRequestedReviewersEndpoint;
623
+ request: PullsRemoveRequestedReviewersRequestOptions;
632
624
  response: OctokitResponse<any>;
633
625
  };
634
626
  /**
635
- * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review
627
+ * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review-for-a-pull-request
636
628
  */
637
629
  "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": {
638
630
  parameters: PullsDeletePendingReviewEndpoint;
@@ -640,11 +632,11 @@ export interface Endpoints {
640
632
  response: OctokitResponse<PullsDeletePendingReviewResponseData>;
641
633
  };
642
634
  /**
643
- * @see https://developer.github.com/v3/pulls/comments/#delete-a-comment
635
+ * @see https://developer.github.com/v3/pulls/comments/#delete-a-review-comment-for-a-pull-request
644
636
  */
645
637
  "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": {
646
- parameters: PullsDeleteCommentEndpoint;
647
- request: PullsDeleteCommentRequestOptions;
638
+ parameters: PullsDeleteReviewCommentEndpoint;
639
+ request: PullsDeleteReviewCommentRequestOptions;
648
640
  response: OctokitResponse<any>;
649
641
  };
650
642
  /**
@@ -688,11 +680,11 @@ export interface Endpoints {
688
680
  response: OctokitResponse<any>;
689
681
  };
690
682
  /**
691
- * @see https://developer.github.com/v3/scim/#remove-a-user-from-the-organization
683
+ * @see https://developer.github.com/v3/scim/#delete-a-scim-user-from-an-organization
692
684
  */
693
685
  "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": {
694
- parameters: ScimRemoveUserFromOrgEndpoint;
695
- request: ScimRemoveUserFromOrgRequestOptions;
686
+ parameters: ScimDeleteUserFromOrgEndpoint;
687
+ request: ScimDeleteUserFromOrgRequestOptions;
696
688
  response: OctokitResponse<any>;
697
689
  };
698
690
  /**
@@ -760,11 +752,11 @@ export interface Endpoints {
760
752
  response: OctokitResponse<any>;
761
753
  };
762
754
  /**
763
- * @see https://developer.github.com/v3/users/emails/#delete-email-addresses
755
+ * @see https://developer.github.com/v3/users/emails/#delete-an-email-address-for-the-authenticated-user
764
756
  */
765
757
  "DELETE /user/emails": {
766
- parameters: UsersDeleteEmailsEndpoint;
767
- request: UsersDeleteEmailsRequestOptions;
758
+ parameters: UsersDeleteEmailForAuthenticatedEndpoint;
759
+ request: UsersDeleteEmailForAuthenticatedRequestOptions;
768
760
  response: OctokitResponse<any>;
769
761
  };
770
762
  /**
@@ -776,11 +768,11 @@ export interface Endpoints {
776
768
  response: OctokitResponse<any>;
777
769
  };
778
770
  /**
779
- * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key
771
+ * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key-for-the-authenticated-user
780
772
  */
781
773
  "DELETE /user/gpg_keys/:gpg_key_id": {
782
- parameters: UsersDeleteGpgKeyEndpoint;
783
- request: UsersDeleteGpgKeyRequestOptions;
774
+ parameters: UsersDeleteGpgKeyForAuthenticatedEndpoint;
775
+ request: UsersDeleteGpgKeyForAuthenticatedRequestOptions;
784
776
  response: OctokitResponse<any>;
785
777
  };
786
778
  /**
@@ -792,11 +784,11 @@ export interface Endpoints {
792
784
  response: OctokitResponse<any>;
793
785
  };
794
786
  /**
795
- * @see https://developer.github.com/v3/users/keys/#delete-a-public-key
787
+ * @see https://developer.github.com/v3/users/keys/#delete-a-public-ssh-key-for-the-authenticated-user
796
788
  */
797
789
  "DELETE /user/keys/:key_id": {
798
- parameters: UsersDeletePublicKeyEndpoint;
799
- request: UsersDeletePublicKeyRequestOptions;
790
+ parameters: UsersDeletePublicSshKeyForAuthenticatedEndpoint;
791
+ request: UsersDeletePublicSshKeyForAuthenticatedRequestOptions;
800
792
  response: OctokitResponse<any>;
801
793
  };
802
794
  /**
@@ -1160,7 +1152,7 @@ export interface Endpoints {
1160
1152
  response: OctokitResponse<ActivityGetThreadSubscriptionForAuthenticatedUserResponseData>;
1161
1153
  };
1162
1154
  /**
1163
- * @see https://developer.github.com/v3/orgs/#list-all-organizations
1155
+ * @see https://developer.github.com/v3/orgs/#list-organizations
1164
1156
  */
1165
1157
  "GET /organizations": {
1166
1158
  parameters: OrgsListEndpoint;
@@ -1232,7 +1224,7 @@ export interface Endpoints {
1232
1224
  response: OctokitResponse<ActionsGetOrgPublicKeyResponseData>;
1233
1225
  };
1234
1226
  /**
1235
- * @see https://developer.github.com/v3/orgs/blocking/#list-blocked-users
1227
+ * @see https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization
1236
1228
  */
1237
1229
  "GET /orgs/:org/blocks": {
1238
1230
  parameters: OrgsListBlockedUsersEndpoint;
@@ -1240,7 +1232,7 @@ export interface Endpoints {
1240
1232
  response: OctokitResponse<OrgsListBlockedUsersResponseData>;
1241
1233
  };
1242
1234
  /**
1243
- * @see https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization
1235
+ * @see https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization
1244
1236
  */
1245
1237
  "GET /orgs/:org/blocks/:username": {
1246
1238
  parameters: OrgsCheckBlockedUserEndpoint;
@@ -1248,12 +1240,12 @@ export interface Endpoints {
1248
1240
  response: OctokitResponse<any>;
1249
1241
  };
1250
1242
  /**
1251
- * @see https://developer.github.com/v3/orgs/#list-credential-authorizations-for-an-organization
1243
+ * @see https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization
1252
1244
  */
1253
1245
  "GET /orgs/:org/credential-authorizations": {
1254
- parameters: OrgsListCredentialAuthorizationsEndpoint;
1255
- request: OrgsListCredentialAuthorizationsRequestOptions;
1256
- response: OctokitResponse<OrgsListCredentialAuthorizationsResponseData>;
1246
+ parameters: OrgsListSamlSsoAuthorizationsEndpoint;
1247
+ request: OrgsListSamlSsoAuthorizationsRequestOptions;
1248
+ response: OctokitResponse<OrgsListSamlSsoAuthorizationsResponseData>;
1257
1249
  };
1258
1250
  /**
1259
1251
  * @see https://developer.github.com/v3/activity/events/#list-public-organization-events
@@ -1264,20 +1256,20 @@ export interface Endpoints {
1264
1256
  response: OctokitResponse<any>;
1265
1257
  };
1266
1258
  /**
1267
- * @see https://developer.github.com/v3/orgs/hooks/#list-hooks
1259
+ * @see https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks
1268
1260
  */
1269
1261
  "GET /orgs/:org/hooks": {
1270
- parameters: OrgsListHooksEndpoint;
1271
- request: OrgsListHooksRequestOptions;
1272
- response: OctokitResponse<OrgsListHooksResponseData>;
1262
+ parameters: OrgsListWebhooksEndpoint;
1263
+ request: OrgsListWebhooksRequestOptions;
1264
+ response: OctokitResponse<OrgsListWebhooksResponseData>;
1273
1265
  };
1274
1266
  /**
1275
- * @see https://developer.github.com/v3/orgs/hooks/#get-single-hook
1267
+ * @see https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook
1276
1268
  */
1277
1269
  "GET /orgs/:org/hooks/:hook_id": {
1278
- parameters: OrgsGetHookEndpoint;
1279
- request: OrgsGetHookRequestOptions;
1280
- response: OctokitResponse<OrgsGetHookResponseData>;
1270
+ parameters: OrgsGetWebhookEndpoint;
1271
+ request: OrgsGetWebhookRequestOptions;
1272
+ response: OctokitResponse<OrgsGetWebhookResponseData>;
1281
1273
  };
1282
1274
  /**
1283
1275
  * @see https://developer.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app
@@ -1288,12 +1280,12 @@ export interface Endpoints {
1288
1280
  response: OctokitResponse<AppsGetOrgInstallationResponseData>;
1289
1281
  };
1290
1282
  /**
1291
- * @see https://developer.github.com/v3/orgs/#list-installations-for-an-organization
1283
+ * @see https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization
1292
1284
  */
1293
1285
  "GET /orgs/:org/installations": {
1294
- parameters: OrgsListInstallationsEndpoint;
1295
- request: OrgsListInstallationsRequestOptions;
1296
- response: OctokitResponse<OrgsListInstallationsResponseData>;
1286
+ parameters: OrgsListAppInstallationsEndpoint;
1287
+ request: OrgsListAppInstallationsRequestOptions;
1288
+ response: OctokitResponse<OrgsListAppInstallationsResponseData>;
1297
1289
  };
1298
1290
  /**
1299
1291
  * @see https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization
@@ -1328,7 +1320,7 @@ export interface Endpoints {
1328
1320
  response: OctokitResponse<IssuesListForOrgResponseData>;
1329
1321
  };
1330
1322
  /**
1331
- * @see https://developer.github.com/v3/orgs/members/#members-list
1323
+ * @see https://developer.github.com/v3/orgs/members/#list-organization-members
1332
1324
  */
1333
1325
  "GET /orgs/:org/members": {
1334
1326
  parameters: OrgsListMembersEndpoint;
@@ -1336,20 +1328,20 @@ export interface Endpoints {
1336
1328
  response: OctokitResponse<OrgsListMembersResponseData>;
1337
1329
  };
1338
1330
  /**
1339
- * @see https://developer.github.com/v3/orgs/members/#check-membership
1331
+ * @see https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user
1340
1332
  */
1341
1333
  "GET /orgs/:org/members/:username": {
1342
- parameters: OrgsCheckMembershipEndpoint;
1343
- request: OrgsCheckMembershipRequestOptions;
1334
+ parameters: OrgsCheckMembershipForUserEndpoint;
1335
+ request: OrgsCheckMembershipForUserRequestOptions;
1344
1336
  response: OctokitResponse<any>;
1345
1337
  };
1346
1338
  /**
1347
- * @see https://developer.github.com/v3/orgs/members/#get-organization-membership
1339
+ * @see https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user
1348
1340
  */
1349
1341
  "GET /orgs/:org/memberships/:username": {
1350
- parameters: OrgsGetMembershipEndpoint;
1351
- request: OrgsGetMembershipRequestOptions;
1352
- response: OctokitResponse<OrgsGetMembershipResponseData>;
1342
+ parameters: OrgsGetMembershipForUserEndpoint;
1343
+ request: OrgsGetMembershipForUserRequestOptions;
1344
+ response: OctokitResponse<OrgsGetMembershipForUserResponseData>;
1353
1345
  };
1354
1346
  /**
1355
1347
  * @see https://developer.github.com/v3/migrations/orgs/#list-organization-migrations
@@ -1384,7 +1376,7 @@ export interface Endpoints {
1384
1376
  response: OctokitResponse<MigrationsListReposForOrgResponseData>;
1385
1377
  };
1386
1378
  /**
1387
- * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators
1379
+ * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization
1388
1380
  */
1389
1381
  "GET /orgs/:org/outside_collaborators": {
1390
1382
  parameters: OrgsListOutsideCollaboratorsEndpoint;
@@ -1400,7 +1392,7 @@ export interface Endpoints {
1400
1392
  response: OctokitResponse<ProjectsListForOrgResponseData>;
1401
1393
  };
1402
1394
  /**
1403
- * @see https://developer.github.com/v3/orgs/members/#public-members-list
1395
+ * @see https://developer.github.com/v3/orgs/members/#list-public-organization-members
1404
1396
  */
1405
1397
  "GET /orgs/:org/public_members": {
1406
1398
  parameters: OrgsListPublicMembersEndpoint;
@@ -1408,11 +1400,11 @@ export interface Endpoints {
1408
1400
  response: OctokitResponse<OrgsListPublicMembersResponseData>;
1409
1401
  };
1410
1402
  /**
1411
- * @see https://developer.github.com/v3/orgs/members/#check-public-membership
1403
+ * @see https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user
1412
1404
  */
1413
1405
  "GET /orgs/:org/public_members/:username": {
1414
- parameters: OrgsCheckPublicMembershipEndpoint;
1415
- request: OrgsCheckPublicMembershipRequestOptions;
1406
+ parameters: OrgsCheckPublicMembershipForUserEndpoint;
1407
+ request: OrgsCheckPublicMembershipForUserRequestOptions;
1416
1408
  response: OctokitResponse<any>;
1417
1409
  };
1418
1410
  /**
@@ -1576,7 +1568,7 @@ export interface Endpoints {
1576
1568
  response: OctokitResponse<ProjectsGetResponseData>;
1577
1569
  };
1578
1570
  /**
1579
- * @see https://developer.github.com/v3/projects/collaborators/#list-collaborators
1571
+ * @see https://developer.github.com/v3/projects/collaborators/#list-project-collaborators
1580
1572
  */
1581
1573
  "GET /projects/:project_id/collaborators": {
1582
1574
  parameters: ProjectsListCollaboratorsEndpoint;
@@ -1584,12 +1576,12 @@ export interface Endpoints {
1584
1576
  response: OctokitResponse<ProjectsListCollaboratorsResponseData>;
1585
1577
  };
1586
1578
  /**
1587
- * @see https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level
1579
+ * @see https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user
1588
1580
  */
1589
1581
  "GET /projects/:project_id/collaborators/:username/permission": {
1590
- parameters: ProjectsReviewUserPermissionLevelEndpoint;
1591
- request: ProjectsReviewUserPermissionLevelRequestOptions;
1592
- response: OctokitResponse<ProjectsReviewUserPermissionLevelResponseData>;
1582
+ parameters: ProjectsGetPermissionForUserEndpoint;
1583
+ request: ProjectsGetPermissionForUserRequestOptions;
1584
+ response: OctokitResponse<ProjectsGetPermissionForUserResponseData>;
1593
1585
  };
1594
1586
  /**
1595
1587
  * @see https://developer.github.com/v3/projects/columns/#list-project-columns
@@ -1640,11 +1632,11 @@ export interface Endpoints {
1640
1632
  response: OctokitResponse<ReposGetResponseData>;
1641
1633
  };
1642
1634
  /**
1643
- * @see https://developer.github.com/v3/repos/contents/#get-archive-link
1635
+ * @see https://developer.github.com/v3/repos/contents/#download-a-repository-archive
1644
1636
  */
1645
1637
  "GET /repos/:owner/:repo/:archive_format/:ref": {
1646
- parameters: ReposGetArchiveLinkEndpoint;
1647
- request: ReposGetArchiveLinkRequestOptions;
1638
+ parameters: ReposDownloadArchiveEndpoint;
1639
+ request: ReposDownloadArchiveRequestOptions;
1648
1640
  response: OctokitResponse<any>;
1649
1641
  };
1650
1642
  /**
@@ -1840,7 +1832,7 @@ export interface Endpoints {
1840
1832
  response: OctokitResponse<ReposListBranchesResponseData>;
1841
1833
  };
1842
1834
  /**
1843
- * @see https://developer.github.com/v3/repos/branches/#get-branch
1835
+ * @see https://developer.github.com/v3/repos/branches/#get-a-branch
1844
1836
  */
1845
1837
  "GET /repos/:owner/:repo/branches/:branch": {
1846
1838
  parameters: ReposGetBranchEndpoint;
@@ -1856,55 +1848,55 @@ export interface Endpoints {
1856
1848
  response: OctokitResponse<ReposGetBranchProtectionResponseData>;
1857
1849
  };
1858
1850
  /**
1859
- * @see https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch
1851
+ * @see https://developer.github.com/v3/repos/branches/#get-admin-branch-protection
1860
1852
  */
1861
1853
  "GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins": {
1862
- parameters: ReposGetProtectedBranchAdminEnforcementEndpoint;
1863
- request: ReposGetProtectedBranchAdminEnforcementRequestOptions;
1864
- response: OctokitResponse<ReposGetProtectedBranchAdminEnforcementResponseData>;
1854
+ parameters: ReposGetAdminBranchProtectionEndpoint;
1855
+ request: ReposGetAdminBranchProtectionRequestOptions;
1856
+ response: OctokitResponse<ReposGetAdminBranchProtectionResponseData>;
1865
1857
  };
1866
1858
  /**
1867
- * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch
1859
+ * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-protection
1868
1860
  */
1869
1861
  "GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": {
1870
- parameters: ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint;
1871
- request: ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions;
1872
- response: OctokitResponse<ReposGetProtectedBranchPullRequestReviewEnforcementResponseData>;
1862
+ parameters: ReposGetPullRequestReviewProtectionEndpoint;
1863
+ request: ReposGetPullRequestReviewProtectionRequestOptions;
1864
+ response: OctokitResponse<ReposGetPullRequestReviewProtectionResponseData>;
1873
1865
  };
1874
1866
  /**
1875
- * @see https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch
1867
+ * @see https://developer.github.com/v3/repos/branches/#get-commit-signature-protection
1876
1868
  */
1877
1869
  "GET /repos/:owner/:repo/branches/:branch/protection/required_signatures": {
1878
- parameters: ReposGetProtectedBranchRequiredSignaturesEndpoint;
1879
- request: ReposGetProtectedBranchRequiredSignaturesRequestOptions;
1880
- response: OctokitResponse<ReposGetProtectedBranchRequiredSignaturesResponseData>;
1870
+ parameters: ReposGetCommitSignatureProtectionEndpoint;
1871
+ request: ReposGetCommitSignatureProtectionRequestOptions;
1872
+ response: OctokitResponse<ReposGetCommitSignatureProtectionResponseData>;
1881
1873
  };
1882
1874
  /**
1883
- * @see https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch
1875
+ * @see https://developer.github.com/v3/repos/branches/#get-status-checks-protection
1884
1876
  */
1885
1877
  "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks": {
1886
- parameters: ReposGetProtectedBranchRequiredStatusChecksEndpoint;
1887
- request: ReposGetProtectedBranchRequiredStatusChecksRequestOptions;
1888
- response: OctokitResponse<ReposGetProtectedBranchRequiredStatusChecksResponseData>;
1878
+ parameters: ReposGetStatusChecksProtectionEndpoint;
1879
+ request: ReposGetStatusChecksProtectionRequestOptions;
1880
+ response: OctokitResponse<ReposGetStatusChecksProtectionResponseData>;
1889
1881
  };
1890
1882
  /**
1891
- * @see https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch
1883
+ * @see https://developer.github.com/v3/repos/branches/#get-all-status-check-contexts
1892
1884
  */
1893
1885
  "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": {
1894
- parameters: ReposListProtectedBranchRequiredStatusChecksContextsEndpoint;
1895
- request: ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions;
1896
- response: OctokitResponse<ReposListProtectedBranchRequiredStatusChecksContextsResponseData>;
1886
+ parameters: ReposGetAllStatusCheckContextsEndpoint;
1887
+ request: ReposGetAllStatusCheckContextsRequestOptions;
1888
+ response: OctokitResponse<ReposGetAllStatusCheckContextsResponseData>;
1897
1889
  };
1898
1890
  /**
1899
- * @see https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch
1891
+ * @see https://developer.github.com/v3/repos/branches/#get-access-restrictions
1900
1892
  */
1901
1893
  "GET /repos/:owner/:repo/branches/:branch/protection/restrictions": {
1902
- parameters: ReposGetProtectedBranchRestrictionsEndpoint;
1903
- request: ReposGetProtectedBranchRestrictionsRequestOptions;
1904
- response: OctokitResponse<ReposGetProtectedBranchRestrictionsResponseData>;
1894
+ parameters: ReposGetAccessRestrictionsEndpoint;
1895
+ request: ReposGetAccessRestrictionsRequestOptions;
1896
+ response: OctokitResponse<ReposGetAccessRestrictionsResponseData>;
1905
1897
  };
1906
1898
  /**
1907
- * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch
1899
+ * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-the-protected-branch
1908
1900
  */
1909
1901
  "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": {
1910
1902
  parameters: ReposGetAppsWithAccessToProtectedBranchEndpoint;
@@ -1912,7 +1904,7 @@ export interface Endpoints {
1912
1904
  response: OctokitResponse<ReposGetAppsWithAccessToProtectedBranchResponseData>;
1913
1905
  };
1914
1906
  /**
1915
- * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-protected-branch
1907
+ * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-the-protected-branch
1916
1908
  */
1917
1909
  "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": {
1918
1910
  parameters: ReposGetTeamsWithAccessToProtectedBranchEndpoint;
@@ -1920,7 +1912,7 @@ export interface Endpoints {
1920
1912
  response: OctokitResponse<ReposGetTeamsWithAccessToProtectedBranchResponseData>;
1921
1913
  };
1922
1914
  /**
1923
- * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-protected-branch
1915
+ * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-the-protected-branch
1924
1916
  */
1925
1917
  "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users": {
1926
1918
  parameters: ReposGetUsersWithAccessToProtectedBranchEndpoint;
@@ -1976,7 +1968,7 @@ export interface Endpoints {
1976
1968
  response: OctokitResponse<CodeScanningGetAlertResponseData>;
1977
1969
  };
1978
1970
  /**
1979
- * @see https://developer.github.com/v3/repos/collaborators/#list-collaborators
1971
+ * @see https://developer.github.com/v3/repos/collaborators/#list-repository-collaborators
1980
1972
  */
1981
1973
  "GET /repos/:owner/:repo/collaborators": {
1982
1974
  parameters: ReposListCollaboratorsEndpoint;
@@ -1984,7 +1976,7 @@ export interface Endpoints {
1984
1976
  response: OctokitResponse<ReposListCollaboratorsResponseData>;
1985
1977
  };
1986
1978
  /**
1987
- * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
1979
+ * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-repository-collaborator
1988
1980
  */
1989
1981
  "GET /repos/:owner/:repo/collaborators/:username": {
1990
1982
  parameters: ReposCheckCollaboratorEndpoint;
@@ -1992,7 +1984,7 @@ export interface Endpoints {
1992
1984
  response: OctokitResponse<any>;
1993
1985
  };
1994
1986
  /**
1995
- * @see https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
1987
+ * @see https://developer.github.com/v3/repos/collaborators/#get-repository-permissions-for-a-user
1996
1988
  */
1997
1989
  "GET /repos/:owner/:repo/collaborators/:username/permission": {
1998
1990
  parameters: ReposGetCollaboratorPermissionLevelEndpoint;
@@ -2003,12 +1995,12 @@ export interface Endpoints {
2003
1995
  * @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository
2004
1996
  */
2005
1997
  "GET /repos/:owner/:repo/comments": {
2006
- parameters: ReposListCommitCommentsEndpoint;
2007
- request: ReposListCommitCommentsRequestOptions;
2008
- response: OctokitResponse<ReposListCommitCommentsResponseData>;
1998
+ parameters: ReposListCommitCommentsForRepoEndpoint;
1999
+ request: ReposListCommitCommentsForRepoRequestOptions;
2000
+ response: OctokitResponse<ReposListCommitCommentsForRepoResponseData>;
2009
2001
  };
2010
2002
  /**
2011
- * @see https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
2003
+ * @see https://developer.github.com/v3/repos/comments/#get-a-commit-comment
2012
2004
  */
2013
2005
  "GET /repos/:owner/:repo/comments/:comment_id": {
2014
2006
  parameters: ReposGetCommitCommentEndpoint;
@@ -2024,7 +2016,7 @@ export interface Endpoints {
2024
2016
  response: OctokitResponse<ReactionsListForCommitCommentResponseData>;
2025
2017
  };
2026
2018
  /**
2027
- * @see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
2019
+ * @see https://developer.github.com/v3/repos/commits/#list-commits
2028
2020
  */
2029
2021
  "GET /repos/:owner/:repo/commits": {
2030
2022
  parameters: ReposListCommitsEndpoint;
@@ -2040,7 +2032,7 @@ export interface Endpoints {
2040
2032
  response: OctokitResponse<ReposListBranchesForHeadCommitResponseData>;
2041
2033
  };
2042
2034
  /**
2043
- * @see https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit
2035
+ * @see https://developer.github.com/v3/repos/comments/#list-commit-comments
2044
2036
  */
2045
2037
  "GET /repos/:owner/:repo/commits/:commit_sha/comments": {
2046
2038
  parameters: ReposListCommentsForCommitEndpoint;
@@ -2048,7 +2040,7 @@ export interface Endpoints {
2048
2040
  response: OctokitResponse<ReposListCommentsForCommitResponseData>;
2049
2041
  };
2050
2042
  /**
2051
- * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit
2043
+ * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-a-commit
2052
2044
  */
2053
2045
  "GET /repos/:owner/:repo/commits/:commit_sha/pulls": {
2054
2046
  parameters: ReposListPullRequestsAssociatedWithCommitEndpoint;
@@ -2056,7 +2048,7 @@ export interface Endpoints {
2056
2048
  response: OctokitResponse<ReposListPullRequestsAssociatedWithCommitResponseData>;
2057
2049
  };
2058
2050
  /**
2059
- * @see https://developer.github.com/v3/repos/commits/#get-a-single-commit
2051
+ * @see https://developer.github.com/v3/repos/commits/#get-a-commit
2060
2052
  */
2061
2053
  "GET /repos/:owner/:repo/commits/:ref": {
2062
2054
  parameters: ReposGetCommitEndpoint;
@@ -2080,7 +2072,7 @@ export interface Endpoints {
2080
2072
  response: OctokitResponse<ChecksListSuitesForRefResponseData>;
2081
2073
  };
2082
2074
  /**
2083
- * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
2075
+ * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-reference
2084
2076
  */
2085
2077
  "GET /repos/:owner/:repo/commits/:ref/status": {
2086
2078
  parameters: ReposGetCombinedStatusForRefEndpoint;
@@ -2088,12 +2080,12 @@ export interface Endpoints {
2088
2080
  response: OctokitResponse<ReposGetCombinedStatusForRefResponseData>;
2089
2081
  };
2090
2082
  /**
2091
- * @see https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
2083
+ * @see https://developer.github.com/v3/repos/statuses/#list-commit-statuses-for-a-reference
2092
2084
  */
2093
2085
  "GET /repos/:owner/:repo/commits/:ref/statuses": {
2094
- parameters: ReposListStatusesForRefEndpoint;
2095
- request: ReposListStatusesForRefRequestOptions;
2096
- response: OctokitResponse<ReposListStatusesForRefResponseData>;
2086
+ parameters: ReposListCommitStatusesForRefEndpoint;
2087
+ request: ReposListCommitStatusesForRefRequestOptions;
2088
+ response: OctokitResponse<ReposListCommitStatusesForRefResponseData>;
2097
2089
  };
2098
2090
  /**
2099
2091
  * @see https://developer.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository
@@ -2104,12 +2096,12 @@ export interface Endpoints {
2104
2096
  response: OctokitResponse<CodesOfConductGetForRepoResponseData>;
2105
2097
  };
2106
2098
  /**
2107
- * @see https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics
2099
+ * @see https://developer.github.com/v3/repos/community/#get-community-profile-metrics
2108
2100
  */
2109
2101
  "GET /repos/:owner/:repo/community/profile": {
2110
- parameters: ReposRetrieveCommunityProfileMetricsEndpoint;
2111
- request: ReposRetrieveCommunityProfileMetricsRequestOptions;
2112
- response: OctokitResponse<ReposRetrieveCommunityProfileMetricsResponseData>;
2102
+ parameters: ReposGetCommunityProfileMetricsEndpoint;
2103
+ request: ReposGetCommunityProfileMetricsRequestOptions;
2104
+ response: OctokitResponse<ReposGetCommunityProfileMetricsResponseData>;
2113
2105
  };
2114
2106
  /**
2115
2107
  * @see https://developer.github.com/v3/repos/commits/#compare-two-commits
@@ -2120,15 +2112,15 @@ export interface Endpoints {
2120
2112
  response: OctokitResponse<ReposCompareCommitsResponseData>;
2121
2113
  };
2122
2114
  /**
2123
- * @see https://developer.github.com/v3/repos/contents/#get-contents
2115
+ * @see https://developer.github.com/v3/repos/contents/#get-repository-content
2124
2116
  */
2125
2117
  "GET /repos/:owner/:repo/contents/:path": {
2126
- parameters: ReposGetContentsEndpoint;
2127
- request: ReposGetContentsRequestOptions;
2128
- response: OctokitResponse<ReposGetContentsResponseData>;
2118
+ parameters: ReposGetContentEndpoint;
2119
+ request: ReposGetContentRequestOptions;
2120
+ response: OctokitResponse<ReposGetContentResponseData>;
2129
2121
  };
2130
2122
  /**
2131
- * @see https://developer.github.com/v3/repos/#list-contributors
2123
+ * @see https://developer.github.com/v3/repos/#list-repository-contributors
2132
2124
  */
2133
2125
  "GET /repos/:owner/:repo/contributors": {
2134
2126
  parameters: ReposListContributorsEndpoint;
@@ -2144,7 +2136,7 @@ export interface Endpoints {
2144
2136
  response: OctokitResponse<ReposListDeploymentsResponseData>;
2145
2137
  };
2146
2138
  /**
2147
- * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment
2139
+ * @see https://developer.github.com/v3/repos/deployments/#get-a-deployment
2148
2140
  */
2149
2141
  "GET /repos/:owner/:repo/deployments/:deployment_id": {
2150
2142
  parameters: ReposGetDeploymentEndpoint;
@@ -2160,29 +2152,13 @@ export interface Endpoints {
2160
2152
  response: OctokitResponse<ReposListDeploymentStatusesResponseData>;
2161
2153
  };
2162
2154
  /**
2163
- * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status
2155
+ * @see https://developer.github.com/v3/repos/deployments/#get-a-deployment-status
2164
2156
  */
2165
2157
  "GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id": {
2166
2158
  parameters: ReposGetDeploymentStatusEndpoint;
2167
2159
  request: ReposGetDeploymentStatusRequestOptions;
2168
2160
  response: OctokitResponse<ReposGetDeploymentStatusResponseData>;
2169
2161
  };
2170
- /**
2171
- * @see https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository
2172
- */
2173
- "GET /repos/:owner/:repo/downloads": {
2174
- parameters: ReposListDownloadsEndpoint;
2175
- request: ReposListDownloadsRequestOptions;
2176
- response: OctokitResponse<ReposListDownloadsResponseData>;
2177
- };
2178
- /**
2179
- * @see https://developer.github.com/v3/repos/downloads/#get-a-single-download
2180
- */
2181
- "GET /repos/:owner/:repo/downloads/:download_id": {
2182
- parameters: ReposGetDownloadEndpoint;
2183
- request: ReposGetDownloadRequestOptions;
2184
- response: OctokitResponse<ReposGetDownloadResponseData>;
2185
- };
2186
2162
  /**
2187
2163
  * @see https://developer.github.com/v3/activity/events/#list-repository-events
2188
2164
  */
@@ -2248,20 +2224,20 @@ export interface Endpoints {
2248
2224
  response: OctokitResponse<GitGetTreeResponseData>;
2249
2225
  };
2250
2226
  /**
2251
- * @see https://developer.github.com/v3/repos/hooks/#list-hooks
2227
+ * @see https://developer.github.com/v3/repos/hooks/#list-repository-webhooks
2252
2228
  */
2253
2229
  "GET /repos/:owner/:repo/hooks": {
2254
- parameters: ReposListHooksEndpoint;
2255
- request: ReposListHooksRequestOptions;
2256
- response: OctokitResponse<ReposListHooksResponseData>;
2230
+ parameters: ReposListWebhooksEndpoint;
2231
+ request: ReposListWebhooksRequestOptions;
2232
+ response: OctokitResponse<ReposListWebhooksResponseData>;
2257
2233
  };
2258
2234
  /**
2259
- * @see https://developer.github.com/v3/repos/hooks/#get-single-hook
2235
+ * @see https://developer.github.com/v3/repos/hooks/#get-a-repository-webhook
2260
2236
  */
2261
2237
  "GET /repos/:owner/:repo/hooks/:hook_id": {
2262
- parameters: ReposGetHookEndpoint;
2263
- request: ReposGetHookRequestOptions;
2264
- response: OctokitResponse<ReposGetHookResponseData>;
2238
+ parameters: ReposGetWebhookEndpoint;
2239
+ request: ReposGetWebhookRequestOptions;
2240
+ response: OctokitResponse<ReposGetWebhookResponseData>;
2265
2241
  };
2266
2242
  /**
2267
2243
  * @see https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
@@ -2304,7 +2280,7 @@ export interface Endpoints {
2304
2280
  response: OctokitResponse<InteractionsGetRestrictionsForRepoResponseData>;
2305
2281
  };
2306
2282
  /**
2307
- * @see https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository
2283
+ * @see https://developer.github.com/v3/repos/invitations/#list-repository-invitations
2308
2284
  */
2309
2285
  "GET /repos/:owner/:repo/invitations": {
2310
2286
  parameters: ReposListInvitationsEndpoint;
@@ -2440,7 +2416,7 @@ export interface Endpoints {
2440
2416
  response: OctokitResponse<IssuesGetLabelResponseData>;
2441
2417
  };
2442
2418
  /**
2443
- * @see https://developer.github.com/v3/repos/#list-languages
2419
+ * @see https://developer.github.com/v3/repos/#list-repository-languages
2444
2420
  */
2445
2421
  "GET /repos/:owner/:repo/languages": {
2446
2422
  parameters: ReposListLanguagesEndpoint;
@@ -2488,7 +2464,7 @@ export interface Endpoints {
2488
2464
  response: OctokitResponse<ActivityListRepoNotificationsForAuthenticatedUserResponseData>;
2489
2465
  };
2490
2466
  /**
2491
- * @see https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site
2467
+ * @see https://developer.github.com/v3/repos/pages/#get-a-github-pages-site
2492
2468
  */
2493
2469
  "GET /repos/:owner/:repo/pages": {
2494
2470
  parameters: ReposGetPagesEndpoint;
@@ -2496,7 +2472,7 @@ export interface Endpoints {
2496
2472
  response: OctokitResponse<ReposGetPagesResponseData>;
2497
2473
  };
2498
2474
  /**
2499
- * @see https://developer.github.com/v3/repos/pages/#list-pages-builds
2475
+ * @see https://developer.github.com/v3/repos/pages/#list-github-pages-builds
2500
2476
  */
2501
2477
  "GET /repos/:owner/:repo/pages/builds": {
2502
2478
  parameters: ReposListPagesBuildsEndpoint;
@@ -2504,7 +2480,7 @@ export interface Endpoints {
2504
2480
  response: OctokitResponse<ReposListPagesBuildsResponseData>;
2505
2481
  };
2506
2482
  /**
2507
- * @see https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build
2483
+ * @see https://developer.github.com/v3/repos/pages/#get-github-pages-build
2508
2484
  */
2509
2485
  "GET /repos/:owner/:repo/pages/builds/:build_id": {
2510
2486
  parameters: ReposGetPagesBuildEndpoint;
@@ -2536,7 +2512,7 @@ export interface Endpoints {
2536
2512
  response: OctokitResponse<PullsListResponseData>;
2537
2513
  };
2538
2514
  /**
2539
- * @see https://developer.github.com/v3/pulls/#get-a-single-pull-request
2515
+ * @see https://developer.github.com/v3/pulls/#get-a-pull-request
2540
2516
  */
2541
2517
  "GET /repos/:owner/:repo/pulls/:pull_number": {
2542
2518
  parameters: PullsGetEndpoint;
@@ -2544,12 +2520,12 @@ export interface Endpoints {
2544
2520
  response: OctokitResponse<PullsGetResponseData>;
2545
2521
  };
2546
2522
  /**
2547
- * @see https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
2523
+ * @see https://developer.github.com/v3/pulls/comments/#list-review-comments-on-a-pull-request
2548
2524
  */
2549
2525
  "GET /repos/:owner/:repo/pulls/:pull_number/comments": {
2550
- parameters: PullsListCommentsEndpoint;
2551
- request: PullsListCommentsRequestOptions;
2552
- response: OctokitResponse<PullsListCommentsResponseData>;
2526
+ parameters: PullsListReviewCommentsEndpoint;
2527
+ request: PullsListReviewCommentsRequestOptions;
2528
+ response: OctokitResponse<PullsListReviewCommentsResponseData>;
2553
2529
  };
2554
2530
  /**
2555
2531
  * @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request
@@ -2568,7 +2544,7 @@ export interface Endpoints {
2568
2544
  response: OctokitResponse<PullsListFilesResponseData>;
2569
2545
  };
2570
2546
  /**
2571
- * @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged
2547
+ * @see https://developer.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged
2572
2548
  */
2573
2549
  "GET /repos/:owner/:repo/pulls/:pull_number/merge": {
2574
2550
  parameters: PullsCheckIfMergedEndpoint;
@@ -2576,15 +2552,15 @@ export interface Endpoints {
2576
2552
  response: OctokitResponse<any>;
2577
2553
  };
2578
2554
  /**
2579
- * @see https://developer.github.com/v3/pulls/review_requests/#list-review-requests
2555
+ * @see https://developer.github.com/v3/pulls/review_requests/#list-requested-reviewers-for-a-pull-request
2580
2556
  */
2581
2557
  "GET /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": {
2582
- parameters: PullsListReviewRequestsEndpoint;
2583
- request: PullsListReviewRequestsRequestOptions;
2584
- response: OctokitResponse<PullsListReviewRequestsResponseData>;
2558
+ parameters: PullsListRequestedReviewersEndpoint;
2559
+ request: PullsListRequestedReviewersRequestOptions;
2560
+ response: OctokitResponse<PullsListRequestedReviewersResponseData>;
2585
2561
  };
2586
2562
  /**
2587
- * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
2563
+ * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-for-a-pull-request
2588
2564
  */
2589
2565
  "GET /repos/:owner/:repo/pulls/:pull_number/reviews": {
2590
2566
  parameters: PullsListReviewsEndpoint;
@@ -2592,7 +2568,7 @@ export interface Endpoints {
2592
2568
  response: OctokitResponse<PullsListReviewsResponseData>;
2593
2569
  };
2594
2570
  /**
2595
- * @see https://developer.github.com/v3/pulls/reviews/#get-a-single-review
2571
+ * @see https://developer.github.com/v3/pulls/reviews/#get-a-review-for-a-pull-request
2596
2572
  */
2597
2573
  "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": {
2598
2574
  parameters: PullsGetReviewEndpoint;
@@ -2600,28 +2576,28 @@ export interface Endpoints {
2600
2576
  response: OctokitResponse<PullsGetReviewResponseData>;
2601
2577
  };
2602
2578
  /**
2603
- * @see https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review
2579
+ * @see https://developer.github.com/v3/pulls/reviews/#list-comments-for-a-pull-request-review
2604
2580
  */
2605
2581
  "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments": {
2606
- parameters: PullsGetCommentsForReviewEndpoint;
2607
- request: PullsGetCommentsForReviewRequestOptions;
2608
- response: OctokitResponse<PullsGetCommentsForReviewResponseData>;
2582
+ parameters: PullsListCommentsForReviewEndpoint;
2583
+ request: PullsListCommentsForReviewRequestOptions;
2584
+ response: OctokitResponse<PullsListCommentsForReviewResponseData>;
2609
2585
  };
2610
2586
  /**
2611
- * @see https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository
2587
+ * @see https://developer.github.com/v3/pulls/comments/#list-review-comments-in-a-repository
2612
2588
  */
2613
2589
  "GET /repos/:owner/:repo/pulls/comments": {
2614
- parameters: PullsListCommentsForRepoEndpoint;
2615
- request: PullsListCommentsForRepoRequestOptions;
2616
- response: OctokitResponse<PullsListCommentsForRepoResponseData>;
2590
+ parameters: PullsListReviewCommentsForRepoEndpoint;
2591
+ request: PullsListReviewCommentsForRepoRequestOptions;
2592
+ response: OctokitResponse<PullsListReviewCommentsForRepoResponseData>;
2617
2593
  };
2618
2594
  /**
2619
- * @see https://developer.github.com/v3/pulls/comments/#get-a-single-comment
2595
+ * @see https://developer.github.com/v3/pulls/comments/#get-a-review-comment-for-a-pull-request
2620
2596
  */
2621
2597
  "GET /repos/:owner/:repo/pulls/comments/:comment_id": {
2622
- parameters: PullsGetCommentEndpoint;
2623
- request: PullsGetCommentRequestOptions;
2624
- response: OctokitResponse<PullsGetCommentResponseData>;
2598
+ parameters: PullsGetReviewCommentEndpoint;
2599
+ request: PullsGetReviewCommentRequestOptions;
2600
+ response: OctokitResponse<PullsGetReviewCommentResponseData>;
2625
2601
  };
2626
2602
  /**
2627
2603
  * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
@@ -2632,7 +2608,7 @@ export interface Endpoints {
2632
2608
  response: OctokitResponse<ReactionsListForPullRequestReviewCommentResponseData>;
2633
2609
  };
2634
2610
  /**
2635
- * @see https://developer.github.com/v3/repos/contents/#get-the-readme
2611
+ * @see https://developer.github.com/v3/repos/contents/#get-a-repository-readme
2636
2612
  */
2637
2613
  "GET /repos/:owner/:repo/readme": {
2638
2614
  parameters: ReposGetReadmeEndpoint;
@@ -2640,7 +2616,7 @@ export interface Endpoints {
2640
2616
  response: OctokitResponse<ReposGetReadmeResponseData>;
2641
2617
  };
2642
2618
  /**
2643
- * @see https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository
2619
+ * @see https://developer.github.com/v3/repos/releases/#list-releases
2644
2620
  */
2645
2621
  "GET /repos/:owner/:repo/releases": {
2646
2622
  parameters: ReposListReleasesEndpoint;
@@ -2648,7 +2624,7 @@ export interface Endpoints {
2648
2624
  response: OctokitResponse<ReposListReleasesResponseData>;
2649
2625
  };
2650
2626
  /**
2651
- * @see https://developer.github.com/v3/repos/releases/#get-a-single-release
2627
+ * @see https://developer.github.com/v3/repos/releases/#get-a-release
2652
2628
  */
2653
2629
  "GET /repos/:owner/:repo/releases/:release_id": {
2654
2630
  parameters: ReposGetReleaseEndpoint;
@@ -2656,15 +2632,15 @@ export interface Endpoints {
2656
2632
  response: OctokitResponse<ReposGetReleaseResponseData>;
2657
2633
  };
2658
2634
  /**
2659
- * @see https://developer.github.com/v3/repos/releases/#list-assets-for-a-release
2635
+ * @see https://developer.github.com/v3/repos/releases/#list-release-assets
2660
2636
  */
2661
2637
  "GET /repos/:owner/:repo/releases/:release_id/assets": {
2662
- parameters: ReposListAssetsForReleaseEndpoint;
2663
- request: ReposListAssetsForReleaseRequestOptions;
2664
- response: OctokitResponse<ReposListAssetsForReleaseResponseData>;
2638
+ parameters: ReposListReleaseAssetsEndpoint;
2639
+ request: ReposListReleaseAssetsRequestOptions;
2640
+ response: OctokitResponse<ReposListReleaseAssetsResponseData>;
2665
2641
  };
2666
2642
  /**
2667
- * @see https://developer.github.com/v3/repos/releases/#get-a-single-release-asset
2643
+ * @see https://developer.github.com/v3/repos/releases/#get-a-release-asset
2668
2644
  */
2669
2645
  "GET /repos/:owner/:repo/releases/assets/:asset_id": {
2670
2646
  parameters: ReposGetReleaseAssetEndpoint;
@@ -2696,7 +2672,7 @@ export interface Endpoints {
2696
2672
  response: OctokitResponse<ActivityListStargazersForRepoResponseData | ActivityListStargazersForRepoResponse200Data>;
2697
2673
  };
2698
2674
  /**
2699
- * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week
2675
+ * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-activity
2700
2676
  */
2701
2677
  "GET /repos/:owner/:repo/stats/code_frequency": {
2702
2678
  parameters: ReposGetCodeFrequencyStatsEndpoint;
@@ -2704,7 +2680,7 @@ export interface Endpoints {
2704
2680
  response: OctokitResponse<ReposGetCodeFrequencyStatsResponseData>;
2705
2681
  };
2706
2682
  /**
2707
- * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
2683
+ * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity
2708
2684
  */
2709
2685
  "GET /repos/:owner/:repo/stats/commit_activity": {
2710
2686
  parameters: ReposGetCommitActivityStatsEndpoint;
@@ -2712,7 +2688,7 @@ export interface Endpoints {
2712
2688
  response: OctokitResponse<ReposGetCommitActivityStatsResponseData>;
2713
2689
  };
2714
2690
  /**
2715
- * @see https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts
2691
+ * @see https://developer.github.com/v3/repos/statistics/#get-all-contributor-commit-activity
2716
2692
  */
2717
2693
  "GET /repos/:owner/:repo/stats/contributors": {
2718
2694
  parameters: ReposGetContributorsStatsEndpoint;
@@ -2720,7 +2696,7 @@ export interface Endpoints {
2720
2696
  response: OctokitResponse<ReposGetContributorsStatsResponseData>;
2721
2697
  };
2722
2698
  /**
2723
- * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else
2699
+ * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count
2724
2700
  */
2725
2701
  "GET /repos/:owner/:repo/stats/participation": {
2726
2702
  parameters: ReposGetParticipationStatsEndpoint;
@@ -2728,7 +2704,7 @@ export interface Endpoints {
2728
2704
  response: OctokitResponse<ReposGetParticipationStatsResponseData>;
2729
2705
  };
2730
2706
  /**
2731
- * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day
2707
+ * @see https://developer.github.com/v3/repos/statistics/#get-the-hourly-commit-count-for-each-day
2732
2708
  */
2733
2709
  "GET /repos/:owner/:repo/stats/punch_card": {
2734
2710
  parameters: ReposGetPunchCardStatsEndpoint;
@@ -2752,7 +2728,7 @@ export interface Endpoints {
2752
2728
  response: OctokitResponse<ActivityGetRepoSubscriptionResponseData>;
2753
2729
  };
2754
2730
  /**
2755
- * @see https://developer.github.com/v3/repos/#list-tags
2731
+ * @see https://developer.github.com/v3/repos/#list-repository-tags
2756
2732
  */
2757
2733
  "GET /repos/:owner/:repo/tags": {
2758
2734
  parameters: ReposListTagsEndpoint;
@@ -2760,7 +2736,7 @@ export interface Endpoints {
2760
2736
  response: OctokitResponse<ReposListTagsResponseData>;
2761
2737
  };
2762
2738
  /**
2763
- * @see https://developer.github.com/v3/repos/#list-teams
2739
+ * @see https://developer.github.com/v3/repos/#list-repository-teams
2764
2740
  */
2765
2741
  "GET /repos/:owner/:repo/teams": {
2766
2742
  parameters: ReposListTeamsEndpoint;
@@ -2776,7 +2752,7 @@ export interface Endpoints {
2776
2752
  response: OctokitResponse<ReposGetAllTopicsResponseData>;
2777
2753
  };
2778
2754
  /**
2779
- * @see https://developer.github.com/v3/repos/traffic/#clones
2755
+ * @see https://developer.github.com/v3/repos/traffic/#get-repository-clones
2780
2756
  */
2781
2757
  "GET /repos/:owner/:repo/traffic/clones": {
2782
2758
  parameters: ReposGetClonesEndpoint;
@@ -2784,7 +2760,7 @@ export interface Endpoints {
2784
2760
  response: OctokitResponse<ReposGetClonesResponseData>;
2785
2761
  };
2786
2762
  /**
2787
- * @see https://developer.github.com/v3/repos/traffic/#list-paths
2763
+ * @see https://developer.github.com/v3/repos/traffic/#get-top-referral-paths
2788
2764
  */
2789
2765
  "GET /repos/:owner/:repo/traffic/popular/paths": {
2790
2766
  parameters: ReposGetTopPathsEndpoint;
@@ -2792,7 +2768,7 @@ export interface Endpoints {
2792
2768
  response: OctokitResponse<ReposGetTopPathsResponseData>;
2793
2769
  };
2794
2770
  /**
2795
- * @see https://developer.github.com/v3/repos/traffic/#list-referrers
2771
+ * @see https://developer.github.com/v3/repos/traffic/#get-top-referral-sources
2796
2772
  */
2797
2773
  "GET /repos/:owner/:repo/traffic/popular/referrers": {
2798
2774
  parameters: ReposGetTopReferrersEndpoint;
@@ -2800,7 +2776,7 @@ export interface Endpoints {
2800
2776
  response: OctokitResponse<ReposGetTopReferrersResponseData>;
2801
2777
  };
2802
2778
  /**
2803
- * @see https://developer.github.com/v3/repos/traffic/#views
2779
+ * @see https://developer.github.com/v3/repos/traffic/#get-page-views
2804
2780
  */
2805
2781
  "GET /repos/:owner/:repo/traffic/views": {
2806
2782
  parameters: ReposGetViewsEndpoint;
@@ -2824,7 +2800,7 @@ export interface Endpoints {
2824
2800
  response: OctokitResponse<ReposListPublicResponseData>;
2825
2801
  };
2826
2802
  /**
2827
- * @see https://developer.github.com/v3/scim/#get-a-list-of-provisioned-identities
2803
+ * @see https://developer.github.com/v3/scim/#list-scim-provisioned-identities
2828
2804
  */
2829
2805
  "GET /scim/v2/organizations/:org/Users": {
2830
2806
  parameters: ScimListProvisionedIdentitiesEndpoint;
@@ -2832,12 +2808,12 @@ export interface Endpoints {
2832
2808
  response: OctokitResponse<ScimListProvisionedIdentitiesResponseData>;
2833
2809
  };
2834
2810
  /**
2835
- * @see https://developer.github.com/v3/scim/#get-provisioning-details-for-a-single-user
2811
+ * @see https://developer.github.com/v3/scim/#get-scim-provisioning-information-for-a-user
2836
2812
  */
2837
2813
  "GET /scim/v2/organizations/:org/Users/:scim_user_id": {
2838
- parameters: ScimGetProvisioningDetailsForUserEndpoint;
2839
- request: ScimGetProvisioningDetailsForUserRequestOptions;
2840
- response: OctokitResponse<ScimGetProvisioningDetailsForUserResponseData>;
2814
+ parameters: ScimGetProvisioningInformationForUserEndpoint;
2815
+ request: ScimGetProvisioningInformationForUserRequestOptions;
2816
+ response: OctokitResponse<ScimGetProvisioningInformationForUserResponseData>;
2841
2817
  };
2842
2818
  /**
2843
2819
  * @see https://developer.github.com/v3/search/#search-code
@@ -3048,15 +3024,15 @@ export interface Endpoints {
3048
3024
  response: OctokitResponse<MigrationsListReposForUserResponseData>;
3049
3025
  };
3050
3026
  /**
3051
- * @see https://developer.github.com/v3/users/blocking/#list-blocked-users
3027
+ * @see https://developer.github.com/v3/users/blocking/#list-users-blocked-by-the-authenticated-user
3052
3028
  */
3053
3029
  "GET /user/blocks": {
3054
- parameters: UsersListBlockedEndpoint;
3055
- request: UsersListBlockedRequestOptions;
3056
- response: OctokitResponse<UsersListBlockedResponseData>;
3030
+ parameters: UsersListBlockedByAuthenticatedEndpoint;
3031
+ request: UsersListBlockedByAuthenticatedRequestOptions;
3032
+ response: OctokitResponse<UsersListBlockedByAuthenticatedResponseData>;
3057
3033
  };
3058
3034
  /**
3059
- * @see https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user
3035
+ * @see https://developer.github.com/v3/users/blocking/#check-if-a-user-is-blocked-by-the-authenticated-user
3060
3036
  */
3061
3037
  "GET /user/blocks/:username": {
3062
3038
  parameters: UsersCheckBlockedEndpoint;
@@ -3064,12 +3040,12 @@ export interface Endpoints {
3064
3040
  response: OctokitResponse<any>;
3065
3041
  };
3066
3042
  /**
3067
- * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
3043
+ * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-the-authenticated-user
3068
3044
  */
3069
3045
  "GET /user/emails": {
3070
- parameters: UsersListEmailsEndpoint;
3071
- request: UsersListEmailsRequestOptions;
3072
- response: OctokitResponse<UsersListEmailsResponseData>;
3046
+ parameters: UsersListEmailsForAuthenticatedEndpoint;
3047
+ request: UsersListEmailsForAuthenticatedRequestOptions;
3048
+ response: OctokitResponse<UsersListEmailsForAuthenticatedResponseData>;
3073
3049
  };
3074
3050
  /**
3075
3051
  * @see https://developer.github.com/v3/users/followers/#list-followers-of-the-authenticated-user
@@ -3080,7 +3056,7 @@ export interface Endpoints {
3080
3056
  response: OctokitResponse<UsersListFollowersForAuthenticatedUserResponseData>;
3081
3057
  };
3082
3058
  /**
3083
- * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user
3059
+ * @see https://developer.github.com/v3/users/followers/#list-the-people-the-authenticated-user-follows
3084
3060
  */
3085
3061
  "GET /user/following": {
3086
3062
  parameters: UsersListFollowedByAuthenticatedEndpoint;
@@ -3088,28 +3064,28 @@ export interface Endpoints {
3088
3064
  response: OctokitResponse<UsersListFollowedByAuthenticatedResponseData>;
3089
3065
  };
3090
3066
  /**
3091
- * @see https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user
3067
+ * @see https://developer.github.com/v3/users/followers/#check-if-a-person-is-followed-by-the-authenticated-user
3092
3068
  */
3093
3069
  "GET /user/following/:username": {
3094
- parameters: UsersCheckFollowingEndpoint;
3095
- request: UsersCheckFollowingRequestOptions;
3070
+ parameters: UsersCheckPersonIsFollowedByAuthenticatedEndpoint;
3071
+ request: UsersCheckPersonIsFollowedByAuthenticatedRequestOptions;
3096
3072
  response: OctokitResponse<any>;
3097
3073
  };
3098
3074
  /**
3099
- * @see https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys
3075
+ * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-the-authenticated-user
3100
3076
  */
3101
3077
  "GET /user/gpg_keys": {
3102
- parameters: UsersListGpgKeysEndpoint;
3103
- request: UsersListGpgKeysRequestOptions;
3104
- response: OctokitResponse<UsersListGpgKeysResponseData>;
3078
+ parameters: UsersListGpgKeysForAuthenticatedEndpoint;
3079
+ request: UsersListGpgKeysForAuthenticatedRequestOptions;
3080
+ response: OctokitResponse<UsersListGpgKeysForAuthenticatedResponseData>;
3105
3081
  };
3106
3082
  /**
3107
- * @see https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key
3083
+ * @see https://developer.github.com/v3/users/gpg_keys/#get-a-gpg-key-for-the-authenticated-user
3108
3084
  */
3109
3085
  "GET /user/gpg_keys/:gpg_key_id": {
3110
- parameters: UsersGetGpgKeyEndpoint;
3111
- request: UsersGetGpgKeyRequestOptions;
3112
- response: OctokitResponse<UsersGetGpgKeyResponseData>;
3086
+ parameters: UsersGetGpgKeyForAuthenticatedEndpoint;
3087
+ request: UsersGetGpgKeyForAuthenticatedRequestOptions;
3088
+ response: OctokitResponse<UsersGetGpgKeyForAuthenticatedResponseData>;
3113
3089
  };
3114
3090
  /**
3115
3091
  * @see https://developer.github.com/v3/apps/installations/#list-app-installations-accessible-to-the-user-access-token
@@ -3136,20 +3112,20 @@ export interface Endpoints {
3136
3112
  response: OctokitResponse<IssuesListForAuthenticatedUserResponseData>;
3137
3113
  };
3138
3114
  /**
3139
- * @see https://developer.github.com/v3/users/keys/#list-your-public-keys
3115
+ * @see https://developer.github.com/v3/users/keys/#list-public-ssh-keys-for-the-authenticated-user
3140
3116
  */
3141
3117
  "GET /user/keys": {
3142
- parameters: UsersListPublicKeysEndpoint;
3143
- request: UsersListPublicKeysRequestOptions;
3144
- response: OctokitResponse<UsersListPublicKeysResponseData>;
3118
+ parameters: UsersListPublicSshKeysForAuthenticatedEndpoint;
3119
+ request: UsersListPublicSshKeysForAuthenticatedRequestOptions;
3120
+ response: OctokitResponse<UsersListPublicSshKeysForAuthenticatedResponseData>;
3145
3121
  };
3146
3122
  /**
3147
- * @see https://developer.github.com/v3/users/keys/#get-a-single-public-key
3123
+ * @see https://developer.github.com/v3/users/keys/#get-a-public-ssh-key-for-the-authenticated-user
3148
3124
  */
3149
3125
  "GET /user/keys/:key_id": {
3150
- parameters: UsersGetPublicKeyEndpoint;
3151
- request: UsersGetPublicKeyRequestOptions;
3152
- response: OctokitResponse<UsersGetPublicKeyResponseData>;
3126
+ parameters: UsersGetPublicSshKeyForAuthenticatedEndpoint;
3127
+ request: UsersGetPublicSshKeyForAuthenticatedRequestOptions;
3128
+ response: OctokitResponse<UsersGetPublicSshKeyForAuthenticatedResponseData>;
3153
3129
  };
3154
3130
  /**
3155
3131
  * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user
@@ -3168,15 +3144,15 @@ export interface Endpoints {
3168
3144
  response: OctokitResponse<AppsListSubscriptionsForAuthenticatedUserStubbedResponseData>;
3169
3145
  };
3170
3146
  /**
3171
- * @see https://developer.github.com/v3/orgs/members/#list-your-organization-memberships
3147
+ * @see https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user
3172
3148
  */
3173
3149
  "GET /user/memberships/orgs": {
3174
- parameters: OrgsListMembershipsEndpoint;
3175
- request: OrgsListMembershipsRequestOptions;
3176
- response: OctokitResponse<OrgsListMembershipsResponseData>;
3150
+ parameters: OrgsListMembershipsForAuthenticatedUserEndpoint;
3151
+ request: OrgsListMembershipsForAuthenticatedUserRequestOptions;
3152
+ response: OctokitResponse<OrgsListMembershipsForAuthenticatedUserResponseData>;
3177
3153
  };
3178
3154
  /**
3179
- * @see https://developer.github.com/v3/orgs/members/#get-your-organization-membership
3155
+ * @see https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user
3180
3156
  */
3181
3157
  "GET /user/memberships/orgs/:org": {
3182
3158
  parameters: OrgsGetMembershipForAuthenticatedUserEndpoint;
@@ -3208,7 +3184,7 @@ export interface Endpoints {
3208
3184
  response: OctokitResponse<any>;
3209
3185
  };
3210
3186
  /**
3211
- * @see https://developer.github.com/v3/orgs/#list-your-organizations
3187
+ * @see https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user
3212
3188
  */
3213
3189
  "GET /user/orgs": {
3214
3190
  parameters: OrgsListForAuthenticatedUserEndpoint;
@@ -3216,12 +3192,12 @@ export interface Endpoints {
3216
3192
  response: OctokitResponse<OrgsListForAuthenticatedUserResponseData>;
3217
3193
  };
3218
3194
  /**
3219
- * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user
3195
+ * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-the-authenticated-user
3220
3196
  */
3221
3197
  "GET /user/public_emails": {
3222
- parameters: UsersListPublicEmailsEndpoint;
3223
- request: UsersListPublicEmailsRequestOptions;
3224
- response: OctokitResponse<UsersListPublicEmailsResponseData>;
3198
+ parameters: UsersListPublicEmailsForAuthenticatedEndpoint;
3199
+ request: UsersListPublicEmailsForAuthenticatedRequestOptions;
3200
+ response: OctokitResponse<UsersListPublicEmailsForAuthenticatedResponseData>;
3225
3201
  };
3226
3202
  /**
3227
3203
  * @see https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user
@@ -3232,7 +3208,7 @@ export interface Endpoints {
3232
3208
  response: OctokitResponse<any>;
3233
3209
  };
3234
3210
  /**
3235
- * @see https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations
3211
+ * @see https://developer.github.com/v3/repos/invitations/#list-repository-invitations-for-the-authenticated-user
3236
3212
  */
3237
3213
  "GET /user/repository_invitations": {
3238
3214
  parameters: ReposListInvitationsForAuthenticatedUserEndpoint;
@@ -3272,7 +3248,7 @@ export interface Endpoints {
3272
3248
  response: OctokitResponse<TeamsListForAuthenticatedUserResponseData>;
3273
3249
  };
3274
3250
  /**
3275
- * @see https://developer.github.com/v3/users/#get-all-users
3251
+ * @see https://developer.github.com/v3/users/#list-users
3276
3252
  */
3277
3253
  "GET /users": {
3278
3254
  parameters: UsersListEndpoint;
@@ -3280,7 +3256,7 @@ export interface Endpoints {
3280
3256
  response: OctokitResponse<UsersListResponseData>;
3281
3257
  };
3282
3258
  /**
3283
- * @see https://developer.github.com/v3/users/#get-a-single-user
3259
+ * @see https://developer.github.com/v3/users/#get-a-user
3284
3260
  */
3285
3261
  "GET /users/:username": {
3286
3262
  parameters: UsersGetByUsernameEndpoint;
@@ -3320,7 +3296,7 @@ export interface Endpoints {
3320
3296
  response: OctokitResponse<UsersListFollowersForUserResponseData>;
3321
3297
  };
3322
3298
  /**
3323
- * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
3299
+ * @see https://developer.github.com/v3/users/followers/#list-the-people-a-user-follows
3324
3300
  */
3325
3301
  "GET /users/:username/following": {
3326
3302
  parameters: UsersListFollowingForUserEndpoint;
@@ -3328,7 +3304,7 @@ export interface Endpoints {
3328
3304
  response: OctokitResponse<UsersListFollowingForUserResponseData>;
3329
3305
  };
3330
3306
  /**
3331
- * @see https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another
3307
+ * @see https://developer.github.com/v3/users/followers/#check-if-a-user-follows-another-user
3332
3308
  */
3333
3309
  "GET /users/:username/following/:target_user": {
3334
3310
  parameters: UsersCheckFollowingForUserEndpoint;
@@ -3352,7 +3328,7 @@ export interface Endpoints {
3352
3328
  response: OctokitResponse<UsersListGpgKeysForUserResponseData>;
3353
3329
  };
3354
3330
  /**
3355
- * @see https://developer.github.com/v3/users/#get-contextual-information-about-a-user
3331
+ * @see https://developer.github.com/v3/users/#get-contextual-information-for-a-user
3356
3332
  */
3357
3333
  "GET /users/:username/hovercard": {
3358
3334
  parameters: UsersGetContextForUserEndpoint;
@@ -3376,7 +3352,7 @@ export interface Endpoints {
3376
3352
  response: OctokitResponse<UsersListPublicKeysForUserResponseData>;
3377
3353
  };
3378
3354
  /**
3379
- * @see https://developer.github.com/v3/orgs/#list-user-organizations
3355
+ * @see https://developer.github.com/v3/orgs/#list-organizations-for-a-user
3380
3356
  */
3381
3357
  "GET /users/:username/orgs": {
3382
3358
  parameters: OrgsListForUserEndpoint;
@@ -3472,7 +3448,7 @@ export interface Endpoints {
3472
3448
  response: OctokitResponse<any>;
3473
3449
  };
3474
3450
  /**
3475
- * @see https://developer.github.com/v3/orgs/#edit-an-organization
3451
+ * @see https://developer.github.com/v3/orgs/#update-an-organization
3476
3452
  */
3477
3453
  "PATCH /orgs/:org": {
3478
3454
  parameters: OrgsUpdateEndpoint;
@@ -3480,12 +3456,12 @@ export interface Endpoints {
3480
3456
  response: OctokitResponse<OrgsUpdateResponseData>;
3481
3457
  };
3482
3458
  /**
3483
- * @see https://developer.github.com/v3/orgs/hooks/#edit-a-hook
3459
+ * @see https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook
3484
3460
  */
3485
3461
  "PATCH /orgs/:org/hooks/:hook_id": {
3486
- parameters: OrgsUpdateHookEndpoint;
3487
- request: OrgsUpdateHookRequestOptions;
3488
- response: OctokitResponse<OrgsUpdateHookResponseData>;
3462
+ parameters: OrgsUpdateWebhookEndpoint;
3463
+ request: OrgsUpdateWebhookRequestOptions;
3464
+ response: OctokitResponse<OrgsUpdateWebhookResponseData>;
3489
3465
  };
3490
3466
  /**
3491
3467
  * @see https://developer.github.com/v3/teams/#update-a-team
@@ -3552,20 +3528,20 @@ export interface Endpoints {
3552
3528
  response: OctokitResponse<ReposUpdateResponseData>;
3553
3529
  };
3554
3530
  /**
3555
- * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch
3531
+ * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-protection
3556
3532
  */
3557
3533
  "PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": {
3558
- parameters: ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint;
3559
- request: ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions;
3560
- response: OctokitResponse<ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseData>;
3534
+ parameters: ReposUpdatePullRequestReviewProtectionEndpoint;
3535
+ request: ReposUpdatePullRequestReviewProtectionRequestOptions;
3536
+ response: OctokitResponse<ReposUpdatePullRequestReviewProtectionResponseData>;
3561
3537
  };
3562
3538
  /**
3563
- * @see https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch
3539
+ * @see https://developer.github.com/v3/repos/branches/#update-status-check-potection
3564
3540
  */
3565
3541
  "PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks": {
3566
- parameters: ReposUpdateProtectedBranchRequiredStatusChecksEndpoint;
3567
- request: ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions;
3568
- response: OctokitResponse<ReposUpdateProtectedBranchRequiredStatusChecksResponseData>;
3542
+ parameters: ReposUpdateStatusCheckPotectionEndpoint;
3543
+ request: ReposUpdateStatusCheckPotectionRequestOptions;
3544
+ response: OctokitResponse<ReposUpdateStatusCheckPotectionResponseData>;
3569
3545
  };
3570
3546
  /**
3571
3547
  * @see https://developer.github.com/v3/checks/runs/#update-a-check-run
@@ -3600,12 +3576,12 @@ export interface Endpoints {
3600
3576
  response: OctokitResponse<GitUpdateRefResponseData>;
3601
3577
  };
3602
3578
  /**
3603
- * @see https://developer.github.com/v3/repos/hooks/#edit-a-hook
3579
+ * @see https://developer.github.com/v3/repos/hooks/#update-a-repository-webhook
3604
3580
  */
3605
3581
  "PATCH /repos/:owner/:repo/hooks/:hook_id": {
3606
- parameters: ReposUpdateHookEndpoint;
3607
- request: ReposUpdateHookRequestOptions;
3608
- response: OctokitResponse<ReposUpdateHookResponseData>;
3582
+ parameters: ReposUpdateWebhookEndpoint;
3583
+ request: ReposUpdateWebhookRequestOptions;
3584
+ response: OctokitResponse<ReposUpdateWebhookResponseData>;
3609
3585
  };
3610
3586
  /**
3611
3587
  * @see https://developer.github.com/v3/migrations/source_imports/#update-an-import
@@ -3680,15 +3656,15 @@ export interface Endpoints {
3680
3656
  response: OctokitResponse<PullsUpdateResponseData>;
3681
3657
  };
3682
3658
  /**
3683
- * @see https://developer.github.com/v3/pulls/comments/#edit-a-comment
3659
+ * @see https://developer.github.com/v3/pulls/comments/#update-a-review-comment-for-a-pull-request
3684
3660
  */
3685
3661
  "PATCH /repos/:owner/:repo/pulls/comments/:comment_id": {
3686
- parameters: PullsUpdateCommentEndpoint;
3687
- request: PullsUpdateCommentRequestOptions;
3688
- response: OctokitResponse<PullsUpdateCommentResponseData>;
3662
+ parameters: PullsUpdateReviewCommentEndpoint;
3663
+ request: PullsUpdateReviewCommentRequestOptions;
3664
+ response: OctokitResponse<PullsUpdateReviewCommentResponseData>;
3689
3665
  };
3690
3666
  /**
3691
- * @see https://developer.github.com/v3/repos/releases/#edit-a-release
3667
+ * @see https://developer.github.com/v3/repos/releases/#update-a-release
3692
3668
  */
3693
3669
  "PATCH /repos/:owner/:repo/releases/:release_id": {
3694
3670
  parameters: ReposUpdateReleaseEndpoint;
@@ -3696,7 +3672,7 @@ export interface Endpoints {
3696
3672
  response: OctokitResponse<ReposUpdateReleaseResponseData>;
3697
3673
  };
3698
3674
  /**
3699
- * @see https://developer.github.com/v3/repos/releases/#edit-a-release-asset
3675
+ * @see https://developer.github.com/v3/repos/releases/#update-a-release-asset
3700
3676
  */
3701
3677
  "PATCH /repos/:owner/:repo/releases/assets/:asset_id": {
3702
3678
  parameters: ReposUpdateReleaseAssetEndpoint;
@@ -3704,12 +3680,12 @@ export interface Endpoints {
3704
3680
  response: OctokitResponse<ReposUpdateReleaseAssetResponseData>;
3705
3681
  };
3706
3682
  /**
3707
- * @see https://developer.github.com/v3/scim/#update-a-user-attribute
3683
+ * @see https://developer.github.com/v3/scim/#update-an-attribute-for-a-scim-user
3708
3684
  */
3709
3685
  "PATCH /scim/v2/organizations/:org/Users/:scim_user_id": {
3710
- parameters: ScimUpdateUserAttributeEndpoint;
3711
- request: ScimUpdateUserAttributeRequestOptions;
3712
- response: OctokitResponse<ScimUpdateUserAttributeResponseData>;
3686
+ parameters: ScimUpdateAttributeForUserEndpoint;
3687
+ request: ScimUpdateAttributeForUserRequestOptions;
3688
+ response: OctokitResponse<ScimUpdateAttributeForUserResponseData>;
3713
3689
  };
3714
3690
  /**
3715
3691
  * @see https://developer.github.com/v3/teams/#update-a-team-legacy
@@ -3752,20 +3728,20 @@ export interface Endpoints {
3752
3728
  response: OctokitResponse<UsersUpdateAuthenticatedResponseData>;
3753
3729
  };
3754
3730
  /**
3755
- * @see https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility
3731
+ * @see https://developer.github.com/v3/users/emails/#set-primary-email-visibility-for-the-authenticated-user
3756
3732
  */
3757
3733
  "PATCH /user/email/visibility": {
3758
- parameters: UsersTogglePrimaryEmailVisibilityEndpoint;
3759
- request: UsersTogglePrimaryEmailVisibilityRequestOptions;
3760
- response: OctokitResponse<UsersTogglePrimaryEmailVisibilityResponseData>;
3734
+ parameters: UsersSetPrimaryEmailVisibilityForAuthenticatedEndpoint;
3735
+ request: UsersSetPrimaryEmailVisibilityForAuthenticatedRequestOptions;
3736
+ response: OctokitResponse<UsersSetPrimaryEmailVisibilityForAuthenticatedResponseData>;
3761
3737
  };
3762
3738
  /**
3763
- * @see https://developer.github.com/v3/orgs/members/#edit-your-organization-membership
3739
+ * @see https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user
3764
3740
  */
3765
3741
  "PATCH /user/memberships/orgs/:org": {
3766
- parameters: OrgsUpdateMembershipEndpoint;
3767
- request: OrgsUpdateMembershipRequestOptions;
3768
- response: OctokitResponse<OrgsUpdateMembershipResponseData>;
3742
+ parameters: OrgsUpdateMembershipForAuthenticatedUserEndpoint;
3743
+ request: OrgsUpdateMembershipForAuthenticatedUserRequestOptions;
3744
+ response: OctokitResponse<OrgsUpdateMembershipForAuthenticatedUserResponseData>;
3769
3745
  };
3770
3746
  /**
3771
3747
  * @see https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation
@@ -3880,23 +3856,23 @@ export interface Endpoints {
3880
3856
  response: OctokitResponse<ActionsCreateRemoveTokenForOrgResponseData>;
3881
3857
  };
3882
3858
  /**
3883
- * @see https://developer.github.com/v3/orgs/hooks/#create-a-hook
3859
+ * @see https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook
3884
3860
  */
3885
3861
  "POST /orgs/:org/hooks": {
3886
- parameters: OrgsCreateHookEndpoint;
3887
- request: OrgsCreateHookRequestOptions;
3888
- response: OctokitResponse<OrgsCreateHookResponseData>;
3862
+ parameters: OrgsCreateWebhookEndpoint;
3863
+ request: OrgsCreateWebhookRequestOptions;
3864
+ response: OctokitResponse<OrgsCreateWebhookResponseData>;
3889
3865
  };
3890
3866
  /**
3891
- * @see https://developer.github.com/v3/orgs/hooks/#ping-a-hook
3867
+ * @see https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook
3892
3868
  */
3893
3869
  "POST /orgs/:org/hooks/:hook_id/pings": {
3894
- parameters: OrgsPingHookEndpoint;
3895
- request: OrgsPingHookRequestOptions;
3870
+ parameters: OrgsPingWebhookEndpoint;
3871
+ request: OrgsPingWebhookRequestOptions;
3896
3872
  response: OctokitResponse<any>;
3897
3873
  };
3898
3874
  /**
3899
- * @see https://developer.github.com/v3/orgs/members/#create-organization-invitation
3875
+ * @see https://developer.github.com/v3/orgs/members/#create-an-organization-invitation
3900
3876
  */
3901
3877
  "POST /orgs/:org/invitations": {
3902
3878
  parameters: OrgsCreateInvitationEndpoint;
@@ -4032,52 +4008,52 @@ export interface Endpoints {
4032
4008
  response: OctokitResponse<any>;
4033
4009
  };
4034
4010
  /**
4035
- * @see https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch
4011
+ * @see https://developer.github.com/v3/repos/branches/#set-admin-branch-protection
4036
4012
  */
4037
4013
  "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": {
4038
- parameters: ReposAddProtectedBranchAdminEnforcementEndpoint;
4039
- request: ReposAddProtectedBranchAdminEnforcementRequestOptions;
4040
- response: OctokitResponse<ReposAddProtectedBranchAdminEnforcementResponseData>;
4014
+ parameters: ReposSetAdminBranchProtectionEndpoint;
4015
+ request: ReposSetAdminBranchProtectionRequestOptions;
4016
+ response: OctokitResponse<ReposSetAdminBranchProtectionResponseData>;
4041
4017
  };
4042
4018
  /**
4043
- * @see https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch
4019
+ * @see https://developer.github.com/v3/repos/branches/#create-commit-signature-protection
4044
4020
  */
4045
4021
  "POST /repos/:owner/:repo/branches/:branch/protection/required_signatures": {
4046
- parameters: ReposAddProtectedBranchRequiredSignaturesEndpoint;
4047
- request: ReposAddProtectedBranchRequiredSignaturesRequestOptions;
4048
- response: OctokitResponse<ReposAddProtectedBranchRequiredSignaturesResponseData>;
4022
+ parameters: ReposCreateCommitSignatureProtectionEndpoint;
4023
+ request: ReposCreateCommitSignatureProtectionRequestOptions;
4024
+ response: OctokitResponse<ReposCreateCommitSignatureProtectionResponseData>;
4049
4025
  };
4050
4026
  /**
4051
- * @see https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch
4027
+ * @see https://developer.github.com/v3/repos/branches/#add-status-check-contexts
4052
4028
  */
4053
4029
  "POST /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": {
4054
- parameters: ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint;
4055
- request: ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions;
4056
- response: OctokitResponse<ReposAddProtectedBranchRequiredStatusChecksContextsResponseData>;
4030
+ parameters: ReposAddStatusCheckContextsEndpoint;
4031
+ request: ReposAddStatusCheckContextsRequestOptions;
4032
+ response: OctokitResponse<ReposAddStatusCheckContextsResponseData>;
4057
4033
  };
4058
4034
  /**
4059
- * @see https://developer.github.com/v3/repos/branches/#add-app-restrictions-of-protected-branch
4035
+ * @see https://developer.github.com/v3/repos/branches/#add-app-access-restrictions
4060
4036
  */
4061
4037
  "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": {
4062
- parameters: ReposAddProtectedBranchAppRestrictionsEndpoint;
4063
- request: ReposAddProtectedBranchAppRestrictionsRequestOptions;
4064
- response: OctokitResponse<ReposAddProtectedBranchAppRestrictionsResponseData>;
4038
+ parameters: ReposAddAppAccessRestrictionsEndpoint;
4039
+ request: ReposAddAppAccessRestrictionsRequestOptions;
4040
+ response: OctokitResponse<ReposAddAppAccessRestrictionsResponseData>;
4065
4041
  };
4066
4042
  /**
4067
- * @see https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch
4043
+ * @see https://developer.github.com/v3/repos/branches/#add-team-access-restrictions
4068
4044
  */
4069
4045
  "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": {
4070
- parameters: ReposAddProtectedBranchTeamRestrictionsEndpoint;
4071
- request: ReposAddProtectedBranchTeamRestrictionsRequestOptions;
4072
- response: OctokitResponse<ReposAddProtectedBranchTeamRestrictionsResponseData>;
4046
+ parameters: ReposAddTeamAccessRestrictionsEndpoint;
4047
+ request: ReposAddTeamAccessRestrictionsRequestOptions;
4048
+ response: OctokitResponse<ReposAddTeamAccessRestrictionsResponseData>;
4073
4049
  };
4074
4050
  /**
4075
- * @see https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch
4051
+ * @see https://developer.github.com/v3/repos/branches/#add-user-access-restrictions
4076
4052
  */
4077
4053
  "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users": {
4078
- parameters: ReposAddProtectedBranchUserRestrictionsEndpoint;
4079
- request: ReposAddProtectedBranchUserRestrictionsRequestOptions;
4080
- response: OctokitResponse<ReposAddProtectedBranchUserRestrictionsResponseData>;
4054
+ parameters: ReposAddUserAccessRestrictionsEndpoint;
4055
+ request: ReposAddUserAccessRestrictionsRequestOptions;
4056
+ response: OctokitResponse<ReposAddUserAccessRestrictionsResponseData>;
4081
4057
  };
4082
4058
  /**
4083
4059
  * @see https://developer.github.com/v3/checks/runs/#create-a-check-run
@@ -4192,27 +4168,27 @@ export interface Endpoints {
4192
4168
  response: OctokitResponse<GitCreateTreeResponseData>;
4193
4169
  };
4194
4170
  /**
4195
- * @see https://developer.github.com/v3/repos/hooks/#create-a-hook
4171
+ * @see https://developer.github.com/v3/repos/hooks/#create-a-repository-webhook
4196
4172
  */
4197
4173
  "POST /repos/:owner/:repo/hooks": {
4198
- parameters: ReposCreateHookEndpoint;
4199
- request: ReposCreateHookRequestOptions;
4200
- response: OctokitResponse<ReposCreateHookResponseData>;
4174
+ parameters: ReposCreateWebhookEndpoint;
4175
+ request: ReposCreateWebhookRequestOptions;
4176
+ response: OctokitResponse<ReposCreateWebhookResponseData>;
4201
4177
  };
4202
4178
  /**
4203
- * @see https://developer.github.com/v3/repos/hooks/#ping-a-hook
4179
+ * @see https://developer.github.com/v3/repos/hooks/#ping-a-repository-webhook
4204
4180
  */
4205
4181
  "POST /repos/:owner/:repo/hooks/:hook_id/pings": {
4206
- parameters: ReposPingHookEndpoint;
4207
- request: ReposPingHookRequestOptions;
4182
+ parameters: ReposPingWebhookEndpoint;
4183
+ request: ReposPingWebhookRequestOptions;
4208
4184
  response: OctokitResponse<any>;
4209
4185
  };
4210
4186
  /**
4211
- * @see https://developer.github.com/v3/repos/hooks/#test-a-push-hook
4187
+ * @see https://developer.github.com/v3/repos/hooks/#test-the-push-repository-webhook
4212
4188
  */
4213
4189
  "POST /repos/:owner/:repo/hooks/:hook_id/tests": {
4214
- parameters: ReposTestPushHookEndpoint;
4215
- request: ReposTestPushHookRequestOptions;
4190
+ parameters: ReposTestPushWebhookEndpoint;
4191
+ request: ReposTestPushWebhookRequestOptions;
4216
4192
  response: OctokitResponse<any>;
4217
4193
  };
4218
4194
  /**
@@ -4264,12 +4240,12 @@ export interface Endpoints {
4264
4240
  response: OctokitResponse<ReactionsCreateForIssueCommentResponseData>;
4265
4241
  };
4266
4242
  /**
4267
- * @see https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key
4243
+ * @see https://developer.github.com/v3/repos/keys/#create-a-deploy-key
4268
4244
  */
4269
4245
  "POST /repos/:owner/:repo/keys": {
4270
- parameters: ReposAddDeployKeyEndpoint;
4271
- request: ReposAddDeployKeyRequestOptions;
4272
- response: OctokitResponse<ReposAddDeployKeyResponseData>;
4246
+ parameters: ReposCreateDeployKeyEndpoint;
4247
+ request: ReposCreateDeployKeyRequestOptions;
4248
+ response: OctokitResponse<ReposCreateDeployKeyResponseData>;
4273
4249
  };
4274
4250
  /**
4275
4251
  * @see https://developer.github.com/v3/issues/labels/#create-a-label
@@ -4280,7 +4256,7 @@ export interface Endpoints {
4280
4256
  response: OctokitResponse<IssuesCreateLabelResponseData>;
4281
4257
  };
4282
4258
  /**
4283
- * @see https://developer.github.com/v3/repos/merging/#perform-a-merge
4259
+ * @see https://developer.github.com/v3/repos/merging/#merge-a-branch
4284
4260
  */
4285
4261
  "POST /repos/:owner/:repo/merges": {
4286
4262
  parameters: ReposMergeEndpoint;
@@ -4296,20 +4272,20 @@ export interface Endpoints {
4296
4272
  response: OctokitResponse<IssuesCreateMilestoneResponseData>;
4297
4273
  };
4298
4274
  /**
4299
- * @see https://developer.github.com/v3/repos/pages/#enable-a-pages-site
4275
+ * @see https://developer.github.com/v3/repos/pages/#create-a-github-pages-site
4300
4276
  */
4301
4277
  "POST /repos/:owner/:repo/pages": {
4302
- parameters: ReposEnablePagesSiteEndpoint;
4303
- request: ReposEnablePagesSiteRequestOptions;
4304
- response: OctokitResponse<ReposEnablePagesSiteResponseData>;
4278
+ parameters: ReposCreatePagesSiteEndpoint;
4279
+ request: ReposCreatePagesSiteRequestOptions;
4280
+ response: OctokitResponse<ReposCreatePagesSiteResponseData>;
4305
4281
  };
4306
4282
  /**
4307
- * @see https://developer.github.com/v3/repos/pages/#request-a-page-build
4283
+ * @see https://developer.github.com/v3/repos/pages/#request-a-github-pages-build
4308
4284
  */
4309
4285
  "POST /repos/:owner/:repo/pages/builds": {
4310
- parameters: ReposRequestPageBuildEndpoint;
4311
- request: ReposRequestPageBuildRequestOptions;
4312
- response: OctokitResponse<ReposRequestPageBuildResponseData>;
4286
+ parameters: ReposRequestPagesBuildEndpoint;
4287
+ request: ReposRequestPagesBuildRequestOptions;
4288
+ response: OctokitResponse<ReposRequestPagesBuildResponseData>;
4313
4289
  };
4314
4290
  /**
4315
4291
  * @see https://developer.github.com/v3/projects/#create-a-repository-project
@@ -4328,31 +4304,31 @@ export interface Endpoints {
4328
4304
  response: OctokitResponse<PullsCreateResponseData>;
4329
4305
  };
4330
4306
  /**
4331
- * @see https://developer.github.com/v3/pulls/comments/#create-a-comment
4307
+ * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-for-a-pull-request
4332
4308
  */
4333
4309
  "POST /repos/:owner/:repo/pulls/:pull_number/comments": {
4334
- parameters: PullsCreateCommentEndpoint;
4335
- request: PullsCreateCommentRequestOptions;
4336
- response: OctokitResponse<PullsCreateCommentResponseData>;
4310
+ parameters: PullsCreateReviewCommentEndpoint;
4311
+ request: PullsCreateReviewCommentRequestOptions;
4312
+ response: OctokitResponse<PullsCreateReviewCommentResponseData>;
4337
4313
  };
4338
4314
  /**
4339
- * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply
4315
+ * @see https://developer.github.com/v3/pulls/comments/#create-a-reply-for-a-review-comment
4340
4316
  */
4341
4317
  "POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies": {
4342
- parameters: PullsCreateReviewCommentReplyEndpoint;
4343
- request: PullsCreateReviewCommentReplyRequestOptions;
4344
- response: OctokitResponse<PullsCreateReviewCommentReplyResponseData>;
4318
+ parameters: PullsCreateReplyForReviewCommentEndpoint;
4319
+ request: PullsCreateReplyForReviewCommentRequestOptions;
4320
+ response: OctokitResponse<PullsCreateReplyForReviewCommentResponseData>;
4345
4321
  };
4346
4322
  /**
4347
- * @see https://developer.github.com/v3/pulls/review_requests/#create-a-review-request
4323
+ * @see https://developer.github.com/v3/pulls/review_requests/#request-reviewers-for-a-pull-request
4348
4324
  */
4349
4325
  "POST /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": {
4350
- parameters: PullsCreateReviewRequestEndpoint;
4351
- request: PullsCreateReviewRequestRequestOptions;
4352
- response: OctokitResponse<PullsCreateReviewRequestResponseData>;
4326
+ parameters: PullsRequestReviewersEndpoint;
4327
+ request: PullsRequestReviewersRequestOptions;
4328
+ response: OctokitResponse<PullsRequestReviewersResponseData>;
4353
4329
  };
4354
4330
  /**
4355
- * @see https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review
4331
+ * @see https://developer.github.com/v3/pulls/reviews/#create-a-review-for-a-pull-request
4356
4332
  */
4357
4333
  "POST /repos/:owner/:repo/pulls/:pull_number/reviews": {
4358
4334
  parameters: PullsCreateReviewEndpoint;
@@ -4360,7 +4336,7 @@ export interface Endpoints {
4360
4336
  response: OctokitResponse<PullsCreateReviewResponseData>;
4361
4337
  };
4362
4338
  /**
4363
- * @see https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review
4339
+ * @see https://developer.github.com/v3/pulls/reviews/#submit-a-review-for-a-pull-request
4364
4340
  */
4365
4341
  "POST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events": {
4366
4342
  parameters: PullsSubmitReviewEndpoint;
@@ -4392,12 +4368,12 @@ export interface Endpoints {
4392
4368
  response: OctokitResponse<ReposUploadReleaseAssetResponseData>;
4393
4369
  };
4394
4370
  /**
4395
- * @see https://developer.github.com/v3/repos/statuses/#create-a-status
4371
+ * @see https://developer.github.com/v3/repos/statuses/#create-a-commit-status
4396
4372
  */
4397
4373
  "POST /repos/:owner/:repo/statuses/:sha": {
4398
- parameters: ReposCreateStatusEndpoint;
4399
- request: ReposCreateStatusRequestOptions;
4400
- response: OctokitResponse<ReposCreateStatusResponseData>;
4374
+ parameters: ReposCreateCommitStatusEndpoint;
4375
+ request: ReposCreateCommitStatusRequestOptions;
4376
+ response: OctokitResponse<ReposCreateCommitStatusResponseData>;
4401
4377
  };
4402
4378
  /**
4403
4379
  * @see https://developer.github.com/v3/repos/#transfer-a-repository
@@ -4416,12 +4392,12 @@ export interface Endpoints {
4416
4392
  response: OctokitResponse<ReposCreateUsingTemplateResponseData>;
4417
4393
  };
4418
4394
  /**
4419
- * @see https://developer.github.com/v3/scim/#provision-and-invite-users
4395
+ * @see https://developer.github.com/v3/scim/#provision-and-invite-a-scim-user
4420
4396
  */
4421
4397
  "POST /scim/v2/organizations/:org/Users": {
4422
- parameters: ScimProvisionAndInviteUsersEndpoint;
4423
- request: ScimProvisionAndInviteUsersRequestOptions;
4424
- response: OctokitResponse<ScimProvisionAndInviteUsersResponseData>;
4398
+ parameters: ScimProvisionAndInviteUserEndpoint;
4399
+ request: ScimProvisionAndInviteUserRequestOptions;
4400
+ response: OctokitResponse<ScimProvisionAndInviteUserResponseData>;
4425
4401
  };
4426
4402
  /**
4427
4403
  * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
@@ -4456,28 +4432,28 @@ export interface Endpoints {
4456
4432
  response: OctokitResponse<ReactionsCreateForTeamDiscussionLegacyResponseData>;
4457
4433
  };
4458
4434
  /**
4459
- * @see https://developer.github.com/v3/users/emails/#add-email-addresses
4435
+ * @see https://developer.github.com/v3/users/emails/#add-an-email-address-for-the-authenticated-user
4460
4436
  */
4461
4437
  "POST /user/emails": {
4462
- parameters: UsersAddEmailsEndpoint;
4463
- request: UsersAddEmailsRequestOptions;
4464
- response: OctokitResponse<UsersAddEmailsResponseData>;
4438
+ parameters: UsersAddEmailForAuthenticatedEndpoint;
4439
+ request: UsersAddEmailForAuthenticatedRequestOptions;
4440
+ response: OctokitResponse<UsersAddEmailForAuthenticatedResponseData>;
4465
4441
  };
4466
4442
  /**
4467
- * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key
4443
+ * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key-for-the-authenticated-user
4468
4444
  */
4469
4445
  "POST /user/gpg_keys": {
4470
- parameters: UsersCreateGpgKeyEndpoint;
4471
- request: UsersCreateGpgKeyRequestOptions;
4472
- response: OctokitResponse<UsersCreateGpgKeyResponseData>;
4446
+ parameters: UsersCreateGpgKeyForAuthenticatedEndpoint;
4447
+ request: UsersCreateGpgKeyForAuthenticatedRequestOptions;
4448
+ response: OctokitResponse<UsersCreateGpgKeyForAuthenticatedResponseData>;
4473
4449
  };
4474
4450
  /**
4475
- * @see https://developer.github.com/v3/users/keys/#create-a-public-key
4451
+ * @see https://developer.github.com/v3/users/keys/#create-a-public-ssh-key-for-the-authenticated-user
4476
4452
  */
4477
4453
  "POST /user/keys": {
4478
- parameters: UsersCreatePublicKeyEndpoint;
4479
- request: UsersCreatePublicKeyRequestOptions;
4480
- response: OctokitResponse<UsersCreatePublicKeyResponseData>;
4454
+ parameters: UsersCreatePublicSshKeyForAuthenticatedEndpoint;
4455
+ request: UsersCreatePublicSshKeyForAuthenticatedRequestOptions;
4456
+ response: OctokitResponse<UsersCreatePublicSshKeyForAuthenticatedResponseData>;
4481
4457
  };
4482
4458
  /**
4483
4459
  * @see https://developer.github.com/v3/migrations/users/#start-a-user-migration
@@ -4576,7 +4552,7 @@ export interface Endpoints {
4576
4552
  response: OctokitResponse<any>;
4577
4553
  };
4578
4554
  /**
4579
- * @see https://developer.github.com/v3/orgs/blocking/#block-a-user
4555
+ * @see https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization
4580
4556
  */
4581
4557
  "PUT /orgs/:org/blocks/:username": {
4582
4558
  parameters: OrgsBlockUserEndpoint;
@@ -4592,15 +4568,15 @@ export interface Endpoints {
4592
4568
  response: OctokitResponse<InteractionsSetRestrictionsForOrgResponseData>;
4593
4569
  };
4594
4570
  /**
4595
- * @see https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership
4571
+ * @see https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user
4596
4572
  */
4597
4573
  "PUT /orgs/:org/memberships/:username": {
4598
- parameters: OrgsAddOrUpdateMembershipEndpoint;
4599
- request: OrgsAddOrUpdateMembershipRequestOptions;
4600
- response: OctokitResponse<OrgsAddOrUpdateMembershipResponseData>;
4574
+ parameters: OrgsSetMembershipForUserEndpoint;
4575
+ request: OrgsSetMembershipForUserRequestOptions;
4576
+ response: OctokitResponse<OrgsSetMembershipForUserResponseData>;
4601
4577
  };
4602
4578
  /**
4603
- * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator
4579
+ * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator
4604
4580
  */
4605
4581
  "PUT /orgs/:org/outside_collaborators/:username": {
4606
4582
  parameters: OrgsConvertMemberToOutsideCollaboratorEndpoint;
@@ -4608,11 +4584,11 @@ export interface Endpoints {
4608
4584
  response: OctokitResponse<OrgsConvertMemberToOutsideCollaboratorResponseData>;
4609
4585
  };
4610
4586
  /**
4611
- * @see https://developer.github.com/v3/orgs/members/#publicize-a-users-membership
4587
+ * @see https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user
4612
4588
  */
4613
4589
  "PUT /orgs/:org/public_members/:username": {
4614
- parameters: OrgsPublicizeMembershipEndpoint;
4615
- request: OrgsPublicizeMembershipRequestOptions;
4590
+ parameters: OrgsSetPublicMembershipForAuthenticatedUserEndpoint;
4591
+ request: OrgsSetPublicMembershipForAuthenticatedUserRequestOptions;
4616
4592
  response: OctokitResponse<any>;
4617
4593
  };
4618
4594
  /**
@@ -4640,7 +4616,7 @@ export interface Endpoints {
4640
4616
  response: OctokitResponse<any>;
4641
4617
  };
4642
4618
  /**
4643
- * @see https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator
4619
+ * @see https://developer.github.com/v3/projects/collaborators/#add-project-collaborator
4644
4620
  */
4645
4621
  "PUT /projects/:project_id/collaborators/:username": {
4646
4622
  parameters: ProjectsAddCollaboratorEndpoint;
@@ -4672,39 +4648,39 @@ export interface Endpoints {
4672
4648
  response: OctokitResponse<ReposUpdateBranchProtectionResponseData>;
4673
4649
  };
4674
4650
  /**
4675
- * @see https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch
4651
+ * @see https://developer.github.com/v3/repos/branches/#set-status-check-contexts
4676
4652
  */
4677
4653
  "PUT /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": {
4678
- parameters: ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint;
4679
- request: ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions;
4680
- response: OctokitResponse<ReposReplaceProtectedBranchRequiredStatusChecksContextsResponseData>;
4654
+ parameters: ReposSetStatusCheckContextsEndpoint;
4655
+ request: ReposSetStatusCheckContextsRequestOptions;
4656
+ response: OctokitResponse<ReposSetStatusCheckContextsResponseData>;
4681
4657
  };
4682
4658
  /**
4683
- * @see https://developer.github.com/v3/repos/branches/#replace-app-restrictions-of-protected-branch
4659
+ * @see https://developer.github.com/v3/repos/branches/#set-app-access-restrictions
4684
4660
  */
4685
4661
  "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": {
4686
- parameters: ReposReplaceProtectedBranchAppRestrictionsEndpoint;
4687
- request: ReposReplaceProtectedBranchAppRestrictionsRequestOptions;
4688
- response: OctokitResponse<ReposReplaceProtectedBranchAppRestrictionsResponseData>;
4662
+ parameters: ReposSetAppAccessRestrictionsEndpoint;
4663
+ request: ReposSetAppAccessRestrictionsRequestOptions;
4664
+ response: OctokitResponse<ReposSetAppAccessRestrictionsResponseData>;
4689
4665
  };
4690
4666
  /**
4691
- * @see https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch
4667
+ * @see https://developer.github.com/v3/repos/branches/#set-team-access-restrictions
4692
4668
  */
4693
4669
  "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": {
4694
- parameters: ReposReplaceProtectedBranchTeamRestrictionsEndpoint;
4695
- request: ReposReplaceProtectedBranchTeamRestrictionsRequestOptions;
4696
- response: OctokitResponse<ReposReplaceProtectedBranchTeamRestrictionsResponseData>;
4670
+ parameters: ReposSetTeamAccessRestrictionsEndpoint;
4671
+ request: ReposSetTeamAccessRestrictionsRequestOptions;
4672
+ response: OctokitResponse<ReposSetTeamAccessRestrictionsResponseData>;
4697
4673
  };
4698
4674
  /**
4699
- * @see https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch
4675
+ * @see https://developer.github.com/v3/repos/branches/#set-user-access-restrictions
4700
4676
  */
4701
4677
  "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users": {
4702
- parameters: ReposReplaceProtectedBranchUserRestrictionsEndpoint;
4703
- request: ReposReplaceProtectedBranchUserRestrictionsRequestOptions;
4704
- response: OctokitResponse<ReposReplaceProtectedBranchUserRestrictionsResponseData>;
4678
+ parameters: ReposSetUserAccessRestrictionsEndpoint;
4679
+ request: ReposSetUserAccessRestrictionsRequestOptions;
4680
+ response: OctokitResponse<ReposSetUserAccessRestrictionsResponseData>;
4705
4681
  };
4706
4682
  /**
4707
- * @see https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
4683
+ * @see https://developer.github.com/v3/repos/collaborators/#add-a-repository-collaborator
4708
4684
  */
4709
4685
  "PUT /repos/:owner/:repo/collaborators/:username": {
4710
4686
  parameters: ReposAddCollaboratorEndpoint;
@@ -4712,12 +4688,12 @@ export interface Endpoints {
4712
4688
  response: OctokitResponse<ReposAddCollaboratorResponseData>;
4713
4689
  };
4714
4690
  /**
4715
- * @see https://developer.github.com/v3/repos/contents/#create-or-update-a-file
4691
+ * @see https://developer.github.com/v3/repos/contents/#create-or-update-file-contents
4716
4692
  */
4717
4693
  "PUT /repos/:owner/:repo/contents/:path": {
4718
- parameters: ReposCreateOrUpdateFileEndpoint;
4719
- request: ReposCreateOrUpdateFileRequestOptions;
4720
- response: OctokitResponse<ReposCreateOrUpdateFileResponseData | ReposCreateOrUpdateFileResponse201Data>;
4694
+ parameters: ReposCreateOrUpdateFileContentsEndpoint;
4695
+ request: ReposCreateOrUpdateFileContentsRequestOptions;
4696
+ response: OctokitResponse<ReposCreateOrUpdateFileContentsResponseData | ReposCreateOrUpdateFileContentsResponse201Data>;
4721
4697
  };
4722
4698
  /**
4723
4699
  * @see https://developer.github.com/v3/migrations/source_imports/#start-an-import
@@ -4760,7 +4736,7 @@ export interface Endpoints {
4760
4736
  response: OctokitResponse<any>;
4761
4737
  };
4762
4738
  /**
4763
- * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-pages-site
4739
+ * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-github-pages-site
4764
4740
  */
4765
4741
  "PUT /repos/:owner/:repo/pages": {
4766
4742
  parameters: ReposUpdateInformationAboutPagesSiteEndpoint;
@@ -4768,7 +4744,7 @@ export interface Endpoints {
4768
4744
  response: OctokitResponse<any>;
4769
4745
  };
4770
4746
  /**
4771
- * @see https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
4747
+ * @see https://developer.github.com/v3/pulls/#merge-a-pull-request
4772
4748
  */
4773
4749
  "PUT /repos/:owner/:repo/pulls/:pull_number/merge": {
4774
4750
  parameters: PullsMergeEndpoint;
@@ -4776,7 +4752,7 @@ export interface Endpoints {
4776
4752
  response: OctokitResponse<PullsMergeResponseData | PullsMergeResponse405Data | PullsMergeResponse409Data>;
4777
4753
  };
4778
4754
  /**
4779
- * @see https://developer.github.com/v3/pulls/reviews/#update-a-pull-request-review
4755
+ * @see https://developer.github.com/v3/pulls/reviews/#update-a-review-for-a-pull-request
4780
4756
  */
4781
4757
  "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": {
4782
4758
  parameters: PullsUpdateReviewEndpoint;
@@ -4784,7 +4760,7 @@ export interface Endpoints {
4784
4760
  response: OctokitResponse<PullsUpdateReviewResponseData>;
4785
4761
  };
4786
4762
  /**
4787
- * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review
4763
+ * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request
4788
4764
  */
4789
4765
  "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals": {
4790
4766
  parameters: PullsDismissReviewEndpoint;
@@ -4824,12 +4800,12 @@ export interface Endpoints {
4824
4800
  response: OctokitResponse<any>;
4825
4801
  };
4826
4802
  /**
4827
- * @see https://developer.github.com/v3/scim/#replace-a-provisioned-users-information
4803
+ * @see https://developer.github.com/v3/scim/#set-scim-information-for-a-provisioned-user
4828
4804
  */
4829
4805
  "PUT /scim/v2/organizations/:org/Users/:scim_user_id": {
4830
- parameters: ScimReplaceProvisionedUserInformationEndpoint;
4831
- request: ScimReplaceProvisionedUserInformationRequestOptions;
4832
- response: OctokitResponse<ScimReplaceProvisionedUserInformationResponseData>;
4806
+ parameters: ScimSetInformationForProvisionedUserEndpoint;
4807
+ request: ScimSetInformationForProvisionedUserRequestOptions;
4808
+ response: OctokitResponse<ScimSetInformationForProvisionedUserResponseData>;
4833
4809
  };
4834
4810
  /**
4835
4811
  * @see https://developer.github.com/v3/teams/members/#add-team-member-legacy
@@ -5201,6 +5177,7 @@ export interface AppsCreateInstallationAccessTokenResponseData {
5201
5177
  template_repository: string;
5202
5178
  temp_clone_token: string;
5203
5179
  allow_squash_merge: boolean;
5180
+ delete_branch_on_merge: boolean;
5204
5181
  allow_merge_commit: boolean;
5205
5182
  subscribers_count: number;
5206
5183
  network_count: number;
@@ -7166,6 +7143,7 @@ export interface AppsListReposAccessibleToInstallationResponseData {
7166
7143
  template_repository: string;
7167
7144
  temp_clone_token: string;
7168
7145
  allow_squash_merge: boolean;
7146
+ delete_branch_on_merge: boolean;
7169
7147
  allow_merge_commit: boolean;
7170
7148
  subscribers_count: number;
7171
7149
  network_count: number;
@@ -7455,6 +7433,7 @@ export declare type IssuesListResponseData = {
7455
7433
  template_repository: string;
7456
7434
  temp_clone_token: string;
7457
7435
  allow_squash_merge: boolean;
7436
+ delete_branch_on_merge: boolean;
7458
7437
  allow_merge_commit: boolean;
7459
7438
  subscribers_count: number;
7460
7439
  network_count: number;
@@ -8769,16 +8748,16 @@ declare type OrgsUnblockUserRequestOptions = {
8769
8748
  headers: RequestHeaders;
8770
8749
  request: RequestRequestOptions;
8771
8750
  };
8772
- declare type OrgsListCredentialAuthorizationsEndpoint = {
8751
+ declare type OrgsListSamlSsoAuthorizationsEndpoint = {
8773
8752
  org: string;
8774
8753
  };
8775
- declare type OrgsListCredentialAuthorizationsRequestOptions = {
8754
+ declare type OrgsListSamlSsoAuthorizationsRequestOptions = {
8776
8755
  method: "GET";
8777
8756
  url: "/orgs/:org/credential-authorizations";
8778
8757
  headers: RequestHeaders;
8779
8758
  request: RequestRequestOptions;
8780
8759
  };
8781
- export declare type OrgsListCredentialAuthorizationsResponseData = {
8760
+ export declare type OrgsListSamlSsoAuthorizationsResponseData = {
8782
8761
  login: string;
8783
8762
  credential_id: string;
8784
8763
  credential_type: string;
@@ -8786,11 +8765,11 @@ export declare type OrgsListCredentialAuthorizationsResponseData = {
8786
8765
  credential_authorized_at: string;
8787
8766
  scopes: string[];
8788
8767
  }[];
8789
- declare type OrgsRemoveCredentialAuthorizationEndpoint = {
8768
+ declare type OrgsRemoveSamlSsoAuthorizationEndpoint = {
8790
8769
  org: string;
8791
8770
  credential_id: number;
8792
8771
  };
8793
- declare type OrgsRemoveCredentialAuthorizationRequestOptions = {
8772
+ declare type OrgsRemoveSamlSsoAuthorizationRequestOptions = {
8794
8773
  method: "DELETE";
8795
8774
  url: "/orgs/:org/credential-authorizations/:credential_id";
8796
8775
  headers: RequestHeaders;
@@ -8813,7 +8792,7 @@ declare type ActivityListPublicOrgEventsRequestOptions = {
8813
8792
  headers: RequestHeaders;
8814
8793
  request: RequestRequestOptions;
8815
8794
  };
8816
- declare type OrgsListHooksEndpoint = {
8795
+ declare type OrgsListWebhooksEndpoint = {
8817
8796
  org: string;
8818
8797
  /**
8819
8798
  * Results per page (max 100)
@@ -8824,13 +8803,13 @@ declare type OrgsListHooksEndpoint = {
8824
8803
  */
8825
8804
  page?: number;
8826
8805
  };
8827
- declare type OrgsListHooksRequestOptions = {
8806
+ declare type OrgsListWebhooksRequestOptions = {
8828
8807
  method: "GET";
8829
8808
  url: "/orgs/:org/hooks";
8830
8809
  headers: RequestHeaders;
8831
8810
  request: RequestRequestOptions;
8832
8811
  };
8833
- export declare type OrgsListHooksResponseData = {
8812
+ export declare type OrgsListWebhooksResponseData = {
8834
8813
  id: number;
8835
8814
  url: string;
8836
8815
  ping_url: string;
@@ -8844,7 +8823,7 @@ export declare type OrgsListHooksResponseData = {
8844
8823
  updated_at: string;
8845
8824
  created_at: string;
8846
8825
  }[];
8847
- declare type OrgsCreateHookEndpoint = {
8826
+ declare type OrgsCreateWebhookEndpoint = {
8848
8827
  org: string;
8849
8828
  /**
8850
8829
  * Must be passed as "web".
@@ -8853,7 +8832,7 @@ declare type OrgsCreateHookEndpoint = {
8853
8832
  /**
8854
8833
  * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params).
8855
8834
  */
8856
- config: OrgsCreateHookParamsConfig;
8835
+ config: OrgsCreateWebhookParamsConfig;
8857
8836
  /**
8858
8837
  * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for.
8859
8838
  */
@@ -8863,13 +8842,13 @@ declare type OrgsCreateHookEndpoint = {
8863
8842
  */
8864
8843
  active?: boolean;
8865
8844
  };
8866
- declare type OrgsCreateHookRequestOptions = {
8845
+ declare type OrgsCreateWebhookRequestOptions = {
8867
8846
  method: "POST";
8868
8847
  url: "/orgs/:org/hooks";
8869
8848
  headers: RequestHeaders;
8870
8849
  request: RequestRequestOptions;
8871
8850
  };
8872
- export interface OrgsCreateHookResponseData {
8851
+ export interface OrgsCreateWebhookResponseData {
8873
8852
  id: number;
8874
8853
  url: string;
8875
8854
  ping_url: string;
@@ -8883,17 +8862,17 @@ export interface OrgsCreateHookResponseData {
8883
8862
  updated_at: string;
8884
8863
  created_at: string;
8885
8864
  }
8886
- declare type OrgsGetHookEndpoint = {
8865
+ declare type OrgsGetWebhookEndpoint = {
8887
8866
  org: string;
8888
8867
  hook_id: number;
8889
8868
  };
8890
- declare type OrgsGetHookRequestOptions = {
8869
+ declare type OrgsGetWebhookRequestOptions = {
8891
8870
  method: "GET";
8892
8871
  url: "/orgs/:org/hooks/:hook_id";
8893
8872
  headers: RequestHeaders;
8894
8873
  request: RequestRequestOptions;
8895
8874
  };
8896
- export interface OrgsGetHookResponseData {
8875
+ export interface OrgsGetWebhookResponseData {
8897
8876
  id: number;
8898
8877
  url: string;
8899
8878
  ping_url: string;
@@ -8907,13 +8886,13 @@ export interface OrgsGetHookResponseData {
8907
8886
  updated_at: string;
8908
8887
  created_at: string;
8909
8888
  }
8910
- declare type OrgsUpdateHookEndpoint = {
8889
+ declare type OrgsUpdateWebhookEndpoint = {
8911
8890
  org: string;
8912
8891
  hook_id: number;
8913
8892
  /**
8914
8893
  * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params).
8915
8894
  */
8916
- config?: OrgsUpdateHookParamsConfig;
8895
+ config?: OrgsUpdateWebhookParamsConfig;
8917
8896
  /**
8918
8897
  * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for.
8919
8898
  */
@@ -8923,13 +8902,13 @@ declare type OrgsUpdateHookEndpoint = {
8923
8902
  */
8924
8903
  active?: boolean;
8925
8904
  };
8926
- declare type OrgsUpdateHookRequestOptions = {
8905
+ declare type OrgsUpdateWebhookRequestOptions = {
8927
8906
  method: "PATCH";
8928
8907
  url: "/orgs/:org/hooks/:hook_id";
8929
8908
  headers: RequestHeaders;
8930
8909
  request: RequestRequestOptions;
8931
8910
  };
8932
- export interface OrgsUpdateHookResponseData {
8911
+ export interface OrgsUpdateWebhookResponseData {
8933
8912
  id: number;
8934
8913
  url: string;
8935
8914
  ping_url: string;
@@ -8943,21 +8922,21 @@ export interface OrgsUpdateHookResponseData {
8943
8922
  updated_at: string;
8944
8923
  created_at: string;
8945
8924
  }
8946
- declare type OrgsDeleteHookEndpoint = {
8925
+ declare type OrgsDeleteWebhookEndpoint = {
8947
8926
  org: string;
8948
8927
  hook_id: number;
8949
8928
  };
8950
- declare type OrgsDeleteHookRequestOptions = {
8929
+ declare type OrgsDeleteWebhookRequestOptions = {
8951
8930
  method: "DELETE";
8952
8931
  url: "/orgs/:org/hooks/:hook_id";
8953
8932
  headers: RequestHeaders;
8954
8933
  request: RequestRequestOptions;
8955
8934
  };
8956
- declare type OrgsPingHookEndpoint = {
8935
+ declare type OrgsPingWebhookEndpoint = {
8957
8936
  org: string;
8958
8937
  hook_id: number;
8959
8938
  };
8960
- declare type OrgsPingHookRequestOptions = {
8939
+ declare type OrgsPingWebhookRequestOptions = {
8961
8940
  method: "POST";
8962
8941
  url: "/orgs/:org/hooks/:hook_id/pings";
8963
8942
  headers: RequestHeaders;
@@ -9011,7 +8990,7 @@ export interface AppsGetOrgInstallationResponseData {
9011
8990
  updated_at: string;
9012
8991
  single_file_name: string;
9013
8992
  }
9014
- declare type OrgsListInstallationsEndpoint = {
8993
+ declare type OrgsListAppInstallationsEndpoint = {
9015
8994
  org: string;
9016
8995
  /**
9017
8996
  * Results per page (max 100)
@@ -9022,13 +9001,13 @@ declare type OrgsListInstallationsEndpoint = {
9022
9001
  */
9023
9002
  page?: number;
9024
9003
  } & RequiredPreview<"machine-man">;
9025
- declare type OrgsListInstallationsRequestOptions = {
9004
+ declare type OrgsListAppInstallationsRequestOptions = {
9026
9005
  method: "GET";
9027
9006
  url: "/orgs/:org/installations";
9028
9007
  headers: RequestHeaders;
9029
9008
  request: RequestRequestOptions;
9030
9009
  };
9031
- export interface OrgsListInstallationsResponseData {
9010
+ export interface OrgsListAppInstallationsResponseData {
9032
9011
  total_count: number;
9033
9012
  installations: {
9034
9013
  id: number;
@@ -9525,6 +9504,7 @@ export declare type IssuesListForOrgResponseData = {
9525
9504
  template_repository: string;
9526
9505
  temp_clone_token: string;
9527
9506
  allow_squash_merge: boolean;
9507
+ delete_branch_on_merge: boolean;
9528
9508
  allow_merge_commit: boolean;
9529
9509
  subscribers_count: number;
9530
9510
  network_count: number;
@@ -9580,11 +9560,11 @@ export declare type OrgsListMembersResponseData = {
9580
9560
  type: string;
9581
9561
  site_admin: boolean;
9582
9562
  }[];
9583
- declare type OrgsCheckMembershipEndpoint = {
9563
+ declare type OrgsCheckMembershipForUserEndpoint = {
9584
9564
  org: string;
9585
9565
  username: string;
9586
9566
  };
9587
- declare type OrgsCheckMembershipRequestOptions = {
9567
+ declare type OrgsCheckMembershipForUserRequestOptions = {
9588
9568
  method: "GET";
9589
9569
  url: "/orgs/:org/members/:username";
9590
9570
  headers: RequestHeaders;
@@ -9600,17 +9580,17 @@ declare type OrgsRemoveMemberRequestOptions = {
9600
9580
  headers: RequestHeaders;
9601
9581
  request: RequestRequestOptions;
9602
9582
  };
9603
- declare type OrgsGetMembershipEndpoint = {
9583
+ declare type OrgsGetMembershipForUserEndpoint = {
9604
9584
  org: string;
9605
9585
  username: string;
9606
9586
  };
9607
- declare type OrgsGetMembershipRequestOptions = {
9587
+ declare type OrgsGetMembershipForUserRequestOptions = {
9608
9588
  method: "GET";
9609
9589
  url: "/orgs/:org/memberships/:username";
9610
9590
  headers: RequestHeaders;
9611
9591
  request: RequestRequestOptions;
9612
9592
  };
9613
- export interface OrgsGetMembershipResponseData {
9593
+ export interface OrgsGetMembershipForUserResponseData {
9614
9594
  url: string;
9615
9595
  state: string;
9616
9596
  role: string;
@@ -9650,7 +9630,7 @@ export interface OrgsGetMembershipResponseData {
9650
9630
  site_admin: boolean;
9651
9631
  };
9652
9632
  }
9653
- declare type OrgsAddOrUpdateMembershipEndpoint = {
9633
+ declare type OrgsSetMembershipForUserEndpoint = {
9654
9634
  org: string;
9655
9635
  username: string;
9656
9636
  /**
@@ -9660,13 +9640,13 @@ declare type OrgsAddOrUpdateMembershipEndpoint = {
9660
9640
  */
9661
9641
  role?: "admin" | "member";
9662
9642
  };
9663
- declare type OrgsAddOrUpdateMembershipRequestOptions = {
9643
+ declare type OrgsSetMembershipForUserRequestOptions = {
9664
9644
  method: "PUT";
9665
9645
  url: "/orgs/:org/memberships/:username";
9666
9646
  headers: RequestHeaders;
9667
9647
  request: RequestRequestOptions;
9668
9648
  };
9669
- export interface OrgsAddOrUpdateMembershipResponseData {
9649
+ export interface OrgsSetMembershipForUserResponseData {
9670
9650
  url: string;
9671
9651
  state: string;
9672
9652
  role: string;
@@ -9706,11 +9686,11 @@ export interface OrgsAddOrUpdateMembershipResponseData {
9706
9686
  site_admin: boolean;
9707
9687
  };
9708
9688
  }
9709
- declare type OrgsRemoveMembershipEndpoint = {
9689
+ declare type OrgsRemoveMembershipForUserEndpoint = {
9710
9690
  org: string;
9711
9691
  username: string;
9712
9692
  };
9713
- declare type OrgsRemoveMembershipRequestOptions = {
9693
+ declare type OrgsRemoveMembershipForUserRequestOptions = {
9714
9694
  method: "DELETE";
9715
9695
  url: "/orgs/:org/memberships/:username";
9716
9696
  headers: RequestHeaders;
@@ -9858,6 +9838,7 @@ export interface MigrationsStartForOrgResponseData {
9858
9838
  template_repository: string;
9859
9839
  temp_clone_token: string;
9860
9840
  allow_squash_merge: boolean;
9841
+ delete_branch_on_merge: boolean;
9861
9842
  allow_merge_commit: boolean;
9862
9843
  subscribers_count: number;
9863
9844
  network_count: number;
@@ -10004,6 +9985,7 @@ export declare type MigrationsListForOrgResponseData = {
10004
9985
  template_repository: string;
10005
9986
  temp_clone_token: string;
10006
9987
  allow_squash_merge: boolean;
9988
+ delete_branch_on_merge: boolean;
10007
9989
  allow_merge_commit: boolean;
10008
9990
  subscribers_count: number;
10009
9991
  network_count: number;
@@ -10143,6 +10125,7 @@ export interface MigrationsGetStatusForOrgResponseData {
10143
10125
  template_repository: string;
10144
10126
  temp_clone_token: string;
10145
10127
  allow_squash_merge: boolean;
10128
+ delete_branch_on_merge: boolean;
10146
10129
  allow_merge_commit: boolean;
10147
10130
  subscribers_count: number;
10148
10131
  network_count: number;
@@ -10299,6 +10282,7 @@ export declare type MigrationsListReposForOrgResponseData = {
10299
10282
  };
10300
10283
  template_repository: string;
10301
10284
  temp_clone_token: string;
10285
+ delete_branch_on_merge: boolean;
10302
10286
  subscribers_count: number;
10303
10287
  network_count: number;
10304
10288
  license: {
@@ -10523,31 +10507,31 @@ export declare type OrgsListPublicMembersResponseData = {
10523
10507
  type: string;
10524
10508
  site_admin: boolean;
10525
10509
  }[];
10526
- declare type OrgsCheckPublicMembershipEndpoint = {
10510
+ declare type OrgsCheckPublicMembershipForUserEndpoint = {
10527
10511
  org: string;
10528
10512
  username: string;
10529
10513
  };
10530
- declare type OrgsCheckPublicMembershipRequestOptions = {
10514
+ declare type OrgsCheckPublicMembershipForUserRequestOptions = {
10531
10515
  method: "GET";
10532
10516
  url: "/orgs/:org/public_members/:username";
10533
10517
  headers: RequestHeaders;
10534
10518
  request: RequestRequestOptions;
10535
10519
  };
10536
- declare type OrgsPublicizeMembershipEndpoint = {
10520
+ declare type OrgsSetPublicMembershipForAuthenticatedUserEndpoint = {
10537
10521
  org: string;
10538
10522
  username: string;
10539
10523
  };
10540
- declare type OrgsPublicizeMembershipRequestOptions = {
10524
+ declare type OrgsSetPublicMembershipForAuthenticatedUserRequestOptions = {
10541
10525
  method: "PUT";
10542
10526
  url: "/orgs/:org/public_members/:username";
10543
10527
  headers: RequestHeaders;
10544
10528
  request: RequestRequestOptions;
10545
10529
  };
10546
- declare type OrgsConcealMembershipEndpoint = {
10530
+ declare type OrgsRemovePublicMembershipForAuthenticatedUserEndpoint = {
10547
10531
  org: string;
10548
10532
  username: string;
10549
10533
  };
10550
- declare type OrgsConcealMembershipRequestOptions = {
10534
+ declare type OrgsRemovePublicMembershipForAuthenticatedUserRequestOptions = {
10551
10535
  method: "DELETE";
10552
10536
  url: "/orgs/:org/public_members/:username";
10553
10537
  headers: RequestHeaders;
@@ -10681,6 +10665,7 @@ export declare type ReposListForOrgResponseData = {
10681
10665
  };
10682
10666
  template_repository: string;
10683
10667
  temp_clone_token: string;
10668
+ delete_branch_on_merge: boolean;
10684
10669
  subscribers_count: number;
10685
10670
  network_count: number;
10686
10671
  license: {
@@ -10870,6 +10855,7 @@ export interface ReposCreateInOrgResponseData {
10870
10855
  template_repository: string;
10871
10856
  temp_clone_token: string;
10872
10857
  allow_squash_merge: boolean;
10858
+ delete_branch_on_merge: boolean;
10873
10859
  allow_merge_commit: boolean;
10874
10860
  subscribers_count: number;
10875
10861
  network_count: number;
@@ -12323,6 +12309,7 @@ export declare type TeamsListReposInOrgResponseData = {
12323
12309
  };
12324
12310
  template_repository: string;
12325
12311
  temp_clone_token: string;
12312
+ delete_branch_on_merge: boolean;
12326
12313
  subscribers_count: number;
12327
12314
  network_count: number;
12328
12315
  license: {
@@ -12467,6 +12454,7 @@ export interface TeamsCheckPermissionsForRepoInOrgResponseData {
12467
12454
  template_repository: string;
12468
12455
  temp_clone_token: string;
12469
12456
  allow_squash_merge: boolean;
12457
+ delete_branch_on_merge: boolean;
12470
12458
  allow_merge_commit: boolean;
12471
12459
  subscribers_count: number;
12472
12460
  network_count: number;
@@ -12572,6 +12560,7 @@ export interface TeamsCheckPermissionsForRepoInOrgResponseData {
12572
12560
  template_repository: string;
12573
12561
  temp_clone_token: string;
12574
12562
  allow_squash_merge: boolean;
12563
+ delete_branch_on_merge: boolean;
12575
12564
  allow_merge_commit: boolean;
12576
12565
  subscribers_count: number;
12577
12566
  network_count: number;
@@ -13045,7 +13034,7 @@ declare type ProjectsUpdateEndpoint = {
13045
13034
  */
13046
13035
  state?: "open" | "closed";
13047
13036
  /**
13048
- * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project permissions](https://developer.github.com/v3/teams/#add-or-update-team-project-permissions) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator).
13037
+ * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project permissions](https://developer.github.com/v3/teams/#add-or-update-team-project-permissions) or [Add project collaborator](https://developer.github.com/v3/projects/collaborators/#add-project-collaborator).
13049
13038
  *
13050
13039
  * **Note:** Updating a project's `organization_permission` requires `admin` access to the project.
13051
13040
  *
@@ -13185,17 +13174,17 @@ declare type ProjectsRemoveCollaboratorRequestOptions = {
13185
13174
  headers: RequestHeaders;
13186
13175
  request: RequestRequestOptions;
13187
13176
  };
13188
- declare type ProjectsReviewUserPermissionLevelEndpoint = {
13177
+ declare type ProjectsGetPermissionForUserEndpoint = {
13189
13178
  project_id: number;
13190
13179
  username: string;
13191
13180
  } & RequiredPreview<"inertia">;
13192
- declare type ProjectsReviewUserPermissionLevelRequestOptions = {
13181
+ declare type ProjectsGetPermissionForUserRequestOptions = {
13193
13182
  method: "GET";
13194
13183
  url: "/projects/:project_id/collaborators/:username/permission";
13195
13184
  headers: RequestHeaders;
13196
13185
  request: RequestRequestOptions;
13197
13186
  };
13198
- export interface ProjectsReviewUserPermissionLevelResponseData {
13187
+ export interface ProjectsGetPermissionForUserResponseData {
13199
13188
  permission: string;
13200
13189
  user: {
13201
13190
  login: string;
@@ -13426,6 +13415,7 @@ export interface ReposGetResponseData {
13426
13415
  template_repository: string;
13427
13416
  temp_clone_token: string;
13428
13417
  allow_squash_merge: boolean;
13418
+ delete_branch_on_merge: boolean;
13429
13419
  allow_merge_commit: boolean;
13430
13420
  subscribers_count: number;
13431
13421
  network_count: number;
@@ -13557,6 +13547,7 @@ export interface ReposGetResponseData {
13557
13547
  template_repository: string;
13558
13548
  temp_clone_token: string;
13559
13549
  allow_squash_merge: boolean;
13550
+ delete_branch_on_merge: boolean;
13560
13551
  allow_merge_commit: boolean;
13561
13552
  subscribers_count: number;
13562
13553
  network_count: number;
@@ -13662,6 +13653,7 @@ export interface ReposGetResponseData {
13662
13653
  template_repository: string;
13663
13654
  temp_clone_token: string;
13664
13655
  allow_squash_merge: boolean;
13656
+ delete_branch_on_merge: boolean;
13665
13657
  allow_merge_commit: boolean;
13666
13658
  subscribers_count: number;
13667
13659
  network_count: number;
@@ -13841,6 +13833,7 @@ export interface ReposUpdateResponseData {
13841
13833
  template_repository: string;
13842
13834
  temp_clone_token: string;
13843
13835
  allow_squash_merge: boolean;
13836
+ delete_branch_on_merge: boolean;
13844
13837
  allow_merge_commit: boolean;
13845
13838
  subscribers_count: number;
13846
13839
  network_count: number;
@@ -13965,6 +13958,7 @@ export interface ReposUpdateResponseData {
13965
13958
  template_repository: string;
13966
13959
  temp_clone_token: string;
13967
13960
  allow_squash_merge: boolean;
13961
+ delete_branch_on_merge: boolean;
13968
13962
  allow_merge_commit: boolean;
13969
13963
  subscribers_count: number;
13970
13964
  network_count: number;
@@ -14070,6 +14064,7 @@ export interface ReposUpdateResponseData {
14070
14064
  template_repository: string;
14071
14065
  temp_clone_token: string;
14072
14066
  allow_squash_merge: boolean;
14067
+ delete_branch_on_merge: boolean;
14073
14068
  allow_merge_commit: boolean;
14074
14069
  subscribers_count: number;
14075
14070
  network_count: number;
@@ -15743,70 +15738,70 @@ export interface ReposUpdateBranchProtectionResponseData {
15743
15738
  enabled: boolean;
15744
15739
  };
15745
15740
  }
15746
- declare type ReposRemoveBranchProtectionEndpoint = {
15741
+ declare type ReposDeleteBranchProtectionEndpoint = {
15747
15742
  owner: string;
15748
15743
  repo: string;
15749
15744
  branch: string;
15750
15745
  };
15751
- declare type ReposRemoveBranchProtectionRequestOptions = {
15746
+ declare type ReposDeleteBranchProtectionRequestOptions = {
15752
15747
  method: "DELETE";
15753
15748
  url: "/repos/:owner/:repo/branches/:branch/protection";
15754
15749
  headers: RequestHeaders;
15755
15750
  request: RequestRequestOptions;
15756
15751
  };
15757
- declare type ReposGetProtectedBranchAdminEnforcementEndpoint = {
15752
+ declare type ReposGetAdminBranchProtectionEndpoint = {
15758
15753
  owner: string;
15759
15754
  repo: string;
15760
15755
  branch: string;
15761
15756
  };
15762
- declare type ReposGetProtectedBranchAdminEnforcementRequestOptions = {
15757
+ declare type ReposGetAdminBranchProtectionRequestOptions = {
15763
15758
  method: "GET";
15764
15759
  url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins";
15765
15760
  headers: RequestHeaders;
15766
15761
  request: RequestRequestOptions;
15767
15762
  };
15768
- export interface ReposGetProtectedBranchAdminEnforcementResponseData {
15763
+ export interface ReposGetAdminBranchProtectionResponseData {
15769
15764
  url: string;
15770
15765
  enabled: boolean;
15771
15766
  }
15772
- declare type ReposAddProtectedBranchAdminEnforcementEndpoint = {
15767
+ declare type ReposSetAdminBranchProtectionEndpoint = {
15773
15768
  owner: string;
15774
15769
  repo: string;
15775
15770
  branch: string;
15776
15771
  };
15777
- declare type ReposAddProtectedBranchAdminEnforcementRequestOptions = {
15772
+ declare type ReposSetAdminBranchProtectionRequestOptions = {
15778
15773
  method: "POST";
15779
15774
  url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins";
15780
15775
  headers: RequestHeaders;
15781
15776
  request: RequestRequestOptions;
15782
15777
  };
15783
- export interface ReposAddProtectedBranchAdminEnforcementResponseData {
15778
+ export interface ReposSetAdminBranchProtectionResponseData {
15784
15779
  url: string;
15785
15780
  enabled: boolean;
15786
15781
  }
15787
- declare type ReposRemoveProtectedBranchAdminEnforcementEndpoint = {
15782
+ declare type ReposDeleteAdminBranchProtectionEndpoint = {
15788
15783
  owner: string;
15789
15784
  repo: string;
15790
15785
  branch: string;
15791
15786
  };
15792
- declare type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = {
15787
+ declare type ReposDeleteAdminBranchProtectionRequestOptions = {
15793
15788
  method: "DELETE";
15794
15789
  url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins";
15795
15790
  headers: RequestHeaders;
15796
15791
  request: RequestRequestOptions;
15797
15792
  };
15798
- declare type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = {
15793
+ declare type ReposGetPullRequestReviewProtectionEndpoint = {
15799
15794
  owner: string;
15800
15795
  repo: string;
15801
15796
  branch: string;
15802
15797
  };
15803
- declare type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = {
15798
+ declare type ReposGetPullRequestReviewProtectionRequestOptions = {
15804
15799
  method: "GET";
15805
15800
  url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews";
15806
15801
  headers: RequestHeaders;
15807
15802
  request: RequestRequestOptions;
15808
15803
  };
15809
- export interface ReposGetProtectedBranchPullRequestReviewEnforcementResponseData {
15804
+ export interface ReposGetPullRequestReviewProtectionResponseData {
15810
15805
  url: string;
15811
15806
  dismissal_restrictions: {
15812
15807
  url: string;
@@ -15851,14 +15846,14 @@ export interface ReposGetProtectedBranchPullRequestReviewEnforcementResponseData
15851
15846
  require_code_owner_reviews: boolean;
15852
15847
  required_approving_review_count: number;
15853
15848
  }
15854
- declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = {
15849
+ declare type ReposUpdatePullRequestReviewProtectionEndpoint = {
15855
15850
  owner: string;
15856
15851
  repo: string;
15857
15852
  branch: string;
15858
15853
  /**
15859
15854
  * Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.
15860
15855
  */
15861
- dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions;
15856
+ dismissal_restrictions?: ReposUpdatePullRequestReviewProtectionParamsDismissalRestrictions;
15862
15857
  /**
15863
15858
  * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.
15864
15859
  */
@@ -15872,13 +15867,13 @@ declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = {
15872
15867
  */
15873
15868
  required_approving_review_count?: number;
15874
15869
  };
15875
- declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = {
15870
+ declare type ReposUpdatePullRequestReviewProtectionRequestOptions = {
15876
15871
  method: "PATCH";
15877
15872
  url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews";
15878
15873
  headers: RequestHeaders;
15879
15874
  request: RequestRequestOptions;
15880
15875
  };
15881
- export interface ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseData {
15876
+ export interface ReposUpdatePullRequestReviewProtectionResponseData {
15882
15877
  url: string;
15883
15878
  dismissal_restrictions: {
15884
15879
  url: string;
@@ -15923,76 +15918,76 @@ export interface ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseD
15923
15918
  require_code_owner_reviews: boolean;
15924
15919
  required_approving_review_count: number;
15925
15920
  }
15926
- declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = {
15921
+ declare type ReposDeletePullRequestReviewProtectionEndpoint = {
15927
15922
  owner: string;
15928
15923
  repo: string;
15929
15924
  branch: string;
15930
15925
  };
15931
- declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = {
15926
+ declare type ReposDeletePullRequestReviewProtectionRequestOptions = {
15932
15927
  method: "DELETE";
15933
15928
  url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews";
15934
15929
  headers: RequestHeaders;
15935
15930
  request: RequestRequestOptions;
15936
15931
  };
15937
- declare type ReposGetProtectedBranchRequiredSignaturesEndpoint = {
15932
+ declare type ReposGetCommitSignatureProtectionEndpoint = {
15938
15933
  owner: string;
15939
15934
  repo: string;
15940
15935
  branch: string;
15941
15936
  } & RequiredPreview<"zzzax">;
15942
- declare type ReposGetProtectedBranchRequiredSignaturesRequestOptions = {
15937
+ declare type ReposGetCommitSignatureProtectionRequestOptions = {
15943
15938
  method: "GET";
15944
15939
  url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures";
15945
15940
  headers: RequestHeaders;
15946
15941
  request: RequestRequestOptions;
15947
15942
  };
15948
- export interface ReposGetProtectedBranchRequiredSignaturesResponseData {
15943
+ export interface ReposGetCommitSignatureProtectionResponseData {
15949
15944
  url: string;
15950
15945
  enabled: boolean;
15951
15946
  }
15952
- declare type ReposAddProtectedBranchRequiredSignaturesEndpoint = {
15947
+ declare type ReposCreateCommitSignatureProtectionEndpoint = {
15953
15948
  owner: string;
15954
15949
  repo: string;
15955
15950
  branch: string;
15956
15951
  } & RequiredPreview<"zzzax">;
15957
- declare type ReposAddProtectedBranchRequiredSignaturesRequestOptions = {
15952
+ declare type ReposCreateCommitSignatureProtectionRequestOptions = {
15958
15953
  method: "POST";
15959
15954
  url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures";
15960
15955
  headers: RequestHeaders;
15961
15956
  request: RequestRequestOptions;
15962
15957
  };
15963
- export interface ReposAddProtectedBranchRequiredSignaturesResponseData {
15958
+ export interface ReposCreateCommitSignatureProtectionResponseData {
15964
15959
  url: string;
15965
15960
  enabled: boolean;
15966
15961
  }
15967
- declare type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = {
15962
+ declare type ReposDeleteCommitSignatureProtectionEndpoint = {
15968
15963
  owner: string;
15969
15964
  repo: string;
15970
15965
  branch: string;
15971
15966
  } & RequiredPreview<"zzzax">;
15972
- declare type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = {
15967
+ declare type ReposDeleteCommitSignatureProtectionRequestOptions = {
15973
15968
  method: "DELETE";
15974
15969
  url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures";
15975
15970
  headers: RequestHeaders;
15976
15971
  request: RequestRequestOptions;
15977
15972
  };
15978
- declare type ReposGetProtectedBranchRequiredStatusChecksEndpoint = {
15973
+ declare type ReposGetStatusChecksProtectionEndpoint = {
15979
15974
  owner: string;
15980
15975
  repo: string;
15981
15976
  branch: string;
15982
15977
  };
15983
- declare type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = {
15978
+ declare type ReposGetStatusChecksProtectionRequestOptions = {
15984
15979
  method: "GET";
15985
15980
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks";
15986
15981
  headers: RequestHeaders;
15987
15982
  request: RequestRequestOptions;
15988
15983
  };
15989
- export interface ReposGetProtectedBranchRequiredStatusChecksResponseData {
15984
+ export interface ReposGetStatusChecksProtectionResponseData {
15990
15985
  url: string;
15991
15986
  strict: boolean;
15992
15987
  contexts: string[];
15993
15988
  contexts_url: string;
15994
15989
  }
15995
- declare type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = {
15990
+ declare type ReposUpdateStatusCheckPotectionEndpoint = {
15996
15991
  owner: string;
15997
15992
  repo: string;
15998
15993
  branch: string;
@@ -16005,42 +16000,42 @@ declare type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = {
16005
16000
  */
16006
16001
  contexts?: string[];
16007
16002
  };
16008
- declare type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = {
16003
+ declare type ReposUpdateStatusCheckPotectionRequestOptions = {
16009
16004
  method: "PATCH";
16010
16005
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks";
16011
16006
  headers: RequestHeaders;
16012
16007
  request: RequestRequestOptions;
16013
16008
  };
16014
- export interface ReposUpdateProtectedBranchRequiredStatusChecksResponseData {
16009
+ export interface ReposUpdateStatusCheckPotectionResponseData {
16015
16010
  url: string;
16016
16011
  strict: boolean;
16017
16012
  contexts: string[];
16018
16013
  contexts_url: string;
16019
16014
  }
16020
- declare type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = {
16015
+ declare type ReposRemoveStatusCheckProtectionEndpoint = {
16021
16016
  owner: string;
16022
16017
  repo: string;
16023
16018
  branch: string;
16024
16019
  };
16025
- declare type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = {
16020
+ declare type ReposRemoveStatusCheckProtectionRequestOptions = {
16026
16021
  method: "DELETE";
16027
16022
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks";
16028
16023
  headers: RequestHeaders;
16029
16024
  request: RequestRequestOptions;
16030
16025
  };
16031
- declare type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = {
16026
+ declare type ReposGetAllStatusCheckContextsEndpoint = {
16032
16027
  owner: string;
16033
16028
  repo: string;
16034
16029
  branch: string;
16035
16030
  };
16036
- declare type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = {
16031
+ declare type ReposGetAllStatusCheckContextsRequestOptions = {
16037
16032
  method: "GET";
16038
16033
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts";
16039
16034
  headers: RequestHeaders;
16040
16035
  request: RequestRequestOptions;
16041
16036
  };
16042
- export declare type ReposListProtectedBranchRequiredStatusChecksContextsResponseData = string[];
16043
- declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = {
16037
+ export declare type ReposGetAllStatusCheckContextsResponseData = string[];
16038
+ declare type ReposSetStatusCheckContextsEndpoint = {
16044
16039
  owner: string;
16045
16040
  repo: string;
16046
16041
  branch: string;
@@ -16049,14 +16044,14 @@ declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = {
16049
16044
  */
16050
16045
  contexts: string[];
16051
16046
  };
16052
- declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = {
16047
+ declare type ReposSetStatusCheckContextsRequestOptions = {
16053
16048
  method: "PUT";
16054
16049
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts";
16055
16050
  headers: RequestHeaders;
16056
16051
  request: RequestRequestOptions;
16057
16052
  };
16058
- export declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponseData = string[];
16059
- declare type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = {
16053
+ export declare type ReposSetStatusCheckContextsResponseData = string[];
16054
+ declare type ReposAddStatusCheckContextsEndpoint = {
16060
16055
  owner: string;
16061
16056
  repo: string;
16062
16057
  branch: string;
@@ -16065,14 +16060,14 @@ declare type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = {
16065
16060
  */
16066
16061
  contexts: string[];
16067
16062
  };
16068
- declare type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = {
16063
+ declare type ReposAddStatusCheckContextsRequestOptions = {
16069
16064
  method: "POST";
16070
16065
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts";
16071
16066
  headers: RequestHeaders;
16072
16067
  request: RequestRequestOptions;
16073
16068
  };
16074
- export declare type ReposAddProtectedBranchRequiredStatusChecksContextsResponseData = string[];
16075
- declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = {
16069
+ export declare type ReposAddStatusCheckContextsResponseData = string[];
16070
+ declare type ReposRemoveStatusCheckContextsEndpoint = {
16076
16071
  owner: string;
16077
16072
  repo: string;
16078
16073
  branch: string;
@@ -16081,25 +16076,25 @@ declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = {
16081
16076
  */
16082
16077
  contexts: string[];
16083
16078
  };
16084
- declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = {
16079
+ declare type ReposRemoveStatusCheckContextsRequestOptions = {
16085
16080
  method: "DELETE";
16086
16081
  url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts";
16087
16082
  headers: RequestHeaders;
16088
16083
  request: RequestRequestOptions;
16089
16084
  };
16090
- export declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponseData = string[];
16091
- declare type ReposGetProtectedBranchRestrictionsEndpoint = {
16085
+ export declare type ReposRemoveStatusCheckContextsResponseData = string[];
16086
+ declare type ReposGetAccessRestrictionsEndpoint = {
16092
16087
  owner: string;
16093
16088
  repo: string;
16094
16089
  branch: string;
16095
16090
  };
16096
- declare type ReposGetProtectedBranchRestrictionsRequestOptions = {
16091
+ declare type ReposGetAccessRestrictionsRequestOptions = {
16097
16092
  method: "GET";
16098
16093
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions";
16099
16094
  headers: RequestHeaders;
16100
16095
  request: RequestRequestOptions;
16101
16096
  };
16102
- export interface ReposGetProtectedBranchRestrictionsResponseData {
16097
+ export interface ReposGetAccessRestrictionsResponseData {
16103
16098
  url: string;
16104
16099
  users_url: string;
16105
16100
  teams_url: string;
@@ -16171,12 +16166,12 @@ export interface ReposGetProtectedBranchRestrictionsResponseData {
16171
16166
  events: string[];
16172
16167
  }[];
16173
16168
  }
16174
- declare type ReposRemoveProtectedBranchRestrictionsEndpoint = {
16169
+ declare type ReposDeleteAccessRestrictionsEndpoint = {
16175
16170
  owner: string;
16176
16171
  repo: string;
16177
16172
  branch: string;
16178
16173
  };
16179
- declare type ReposRemoveProtectedBranchRestrictionsRequestOptions = {
16174
+ declare type ReposDeleteAccessRestrictionsRequestOptions = {
16180
16175
  method: "DELETE";
16181
16176
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions";
16182
16177
  headers: RequestHeaders;
@@ -16225,7 +16220,7 @@ export declare type ReposGetAppsWithAccessToProtectedBranchResponseData = {
16225
16220
  };
16226
16221
  events: string[];
16227
16222
  }[];
16228
- declare type ReposReplaceProtectedBranchAppRestrictionsEndpoint = {
16223
+ declare type ReposSetAppAccessRestrictionsEndpoint = {
16229
16224
  owner: string;
16230
16225
  repo: string;
16231
16226
  branch: string;
@@ -16234,13 +16229,13 @@ declare type ReposReplaceProtectedBranchAppRestrictionsEndpoint = {
16234
16229
  */
16235
16230
  apps: string[];
16236
16231
  };
16237
- declare type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = {
16232
+ declare type ReposSetAppAccessRestrictionsRequestOptions = {
16238
16233
  method: "PUT";
16239
16234
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps";
16240
16235
  headers: RequestHeaders;
16241
16236
  request: RequestRequestOptions;
16242
16237
  };
16243
- export declare type ReposReplaceProtectedBranchAppRestrictionsResponseData = {
16238
+ export declare type ReposSetAppAccessRestrictionsResponseData = {
16244
16239
  id: number;
16245
16240
  slug: string;
16246
16241
  node_id: string;
@@ -16272,7 +16267,7 @@ export declare type ReposReplaceProtectedBranchAppRestrictionsResponseData = {
16272
16267
  };
16273
16268
  events: string[];
16274
16269
  }[];
16275
- declare type ReposAddProtectedBranchAppRestrictionsEndpoint = {
16270
+ declare type ReposAddAppAccessRestrictionsEndpoint = {
16276
16271
  owner: string;
16277
16272
  repo: string;
16278
16273
  branch: string;
@@ -16281,13 +16276,13 @@ declare type ReposAddProtectedBranchAppRestrictionsEndpoint = {
16281
16276
  */
16282
16277
  apps: string[];
16283
16278
  };
16284
- declare type ReposAddProtectedBranchAppRestrictionsRequestOptions = {
16279
+ declare type ReposAddAppAccessRestrictionsRequestOptions = {
16285
16280
  method: "POST";
16286
16281
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps";
16287
16282
  headers: RequestHeaders;
16288
16283
  request: RequestRequestOptions;
16289
16284
  };
16290
- export declare type ReposAddProtectedBranchAppRestrictionsResponseData = {
16285
+ export declare type ReposAddAppAccessRestrictionsResponseData = {
16291
16286
  id: number;
16292
16287
  slug: string;
16293
16288
  node_id: string;
@@ -16319,7 +16314,7 @@ export declare type ReposAddProtectedBranchAppRestrictionsResponseData = {
16319
16314
  };
16320
16315
  events: string[];
16321
16316
  }[];
16322
- declare type ReposRemoveProtectedBranchAppRestrictionsEndpoint = {
16317
+ declare type ReposRemoveAppAccessRestrictionsEndpoint = {
16323
16318
  owner: string;
16324
16319
  repo: string;
16325
16320
  branch: string;
@@ -16328,13 +16323,13 @@ declare type ReposRemoveProtectedBranchAppRestrictionsEndpoint = {
16328
16323
  */
16329
16324
  apps: string[];
16330
16325
  };
16331
- declare type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = {
16326
+ declare type ReposRemoveAppAccessRestrictionsRequestOptions = {
16332
16327
  method: "DELETE";
16333
16328
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps";
16334
16329
  headers: RequestHeaders;
16335
16330
  request: RequestRequestOptions;
16336
16331
  };
16337
- export declare type ReposRemoveProtectedBranchAppRestrictionsResponseData = {
16332
+ export declare type ReposRemoveAppAccessRestrictionsResponseData = {
16338
16333
  id: number;
16339
16334
  slug: string;
16340
16335
  node_id: string;
@@ -16391,7 +16386,7 @@ export declare type ReposGetTeamsWithAccessToProtectedBranchResponseData = {
16391
16386
  repositories_url: string;
16392
16387
  parent: string;
16393
16388
  }[];
16394
- declare type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = {
16389
+ declare type ReposSetTeamAccessRestrictionsEndpoint = {
16395
16390
  owner: string;
16396
16391
  repo: string;
16397
16392
  branch: string;
@@ -16400,13 +16395,13 @@ declare type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = {
16400
16395
  */
16401
16396
  teams: string[];
16402
16397
  };
16403
- declare type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = {
16398
+ declare type ReposSetTeamAccessRestrictionsRequestOptions = {
16404
16399
  method: "PUT";
16405
16400
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams";
16406
16401
  headers: RequestHeaders;
16407
16402
  request: RequestRequestOptions;
16408
16403
  };
16409
- export declare type ReposReplaceProtectedBranchTeamRestrictionsResponseData = {
16404
+ export declare type ReposSetTeamAccessRestrictionsResponseData = {
16410
16405
  id: number;
16411
16406
  node_id: string;
16412
16407
  url: string;
@@ -16420,7 +16415,7 @@ export declare type ReposReplaceProtectedBranchTeamRestrictionsResponseData = {
16420
16415
  repositories_url: string;
16421
16416
  parent: string;
16422
16417
  }[];
16423
- declare type ReposAddProtectedBranchTeamRestrictionsEndpoint = {
16418
+ declare type ReposAddTeamAccessRestrictionsEndpoint = {
16424
16419
  owner: string;
16425
16420
  repo: string;
16426
16421
  branch: string;
@@ -16429,13 +16424,13 @@ declare type ReposAddProtectedBranchTeamRestrictionsEndpoint = {
16429
16424
  */
16430
16425
  teams: string[];
16431
16426
  };
16432
- declare type ReposAddProtectedBranchTeamRestrictionsRequestOptions = {
16427
+ declare type ReposAddTeamAccessRestrictionsRequestOptions = {
16433
16428
  method: "POST";
16434
16429
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams";
16435
16430
  headers: RequestHeaders;
16436
16431
  request: RequestRequestOptions;
16437
16432
  };
16438
- export declare type ReposAddProtectedBranchTeamRestrictionsResponseData = {
16433
+ export declare type ReposAddTeamAccessRestrictionsResponseData = {
16439
16434
  id: number;
16440
16435
  node_id: string;
16441
16436
  url: string;
@@ -16449,7 +16444,7 @@ export declare type ReposAddProtectedBranchTeamRestrictionsResponseData = {
16449
16444
  repositories_url: string;
16450
16445
  parent: string;
16451
16446
  }[];
16452
- declare type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = {
16447
+ declare type ReposRemoveTeamAccessRestrictionsEndpoint = {
16453
16448
  owner: string;
16454
16449
  repo: string;
16455
16450
  branch: string;
@@ -16458,13 +16453,13 @@ declare type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = {
16458
16453
  */
16459
16454
  teams: string[];
16460
16455
  };
16461
- declare type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = {
16456
+ declare type ReposRemoveTeamAccessRestrictionsRequestOptions = {
16462
16457
  method: "DELETE";
16463
16458
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams";
16464
16459
  headers: RequestHeaders;
16465
16460
  request: RequestRequestOptions;
16466
16461
  };
16467
- export declare type ReposRemoveProtectedBranchTeamRestrictionsResponseData = {
16462
+ export declare type ReposRemoveTeamAccessRestrictionsResponseData = {
16468
16463
  id: number;
16469
16464
  node_id: string;
16470
16465
  url: string;
@@ -16509,7 +16504,7 @@ export declare type ReposGetUsersWithAccessToProtectedBranchResponseData = {
16509
16504
  type: string;
16510
16505
  site_admin: boolean;
16511
16506
  }[];
16512
- declare type ReposReplaceProtectedBranchUserRestrictionsEndpoint = {
16507
+ declare type ReposSetUserAccessRestrictionsEndpoint = {
16513
16508
  owner: string;
16514
16509
  repo: string;
16515
16510
  branch: string;
@@ -16518,13 +16513,13 @@ declare type ReposReplaceProtectedBranchUserRestrictionsEndpoint = {
16518
16513
  */
16519
16514
  users: string[];
16520
16515
  };
16521
- declare type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = {
16516
+ declare type ReposSetUserAccessRestrictionsRequestOptions = {
16522
16517
  method: "PUT";
16523
16518
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users";
16524
16519
  headers: RequestHeaders;
16525
16520
  request: RequestRequestOptions;
16526
16521
  };
16527
- export declare type ReposReplaceProtectedBranchUserRestrictionsResponseData = {
16522
+ export declare type ReposSetUserAccessRestrictionsResponseData = {
16528
16523
  login: string;
16529
16524
  id: number;
16530
16525
  node_id: string;
@@ -16544,7 +16539,7 @@ export declare type ReposReplaceProtectedBranchUserRestrictionsResponseData = {
16544
16539
  type: string;
16545
16540
  site_admin: boolean;
16546
16541
  }[];
16547
- declare type ReposAddProtectedBranchUserRestrictionsEndpoint = {
16542
+ declare type ReposAddUserAccessRestrictionsEndpoint = {
16548
16543
  owner: string;
16549
16544
  repo: string;
16550
16545
  branch: string;
@@ -16553,13 +16548,13 @@ declare type ReposAddProtectedBranchUserRestrictionsEndpoint = {
16553
16548
  */
16554
16549
  users: string[];
16555
16550
  };
16556
- declare type ReposAddProtectedBranchUserRestrictionsRequestOptions = {
16551
+ declare type ReposAddUserAccessRestrictionsRequestOptions = {
16557
16552
  method: "POST";
16558
16553
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users";
16559
16554
  headers: RequestHeaders;
16560
16555
  request: RequestRequestOptions;
16561
16556
  };
16562
- export declare type ReposAddProtectedBranchUserRestrictionsResponseData = {
16557
+ export declare type ReposAddUserAccessRestrictionsResponseData = {
16563
16558
  login: string;
16564
16559
  id: number;
16565
16560
  node_id: string;
@@ -16579,7 +16574,7 @@ export declare type ReposAddProtectedBranchUserRestrictionsResponseData = {
16579
16574
  type: string;
16580
16575
  site_admin: boolean;
16581
16576
  }[];
16582
- declare type ReposRemoveProtectedBranchUserRestrictionsEndpoint = {
16577
+ declare type ReposRemoveUserAccessRestrictionsEndpoint = {
16583
16578
  owner: string;
16584
16579
  repo: string;
16585
16580
  branch: string;
@@ -16588,13 +16583,13 @@ declare type ReposRemoveProtectedBranchUserRestrictionsEndpoint = {
16588
16583
  */
16589
16584
  users: string[];
16590
16585
  };
16591
- declare type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = {
16586
+ declare type ReposRemoveUserAccessRestrictionsRequestOptions = {
16592
16587
  method: "DELETE";
16593
16588
  url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users";
16594
16589
  headers: RequestHeaders;
16595
16590
  request: RequestRequestOptions;
16596
16591
  };
16597
- export declare type ReposRemoveProtectedBranchUserRestrictionsResponseData = {
16592
+ export declare type ReposRemoveUserAccessRestrictionsResponseData = {
16598
16593
  login: string;
16599
16594
  id: number;
16600
16595
  node_id: string;
@@ -17147,6 +17142,7 @@ export interface ChecksCreateSuiteResponseData {
17147
17142
  template_repository: string;
17148
17143
  temp_clone_token: string;
17149
17144
  allow_squash_merge: boolean;
17145
+ delete_branch_on_merge: boolean;
17150
17146
  allow_merge_commit: boolean;
17151
17147
  subscribers_count: number;
17152
17148
  network_count: number;
@@ -17274,6 +17270,7 @@ export interface ChecksSetSuitesPreferencesResponseData {
17274
17270
  template_repository: string;
17275
17271
  temp_clone_token: string;
17276
17272
  allow_squash_merge: boolean;
17273
+ delete_branch_on_merge: boolean;
17277
17274
  allow_merge_commit: boolean;
17278
17275
  subscribers_count: number;
17279
17276
  network_count: number;
@@ -17434,6 +17431,7 @@ export interface ChecksGetSuiteResponseData {
17434
17431
  template_repository: string;
17435
17432
  temp_clone_token: string;
17436
17433
  allow_squash_merge: boolean;
17434
+ delete_branch_on_merge: boolean;
17437
17435
  allow_merge_commit: boolean;
17438
17436
  subscribers_count: number;
17439
17437
  network_count: number;
@@ -17857,7 +17855,7 @@ export interface ReposGetCollaboratorPermissionLevelResponseData {
17857
17855
  site_admin: boolean;
17858
17856
  };
17859
17857
  }
17860
- declare type ReposListCommitCommentsEndpoint = {
17858
+ declare type ReposListCommitCommentsForRepoEndpoint = {
17861
17859
  owner: string;
17862
17860
  repo: string;
17863
17861
  /**
@@ -17869,13 +17867,13 @@ declare type ReposListCommitCommentsEndpoint = {
17869
17867
  */
17870
17868
  page?: number;
17871
17869
  };
17872
- declare type ReposListCommitCommentsRequestOptions = {
17870
+ declare type ReposListCommitCommentsForRepoRequestOptions = {
17873
17871
  method: "GET";
17874
17872
  url: "/repos/:owner/:repo/comments";
17875
17873
  headers: RequestHeaders;
17876
17874
  request: RequestRequestOptions;
17877
17875
  };
17878
- export declare type ReposListCommitCommentsResponseData = {
17876
+ export declare type ReposListCommitCommentsForRepoResponseData = {
17879
17877
  html_url: string;
17880
17878
  url: string;
17881
17879
  id: number;
@@ -18666,6 +18664,7 @@ export declare type ReposListPullRequestsAssociatedWithCommitResponseData = {
18666
18664
  template_repository: string;
18667
18665
  temp_clone_token: string;
18668
18666
  allow_squash_merge: boolean;
18667
+ delete_branch_on_merge: boolean;
18669
18668
  allow_merge_commit: boolean;
18670
18669
  subscribers_count: number;
18671
18670
  network_count: number;
@@ -18796,6 +18795,7 @@ export declare type ReposListPullRequestsAssociatedWithCommitResponseData = {
18796
18795
  template_repository: string;
18797
18796
  temp_clone_token: string;
18798
18797
  allow_squash_merge: boolean;
18798
+ delete_branch_on_merge: boolean;
18799
18799
  allow_merge_commit: boolean;
18800
18800
  subscribers_count: number;
18801
18801
  network_count: number;
@@ -19218,6 +19218,7 @@ export interface ChecksListSuitesForRefResponseData {
19218
19218
  template_repository: string;
19219
19219
  temp_clone_token: string;
19220
19220
  allow_squash_merge: boolean;
19221
+ delete_branch_on_merge: boolean;
19221
19222
  allow_merge_commit: boolean;
19222
19223
  subscribers_count: number;
19223
19224
  network_count: number;
@@ -19322,7 +19323,7 @@ export interface ReposGetCombinedStatusForRefResponseData {
19322
19323
  commit_url: string;
19323
19324
  url: string;
19324
19325
  }
19325
- declare type ReposListStatusesForRefEndpoint = {
19326
+ declare type ReposListCommitStatusesForRefEndpoint = {
19326
19327
  owner: string;
19327
19328
  repo: string;
19328
19329
  ref: string;
@@ -19335,13 +19336,13 @@ declare type ReposListStatusesForRefEndpoint = {
19335
19336
  */
19336
19337
  page?: number;
19337
19338
  };
19338
- declare type ReposListStatusesForRefRequestOptions = {
19339
+ declare type ReposListCommitStatusesForRefRequestOptions = {
19339
19340
  method: "GET";
19340
19341
  url: "/repos/:owner/:repo/commits/:ref/statuses";
19341
19342
  headers: RequestHeaders;
19342
19343
  request: RequestRequestOptions;
19343
19344
  };
19344
- export declare type ReposListStatusesForRefResponseData = {
19345
+ export declare type ReposListCommitStatusesForRefResponseData = {
19345
19346
  url: string;
19346
19347
  avatar_url: string;
19347
19348
  id: number;
@@ -19389,17 +19390,17 @@ export interface CodesOfConductGetForRepoResponseData {
19389
19390
  url: string;
19390
19391
  body: string;
19391
19392
  }
19392
- declare type ReposRetrieveCommunityProfileMetricsEndpoint = {
19393
+ declare type ReposGetCommunityProfileMetricsEndpoint = {
19393
19394
  owner: string;
19394
19395
  repo: string;
19395
19396
  };
19396
- declare type ReposRetrieveCommunityProfileMetricsRequestOptions = {
19397
+ declare type ReposGetCommunityProfileMetricsRequestOptions = {
19397
19398
  method: "GET";
19398
19399
  url: "/repos/:owner/:repo/community/profile";
19399
19400
  headers: RequestHeaders;
19400
19401
  request: RequestRequestOptions;
19401
19402
  };
19402
- export interface ReposRetrieveCommunityProfileMetricsResponseData {
19403
+ export interface ReposGetCommunityProfileMetricsResponseData {
19403
19404
  health_percentage: number;
19404
19405
  description: string;
19405
19406
  documentation: boolean;
@@ -19699,7 +19700,7 @@ export interface ReposCompareCommitsResponseData {
19699
19700
  patch: string;
19700
19701
  }[];
19701
19702
  }
19702
- declare type ReposGetContentsEndpoint = {
19703
+ declare type ReposGetContentEndpoint = {
19703
19704
  owner: string;
19704
19705
  repo: string;
19705
19706
  path: string;
@@ -19708,13 +19709,13 @@ declare type ReposGetContentsEndpoint = {
19708
19709
  */
19709
19710
  ref?: string;
19710
19711
  };
19711
- declare type ReposGetContentsRequestOptions = {
19712
+ declare type ReposGetContentRequestOptions = {
19712
19713
  method: "GET";
19713
19714
  url: "/repos/:owner/:repo/contents/:path";
19714
19715
  headers: RequestHeaders;
19715
19716
  request: RequestRequestOptions;
19716
19717
  };
19717
- export interface ReposGetContentsResponseData {
19718
+ export interface ReposGetContentResponseData {
19718
19719
  type: string;
19719
19720
  encoding: string;
19720
19721
  size: number;
@@ -19732,7 +19733,7 @@ export interface ReposGetContentsResponseData {
19732
19733
  html: string;
19733
19734
  };
19734
19735
  }
19735
- declare type ReposCreateOrUpdateFileEndpoint = {
19736
+ declare type ReposCreateOrUpdateFileContentsEndpoint = {
19736
19737
  owner: string;
19737
19738
  repo: string;
19738
19739
  path: string;
@@ -19755,19 +19756,19 @@ declare type ReposCreateOrUpdateFileEndpoint = {
19755
19756
  /**
19756
19757
  * The person that committed the file. Default: the authenticated user.
19757
19758
  */
19758
- committer?: ReposCreateOrUpdateFileParamsCommitter;
19759
+ committer?: ReposCreateOrUpdateFileContentsParamsCommitter;
19759
19760
  /**
19760
19761
  * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.
19761
19762
  */
19762
- author?: ReposCreateOrUpdateFileParamsAuthor;
19763
+ author?: ReposCreateOrUpdateFileContentsParamsAuthor;
19763
19764
  };
19764
- declare type ReposCreateOrUpdateFileRequestOptions = {
19765
+ declare type ReposCreateOrUpdateFileContentsRequestOptions = {
19765
19766
  method: "PUT";
19766
19767
  url: "/repos/:owner/:repo/contents/:path";
19767
19768
  headers: RequestHeaders;
19768
19769
  request: RequestRequestOptions;
19769
19770
  };
19770
- export interface ReposCreateOrUpdateFileResponseData {
19771
+ export interface ReposCreateOrUpdateFileContentsResponseData {
19771
19772
  content: {
19772
19773
  name: string;
19773
19774
  path: string;
@@ -19817,7 +19818,7 @@ export interface ReposCreateOrUpdateFileResponseData {
19817
19818
  };
19818
19819
  };
19819
19820
  }
19820
- export interface ReposCreateOrUpdateFileResponse201Data {
19821
+ export interface ReposCreateOrUpdateFileContentsResponse201Data {
19821
19822
  content: {
19822
19823
  name: string;
19823
19824
  path: string;
@@ -20403,66 +20404,6 @@ declare type ReposCreateDispatchEventRequestOptions = {
20403
20404
  headers: RequestHeaders;
20404
20405
  request: RequestRequestOptions;
20405
20406
  };
20406
- declare type ReposListDownloadsEndpoint = {
20407
- owner: string;
20408
- repo: string;
20409
- /**
20410
- * Results per page (max 100)
20411
- */
20412
- per_page?: number;
20413
- /**
20414
- * Page number of the results to fetch.
20415
- */
20416
- page?: number;
20417
- };
20418
- declare type ReposListDownloadsRequestOptions = {
20419
- method: "GET";
20420
- url: "/repos/:owner/:repo/downloads";
20421
- headers: RequestHeaders;
20422
- request: RequestRequestOptions;
20423
- };
20424
- export declare type ReposListDownloadsResponseData = {
20425
- url: string;
20426
- html_url: string;
20427
- id: number;
20428
- name: string;
20429
- description: string;
20430
- size: number;
20431
- download_count: number;
20432
- content_type: string;
20433
- }[];
20434
- declare type ReposGetDownloadEndpoint = {
20435
- owner: string;
20436
- repo: string;
20437
- download_id: number;
20438
- };
20439
- declare type ReposGetDownloadRequestOptions = {
20440
- method: "GET";
20441
- url: "/repos/:owner/:repo/downloads/:download_id";
20442
- headers: RequestHeaders;
20443
- request: RequestRequestOptions;
20444
- };
20445
- export interface ReposGetDownloadResponseData {
20446
- url: string;
20447
- html_url: string;
20448
- id: number;
20449
- name: string;
20450
- description: string;
20451
- size: number;
20452
- download_count: number;
20453
- content_type: string;
20454
- }
20455
- declare type ReposDeleteDownloadEndpoint = {
20456
- owner: string;
20457
- repo: string;
20458
- download_id: number;
20459
- };
20460
- declare type ReposDeleteDownloadRequestOptions = {
20461
- method: "DELETE";
20462
- url: "/repos/:owner/:repo/downloads/:download_id";
20463
- headers: RequestHeaders;
20464
- request: RequestRequestOptions;
20465
- };
20466
20407
  declare type ActivityListRepoEventsEndpoint = {
20467
20408
  owner: string;
20468
20409
  repo: string;
@@ -20602,6 +20543,7 @@ export declare type ReposListForksResponseData = {
20602
20543
  };
20603
20544
  template_repository: string;
20604
20545
  temp_clone_token: string;
20546
+ delete_branch_on_merge: boolean;
20605
20547
  subscribers_count: number;
20606
20548
  network_count: number;
20607
20549
  license: {
@@ -20727,6 +20669,7 @@ export interface ReposCreateForkResponseData {
20727
20669
  template_repository: string;
20728
20670
  temp_clone_token: string;
20729
20671
  allow_squash_merge: boolean;
20672
+ delete_branch_on_merge: boolean;
20730
20673
  allow_merge_commit: boolean;
20731
20674
  subscribers_count: number;
20732
20675
  network_count: number;
@@ -21139,7 +21082,7 @@ export interface GitGetTreeResponseData {
21139
21082
  }[];
21140
21083
  truncated: boolean;
21141
21084
  }
21142
- declare type ReposListHooksEndpoint = {
21085
+ declare type ReposListWebhooksEndpoint = {
21143
21086
  owner: string;
21144
21087
  repo: string;
21145
21088
  /**
@@ -21151,13 +21094,13 @@ declare type ReposListHooksEndpoint = {
21151
21094
  */
21152
21095
  page?: number;
21153
21096
  };
21154
- declare type ReposListHooksRequestOptions = {
21097
+ declare type ReposListWebhooksRequestOptions = {
21155
21098
  method: "GET";
21156
21099
  url: "/repos/:owner/:repo/hooks";
21157
21100
  headers: RequestHeaders;
21158
21101
  request: RequestRequestOptions;
21159
21102
  };
21160
- export declare type ReposListHooksResponseData = {
21103
+ export declare type ReposListWebhooksResponseData = {
21161
21104
  type: string;
21162
21105
  id: number;
21163
21106
  name: string;
@@ -21179,7 +21122,7 @@ export declare type ReposListHooksResponseData = {
21179
21122
  message: string;
21180
21123
  };
21181
21124
  }[];
21182
- declare type ReposCreateHookEndpoint = {
21125
+ declare type ReposCreateWebhookEndpoint = {
21183
21126
  owner: string;
21184
21127
  repo: string;
21185
21128
  /**
@@ -21189,7 +21132,7 @@ declare type ReposCreateHookEndpoint = {
21189
21132
  /**
21190
21133
  * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).
21191
21134
  */
21192
- config: ReposCreateHookParamsConfig;
21135
+ config: ReposCreateWebhookParamsConfig;
21193
21136
  /**
21194
21137
  * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for.
21195
21138
  */
@@ -21199,13 +21142,13 @@ declare type ReposCreateHookEndpoint = {
21199
21142
  */
21200
21143
  active?: boolean;
21201
21144
  };
21202
- declare type ReposCreateHookRequestOptions = {
21145
+ declare type ReposCreateWebhookRequestOptions = {
21203
21146
  method: "POST";
21204
21147
  url: "/repos/:owner/:repo/hooks";
21205
21148
  headers: RequestHeaders;
21206
21149
  request: RequestRequestOptions;
21207
21150
  };
21208
- export interface ReposCreateHookResponseData {
21151
+ export interface ReposCreateWebhookResponseData {
21209
21152
  type: string;
21210
21153
  id: number;
21211
21154
  name: string;
@@ -21227,18 +21170,18 @@ export interface ReposCreateHookResponseData {
21227
21170
  message: string;
21228
21171
  };
21229
21172
  }
21230
- declare type ReposGetHookEndpoint = {
21173
+ declare type ReposGetWebhookEndpoint = {
21231
21174
  owner: string;
21232
21175
  repo: string;
21233
21176
  hook_id: number;
21234
21177
  };
21235
- declare type ReposGetHookRequestOptions = {
21178
+ declare type ReposGetWebhookRequestOptions = {
21236
21179
  method: "GET";
21237
21180
  url: "/repos/:owner/:repo/hooks/:hook_id";
21238
21181
  headers: RequestHeaders;
21239
21182
  request: RequestRequestOptions;
21240
21183
  };
21241
- export interface ReposGetHookResponseData {
21184
+ export interface ReposGetWebhookResponseData {
21242
21185
  type: string;
21243
21186
  id: number;
21244
21187
  name: string;
@@ -21260,14 +21203,14 @@ export interface ReposGetHookResponseData {
21260
21203
  message: string;
21261
21204
  };
21262
21205
  }
21263
- declare type ReposUpdateHookEndpoint = {
21206
+ declare type ReposUpdateWebhookEndpoint = {
21264
21207
  owner: string;
21265
21208
  repo: string;
21266
21209
  hook_id: number;
21267
21210
  /**
21268
21211
  * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).
21269
21212
  */
21270
- config?: ReposUpdateHookParamsConfig;
21213
+ config?: ReposUpdateWebhookParamsConfig;
21271
21214
  /**
21272
21215
  * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.
21273
21216
  */
@@ -21285,13 +21228,13 @@ declare type ReposUpdateHookEndpoint = {
21285
21228
  */
21286
21229
  active?: boolean;
21287
21230
  };
21288
- declare type ReposUpdateHookRequestOptions = {
21231
+ declare type ReposUpdateWebhookRequestOptions = {
21289
21232
  method: "PATCH";
21290
21233
  url: "/repos/:owner/:repo/hooks/:hook_id";
21291
21234
  headers: RequestHeaders;
21292
21235
  request: RequestRequestOptions;
21293
21236
  };
21294
- export interface ReposUpdateHookResponseData {
21237
+ export interface ReposUpdateWebhookResponseData {
21295
21238
  type: string;
21296
21239
  id: number;
21297
21240
  name: string;
@@ -21313,34 +21256,34 @@ export interface ReposUpdateHookResponseData {
21313
21256
  message: string;
21314
21257
  };
21315
21258
  }
21316
- declare type ReposDeleteHookEndpoint = {
21259
+ declare type ReposDeleteWebhookEndpoint = {
21317
21260
  owner: string;
21318
21261
  repo: string;
21319
21262
  hook_id: number;
21320
21263
  };
21321
- declare type ReposDeleteHookRequestOptions = {
21264
+ declare type ReposDeleteWebhookRequestOptions = {
21322
21265
  method: "DELETE";
21323
21266
  url: "/repos/:owner/:repo/hooks/:hook_id";
21324
21267
  headers: RequestHeaders;
21325
21268
  request: RequestRequestOptions;
21326
21269
  };
21327
- declare type ReposPingHookEndpoint = {
21270
+ declare type ReposPingWebhookEndpoint = {
21328
21271
  owner: string;
21329
21272
  repo: string;
21330
21273
  hook_id: number;
21331
21274
  };
21332
- declare type ReposPingHookRequestOptions = {
21275
+ declare type ReposPingWebhookRequestOptions = {
21333
21276
  method: "POST";
21334
21277
  url: "/repos/:owner/:repo/hooks/:hook_id/pings";
21335
21278
  headers: RequestHeaders;
21336
21279
  request: RequestRequestOptions;
21337
21280
  };
21338
- declare type ReposTestPushHookEndpoint = {
21281
+ declare type ReposTestPushWebhookEndpoint = {
21339
21282
  owner: string;
21340
21283
  repo: string;
21341
21284
  hook_id: number;
21342
21285
  };
21343
- declare type ReposTestPushHookRequestOptions = {
21286
+ declare type ReposTestPushWebhookRequestOptions = {
21344
21287
  method: "POST";
21345
21288
  url: "/repos/:owner/:repo/hooks/:hook_id/tests";
21346
21289
  headers: RequestHeaders;
@@ -24005,7 +23948,7 @@ export declare type ReposListDeployKeysResponseData = {
24005
23948
  created_at: string;
24006
23949
  read_only: boolean;
24007
23950
  }[];
24008
- declare type ReposAddDeployKeyEndpoint = {
23951
+ declare type ReposCreateDeployKeyEndpoint = {
24009
23952
  owner: string;
24010
23953
  repo: string;
24011
23954
  /**
@@ -24023,13 +23966,13 @@ declare type ReposAddDeployKeyEndpoint = {
24023
23966
  */
24024
23967
  read_only?: boolean;
24025
23968
  };
24026
- declare type ReposAddDeployKeyRequestOptions = {
23969
+ declare type ReposCreateDeployKeyRequestOptions = {
24027
23970
  method: "POST";
24028
23971
  url: "/repos/:owner/:repo/keys";
24029
23972
  headers: RequestHeaders;
24030
23973
  request: RequestRequestOptions;
24031
23974
  };
24032
- export interface ReposAddDeployKeyResponseData {
23975
+ export interface ReposCreateDeployKeyResponseData {
24033
23976
  id: number;
24034
23977
  key: string;
24035
23978
  url: string;
@@ -24058,12 +24001,12 @@ export interface ReposGetDeployKeyResponseData {
24058
24001
  created_at: string;
24059
24002
  read_only: boolean;
24060
24003
  }
24061
- declare type ReposRemoveDeployKeyEndpoint = {
24004
+ declare type ReposDeleteDeployKeyEndpoint = {
24062
24005
  owner: string;
24063
24006
  repo: string;
24064
24007
  key_id: number;
24065
24008
  };
24066
- declare type ReposRemoveDeployKeyRequestOptions = {
24009
+ declare type ReposDeleteDeployKeyRequestOptions = {
24067
24010
  method: "DELETE";
24068
24011
  url: "/repos/:owner/:repo/keys/:key_id";
24069
24012
  headers: RequestHeaders;
@@ -24775,18 +24718,18 @@ export interface ReposGetPagesResponseData {
24775
24718
  directory: string;
24776
24719
  };
24777
24720
  }
24778
- declare type ReposEnablePagesSiteEndpoint = {
24721
+ declare type ReposCreatePagesSiteEndpoint = {
24779
24722
  owner: string;
24780
24723
  repo: string;
24781
- source?: ReposEnablePagesSiteParamsSource;
24724
+ source?: ReposCreatePagesSiteParamsSource;
24782
24725
  } & RequiredPreview<"switcheroo">;
24783
- declare type ReposEnablePagesSiteRequestOptions = {
24726
+ declare type ReposCreatePagesSiteRequestOptions = {
24784
24727
  method: "POST";
24785
24728
  url: "/repos/:owner/:repo/pages";
24786
24729
  headers: RequestHeaders;
24787
24730
  request: RequestRequestOptions;
24788
24731
  };
24789
- export interface ReposEnablePagesSiteResponseData {
24732
+ export interface ReposCreatePagesSiteResponseData {
24790
24733
  url: string;
24791
24734
  status: string;
24792
24735
  cname: string;
@@ -24797,11 +24740,11 @@ export interface ReposEnablePagesSiteResponseData {
24797
24740
  directory: string;
24798
24741
  };
24799
24742
  }
24800
- declare type ReposDisablePagesSiteEndpoint = {
24743
+ declare type ReposDeletePagesSiteEndpoint = {
24801
24744
  owner: string;
24802
24745
  repo: string;
24803
24746
  } & RequiredPreview<"switcheroo">;
24804
- declare type ReposDisablePagesSiteRequestOptions = {
24747
+ declare type ReposDeletePagesSiteRequestOptions = {
24805
24748
  method: "DELETE";
24806
24749
  url: "/repos/:owner/:repo/pages";
24807
24750
  headers: RequestHeaders;
@@ -24817,7 +24760,7 @@ declare type ReposUpdateInformationAboutPagesSiteEndpoint = {
24817
24760
  /**
24818
24761
  * Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `"gh-pages"`, `"master"`, and `"master /docs"`.
24819
24762
  */
24820
- source?: '"gh-pages"' | '"master"' | '"master /docs"';
24763
+ source?: "gh-pages" | "master" | "master /docs";
24821
24764
  };
24822
24765
  declare type ReposUpdateInformationAboutPagesSiteRequestOptions = {
24823
24766
  method: "PUT";
@@ -24825,17 +24768,17 @@ declare type ReposUpdateInformationAboutPagesSiteRequestOptions = {
24825
24768
  headers: RequestHeaders;
24826
24769
  request: RequestRequestOptions;
24827
24770
  };
24828
- declare type ReposRequestPageBuildEndpoint = {
24771
+ declare type ReposRequestPagesBuildEndpoint = {
24829
24772
  owner: string;
24830
24773
  repo: string;
24831
24774
  };
24832
- declare type ReposRequestPageBuildRequestOptions = {
24775
+ declare type ReposRequestPagesBuildRequestOptions = {
24833
24776
  method: "POST";
24834
24777
  url: "/repos/:owner/:repo/pages/builds";
24835
24778
  headers: RequestHeaders;
24836
24779
  request: RequestRequestOptions;
24837
24780
  };
24838
- export interface ReposRequestPageBuildResponseData {
24781
+ export interface ReposRequestPagesBuildResponseData {
24839
24782
  url: string;
24840
24783
  status: string;
24841
24784
  }
@@ -25406,6 +25349,7 @@ export declare type PullsListResponseData = {
25406
25349
  template_repository: string;
25407
25350
  temp_clone_token: string;
25408
25351
  allow_squash_merge: boolean;
25352
+ delete_branch_on_merge: boolean;
25409
25353
  allow_merge_commit: boolean;
25410
25354
  subscribers_count: number;
25411
25355
  network_count: number;
@@ -25536,6 +25480,7 @@ export declare type PullsListResponseData = {
25536
25480
  template_repository: string;
25537
25481
  temp_clone_token: string;
25538
25482
  allow_squash_merge: boolean;
25483
+ delete_branch_on_merge: boolean;
25539
25484
  allow_merge_commit: boolean;
25540
25485
  subscribers_count: number;
25541
25486
  network_count: number;
@@ -25893,6 +25838,7 @@ export interface PullsCreateResponseData {
25893
25838
  template_repository: string;
25894
25839
  temp_clone_token: string;
25895
25840
  allow_squash_merge: boolean;
25841
+ delete_branch_on_merge: boolean;
25896
25842
  allow_merge_commit: boolean;
25897
25843
  subscribers_count: number;
25898
25844
  network_count: number;
@@ -26023,6 +25969,7 @@ export interface PullsCreateResponseData {
26023
25969
  template_repository: string;
26024
25970
  temp_clone_token: string;
26025
25971
  allow_squash_merge: boolean;
25972
+ delete_branch_on_merge: boolean;
26026
25973
  allow_merge_commit: boolean;
26027
25974
  subscribers_count: number;
26028
25975
  network_count: number;
@@ -26088,7 +26035,7 @@ export interface PullsCreateResponseData {
26088
26035
  deletions: number;
26089
26036
  changed_files: number;
26090
26037
  }
26091
- declare type PullsListCommentsForRepoEndpoint = {
26038
+ declare type PullsListReviewCommentsForRepoEndpoint = {
26092
26039
  owner: string;
26093
26040
  repo: string;
26094
26041
  /**
@@ -26112,17 +26059,17 @@ declare type PullsListCommentsForRepoEndpoint = {
26112
26059
  */
26113
26060
  page?: number;
26114
26061
  };
26115
- declare type PullsListCommentsForRepoRequestOptions = {
26062
+ declare type PullsListReviewCommentsForRepoRequestOptions = {
26116
26063
  method: "GET";
26117
26064
  url: "/repos/:owner/:repo/pulls/comments";
26118
26065
  headers: RequestHeaders;
26119
26066
  request: RequestRequestOptions;
26120
26067
  };
26121
- export declare type PullsListCommentsForRepoResponseData = {
26068
+ export declare type PullsListReviewCommentsForRepoResponseData = {
26122
26069
  url: string;
26070
+ pull_request_review_id: number;
26123
26071
  id: number;
26124
26072
  node_id: string;
26125
- pull_request_review_id: number;
26126
26073
  diff_hunk: string;
26127
26074
  path: string;
26128
26075
  position: number;
@@ -26174,22 +26121,22 @@ export declare type PullsListCommentsForRepoResponseData = {
26174
26121
  original_line: number;
26175
26122
  side: string;
26176
26123
  }[];
26177
- declare type PullsGetCommentEndpoint = {
26124
+ declare type PullsGetReviewCommentEndpoint = {
26178
26125
  owner: string;
26179
26126
  repo: string;
26180
26127
  comment_id: number;
26181
26128
  };
26182
- declare type PullsGetCommentRequestOptions = {
26129
+ declare type PullsGetReviewCommentRequestOptions = {
26183
26130
  method: "GET";
26184
26131
  url: "/repos/:owner/:repo/pulls/comments/:comment_id";
26185
26132
  headers: RequestHeaders;
26186
26133
  request: RequestRequestOptions;
26187
26134
  };
26188
- export interface PullsGetCommentResponseData {
26135
+ export interface PullsGetReviewCommentResponseData {
26189
26136
  url: string;
26137
+ pull_request_review_id: number;
26190
26138
  id: number;
26191
26139
  node_id: string;
26192
- pull_request_review_id: number;
26193
26140
  diff_hunk: string;
26194
26141
  path: string;
26195
26142
  position: number;
@@ -26241,7 +26188,7 @@ export interface PullsGetCommentResponseData {
26241
26188
  original_line: number;
26242
26189
  side: string;
26243
26190
  }
26244
- declare type PullsUpdateCommentEndpoint = {
26191
+ declare type PullsUpdateReviewCommentEndpoint = {
26245
26192
  owner: string;
26246
26193
  repo: string;
26247
26194
  comment_id: number;
@@ -26250,17 +26197,17 @@ declare type PullsUpdateCommentEndpoint = {
26250
26197
  */
26251
26198
  body: string;
26252
26199
  };
26253
- declare type PullsUpdateCommentRequestOptions = {
26200
+ declare type PullsUpdateReviewCommentRequestOptions = {
26254
26201
  method: "PATCH";
26255
26202
  url: "/repos/:owner/:repo/pulls/comments/:comment_id";
26256
26203
  headers: RequestHeaders;
26257
26204
  request: RequestRequestOptions;
26258
26205
  };
26259
- export interface PullsUpdateCommentResponseData {
26206
+ export interface PullsUpdateReviewCommentResponseData {
26260
26207
  url: string;
26208
+ pull_request_review_id: number;
26261
26209
  id: number;
26262
26210
  node_id: string;
26263
- pull_request_review_id: number;
26264
26211
  diff_hunk: string;
26265
26212
  path: string;
26266
26213
  position: number;
@@ -26312,12 +26259,12 @@ export interface PullsUpdateCommentResponseData {
26312
26259
  original_line: number;
26313
26260
  side: string;
26314
26261
  }
26315
- declare type PullsDeleteCommentEndpoint = {
26262
+ declare type PullsDeleteReviewCommentEndpoint = {
26316
26263
  owner: string;
26317
26264
  repo: string;
26318
26265
  comment_id: number;
26319
26266
  };
26320
- declare type PullsDeleteCommentRequestOptions = {
26267
+ declare type PullsDeleteReviewCommentRequestOptions = {
26321
26268
  method: "DELETE";
26322
26269
  url: "/repos/:owner/:repo/pulls/comments/:comment_id";
26323
26270
  headers: RequestHeaders;
@@ -26725,6 +26672,7 @@ export interface PullsGetResponseData {
26725
26672
  template_repository: string;
26726
26673
  temp_clone_token: string;
26727
26674
  allow_squash_merge: boolean;
26675
+ delete_branch_on_merge: boolean;
26728
26676
  allow_merge_commit: boolean;
26729
26677
  subscribers_count: number;
26730
26678
  network_count: number;
@@ -26855,6 +26803,7 @@ export interface PullsGetResponseData {
26855
26803
  template_repository: string;
26856
26804
  temp_clone_token: string;
26857
26805
  allow_squash_merge: boolean;
26806
+ delete_branch_on_merge: boolean;
26858
26807
  allow_merge_commit: boolean;
26859
26808
  subscribers_count: number;
26860
26809
  network_count: number;
@@ -27240,6 +27189,7 @@ export interface PullsUpdateResponseData {
27240
27189
  template_repository: string;
27241
27190
  temp_clone_token: string;
27242
27191
  allow_squash_merge: boolean;
27192
+ delete_branch_on_merge: boolean;
27243
27193
  allow_merge_commit: boolean;
27244
27194
  subscribers_count: number;
27245
27195
  network_count: number;
@@ -27370,6 +27320,7 @@ export interface PullsUpdateResponseData {
27370
27320
  template_repository: string;
27371
27321
  temp_clone_token: string;
27372
27322
  allow_squash_merge: boolean;
27323
+ delete_branch_on_merge: boolean;
27373
27324
  allow_merge_commit: boolean;
27374
27325
  subscribers_count: number;
27375
27326
  network_count: number;
@@ -27435,7 +27386,7 @@ export interface PullsUpdateResponseData {
27435
27386
  deletions: number;
27436
27387
  changed_files: number;
27437
27388
  }
27438
- declare type PullsListCommentsEndpoint = {
27389
+ declare type PullsListReviewCommentsEndpoint = {
27439
27390
  owner: string;
27440
27391
  repo: string;
27441
27392
  pull_number: number;
@@ -27460,17 +27411,17 @@ declare type PullsListCommentsEndpoint = {
27460
27411
  */
27461
27412
  page?: number;
27462
27413
  };
27463
- declare type PullsListCommentsRequestOptions = {
27414
+ declare type PullsListReviewCommentsRequestOptions = {
27464
27415
  method: "GET";
27465
27416
  url: "/repos/:owner/:repo/pulls/:pull_number/comments";
27466
27417
  headers: RequestHeaders;
27467
27418
  request: RequestRequestOptions;
27468
27419
  };
27469
- export declare type PullsListCommentsResponseData = {
27420
+ export declare type PullsListReviewCommentsResponseData = {
27470
27421
  url: string;
27422
+ pull_request_review_id: number;
27471
27423
  id: number;
27472
27424
  node_id: string;
27473
- pull_request_review_id: number;
27474
27425
  diff_hunk: string;
27475
27426
  path: string;
27476
27427
  position: number;
@@ -27522,7 +27473,7 @@ export declare type PullsListCommentsResponseData = {
27522
27473
  original_line: number;
27523
27474
  side: string;
27524
27475
  }[];
27525
- declare type PullsCreateCommentEndpoint = {
27476
+ declare type PullsCreateReviewCommentEndpoint = {
27526
27477
  owner: string;
27527
27478
  repo: string;
27528
27479
  pull_number: number;
@@ -27559,17 +27510,17 @@ declare type PullsCreateCommentEndpoint = {
27559
27510
  */
27560
27511
  start_side?: "LEFT" | "RIGHT" | "side";
27561
27512
  };
27562
- declare type PullsCreateCommentRequestOptions = {
27513
+ declare type PullsCreateReviewCommentRequestOptions = {
27563
27514
  method: "POST";
27564
27515
  url: "/repos/:owner/:repo/pulls/:pull_number/comments";
27565
27516
  headers: RequestHeaders;
27566
27517
  request: RequestRequestOptions;
27567
27518
  };
27568
- export interface PullsCreateCommentResponseData {
27519
+ export interface PullsCreateReviewCommentResponseData {
27569
27520
  url: string;
27521
+ pull_request_review_id: number;
27570
27522
  id: number;
27571
27523
  node_id: string;
27572
- pull_request_review_id: number;
27573
27524
  diff_hunk: string;
27574
27525
  path: string;
27575
27526
  position: number;
@@ -27621,7 +27572,7 @@ export interface PullsCreateCommentResponseData {
27621
27572
  original_line: number;
27622
27573
  side: string;
27623
27574
  }
27624
- declare type PullsCreateReviewCommentReplyEndpoint = {
27575
+ declare type PullsCreateReplyForReviewCommentEndpoint = {
27625
27576
  owner: string;
27626
27577
  repo: string;
27627
27578
  pull_number: number;
@@ -27631,13 +27582,13 @@ declare type PullsCreateReviewCommentReplyEndpoint = {
27631
27582
  */
27632
27583
  body: string;
27633
27584
  };
27634
- declare type PullsCreateReviewCommentReplyRequestOptions = {
27585
+ declare type PullsCreateReplyForReviewCommentRequestOptions = {
27635
27586
  method: "POST";
27636
27587
  url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies";
27637
27588
  headers: RequestHeaders;
27638
27589
  request: RequestRequestOptions;
27639
27590
  };
27640
- export interface PullsCreateReviewCommentReplyResponseData {
27591
+ export interface PullsCreateReplyForReviewCommentResponseData {
27641
27592
  url: string;
27642
27593
  pull_request_review_id: number;
27643
27594
  id: number;
@@ -27648,6 +27599,7 @@ export interface PullsCreateReviewCommentReplyResponseData {
27648
27599
  original_position: number;
27649
27600
  commit_id: string;
27650
27601
  original_commit_id: string;
27602
+ in_reply_to_id: number;
27651
27603
  user: {
27652
27604
  login: string;
27653
27605
  id: number;
@@ -27685,6 +27637,12 @@ export interface PullsCreateReviewCommentReplyResponseData {
27685
27637
  href: string;
27686
27638
  };
27687
27639
  };
27640
+ start_line: number;
27641
+ original_start_line: number;
27642
+ start_side: string;
27643
+ line: number;
27644
+ original_line: number;
27645
+ side: string;
27688
27646
  }
27689
27647
  declare type PullsListCommitsEndpoint = {
27690
27648
  owner: string;
@@ -27863,7 +27821,7 @@ export interface PullsMergeResponse409Data {
27863
27821
  message: string;
27864
27822
  documentation_url: string;
27865
27823
  }
27866
- declare type PullsListReviewRequestsEndpoint = {
27824
+ declare type PullsListRequestedReviewersEndpoint = {
27867
27825
  owner: string;
27868
27826
  repo: string;
27869
27827
  pull_number: number;
@@ -27876,13 +27834,13 @@ declare type PullsListReviewRequestsEndpoint = {
27876
27834
  */
27877
27835
  page?: number;
27878
27836
  };
27879
- declare type PullsListReviewRequestsRequestOptions = {
27837
+ declare type PullsListRequestedReviewersRequestOptions = {
27880
27838
  method: "GET";
27881
27839
  url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers";
27882
27840
  headers: RequestHeaders;
27883
27841
  request: RequestRequestOptions;
27884
27842
  };
27885
- export interface PullsListReviewRequestsResponseData {
27843
+ export interface PullsListRequestedReviewersResponseData {
27886
27844
  users: {
27887
27845
  login: string;
27888
27846
  id: number;
@@ -27918,7 +27876,7 @@ export interface PullsListReviewRequestsResponseData {
27918
27876
  parent: string;
27919
27877
  }[];
27920
27878
  }
27921
- declare type PullsCreateReviewRequestEndpoint = {
27879
+ declare type PullsRequestReviewersEndpoint = {
27922
27880
  owner: string;
27923
27881
  repo: string;
27924
27882
  pull_number: number;
@@ -27931,13 +27889,13 @@ declare type PullsCreateReviewRequestEndpoint = {
27931
27889
  */
27932
27890
  team_reviewers?: string[];
27933
27891
  };
27934
- declare type PullsCreateReviewRequestRequestOptions = {
27892
+ declare type PullsRequestReviewersRequestOptions = {
27935
27893
  method: "POST";
27936
27894
  url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers";
27937
27895
  headers: RequestHeaders;
27938
27896
  request: RequestRequestOptions;
27939
27897
  };
27940
- export interface PullsCreateReviewRequestResponseData {
27898
+ export interface PullsRequestReviewersResponseData {
27941
27899
  url: string;
27942
27900
  id: number;
27943
27901
  node_id: string;
@@ -28226,6 +28184,7 @@ export interface PullsCreateReviewRequestResponseData {
28226
28184
  template_repository: string;
28227
28185
  temp_clone_token: string;
28228
28186
  allow_squash_merge: boolean;
28187
+ delete_branch_on_merge: boolean;
28229
28188
  allow_merge_commit: boolean;
28230
28189
  subscribers_count: number;
28231
28190
  network_count: number;
@@ -28356,6 +28315,7 @@ export interface PullsCreateReviewRequestResponseData {
28356
28315
  template_repository: string;
28357
28316
  temp_clone_token: string;
28358
28317
  allow_squash_merge: boolean;
28318
+ delete_branch_on_merge: boolean;
28359
28319
  allow_merge_commit: boolean;
28360
28320
  subscribers_count: number;
28361
28321
  network_count: number;
@@ -28390,7 +28350,7 @@ export interface PullsCreateReviewRequestResponseData {
28390
28350
  author_association: string;
28391
28351
  draft: boolean;
28392
28352
  }
28393
- declare type PullsDeleteReviewRequestEndpoint = {
28353
+ declare type PullsRemoveRequestedReviewersEndpoint = {
28394
28354
  owner: string;
28395
28355
  repo: string;
28396
28356
  pull_number: number;
@@ -28403,7 +28363,7 @@ declare type PullsDeleteReviewRequestEndpoint = {
28403
28363
  */
28404
28364
  team_reviewers?: string[];
28405
28365
  };
28406
- declare type PullsDeleteReviewRequestRequestOptions = {
28366
+ declare type PullsRemoveRequestedReviewersRequestOptions = {
28407
28367
  method: "DELETE";
28408
28368
  url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers";
28409
28369
  headers: RequestHeaders;
@@ -28479,7 +28439,7 @@ declare type PullsCreateReviewEndpoint = {
28479
28439
  */
28480
28440
  body?: string;
28481
28441
  /**
28482
- * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.
28442
+ * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-review-for-a-pull-request) when you are ready.
28483
28443
  */
28484
28444
  event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
28485
28445
  /**
@@ -28684,7 +28644,7 @@ export interface PullsUpdateReviewResponseData {
28684
28644
  submitted_at: string;
28685
28645
  commit_id: string;
28686
28646
  }
28687
- declare type PullsGetCommentsForReviewEndpoint = {
28647
+ declare type PullsListCommentsForReviewEndpoint = {
28688
28648
  owner: string;
28689
28649
  repo: string;
28690
28650
  pull_number: number;
@@ -28698,17 +28658,17 @@ declare type PullsGetCommentsForReviewEndpoint = {
28698
28658
  */
28699
28659
  page?: number;
28700
28660
  };
28701
- declare type PullsGetCommentsForReviewRequestOptions = {
28661
+ declare type PullsListCommentsForReviewRequestOptions = {
28702
28662
  method: "GET";
28703
28663
  url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments";
28704
28664
  headers: RequestHeaders;
28705
28665
  request: RequestRequestOptions;
28706
28666
  };
28707
- export declare type PullsGetCommentsForReviewResponseData = {
28667
+ export declare type PullsListCommentsForReviewResponseData = {
28708
28668
  url: string;
28669
+ pull_request_review_id: number;
28709
28670
  id: number;
28710
28671
  node_id: string;
28711
- pull_request_review_id: number;
28712
28672
  diff_hunk: string;
28713
28673
  path: string;
28714
28674
  position: number;
@@ -28871,7 +28831,7 @@ declare type PullsUpdateBranchEndpoint = {
28871
28831
  repo: string;
28872
28832
  pull_number: number;
28873
28833
  /**
28874
- * The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
28834
+ * The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits](https://developer.github.com/v3/repos/commits/#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
28875
28835
  */
28876
28836
  expected_head_sha?: string;
28877
28837
  } & RequiredPreview<"lydian">;
@@ -29555,7 +29515,7 @@ declare type ReposDeleteReleaseRequestOptions = {
29555
29515
  headers: RequestHeaders;
29556
29516
  request: RequestRequestOptions;
29557
29517
  };
29558
- declare type ReposListAssetsForReleaseEndpoint = {
29518
+ declare type ReposListReleaseAssetsEndpoint = {
29559
29519
  owner: string;
29560
29520
  repo: string;
29561
29521
  release_id: number;
@@ -29568,13 +29528,13 @@ declare type ReposListAssetsForReleaseEndpoint = {
29568
29528
  */
29569
29529
  page?: number;
29570
29530
  };
29571
- declare type ReposListAssetsForReleaseRequestOptions = {
29531
+ declare type ReposListReleaseAssetsRequestOptions = {
29572
29532
  method: "GET";
29573
29533
  url: "/repos/:owner/:repo/releases/:release_id/assets";
29574
29534
  headers: RequestHeaders;
29575
29535
  request: RequestRequestOptions;
29576
29536
  };
29577
- export declare type ReposListAssetsForReleaseResponseData = {
29537
+ export declare type ReposListReleaseAssetsResponseData = {
29578
29538
  url: string;
29579
29539
  browser_download_url: string;
29580
29540
  id: number;
@@ -29837,7 +29797,7 @@ declare type ReposGetPunchCardStatsRequestOptions = {
29837
29797
  request: RequestRequestOptions;
29838
29798
  };
29839
29799
  export declare type ReposGetPunchCardStatsResponseData = number[][];
29840
- declare type ReposCreateStatusEndpoint = {
29800
+ declare type ReposCreateCommitStatusEndpoint = {
29841
29801
  owner: string;
29842
29802
  repo: string;
29843
29803
  sha: string;
@@ -29860,13 +29820,13 @@ declare type ReposCreateStatusEndpoint = {
29860
29820
  */
29861
29821
  context?: string;
29862
29822
  };
29863
- declare type ReposCreateStatusRequestOptions = {
29823
+ declare type ReposCreateCommitStatusRequestOptions = {
29864
29824
  method: "POST";
29865
29825
  url: "/repos/:owner/:repo/statuses/:sha";
29866
29826
  headers: RequestHeaders;
29867
29827
  request: RequestRequestOptions;
29868
29828
  };
29869
- export interface ReposCreateStatusResponseData {
29829
+ export interface ReposCreateCommitStatusResponseData {
29870
29830
  url: string;
29871
29831
  avatar_url: string;
29872
29832
  id: number;
@@ -30275,6 +30235,7 @@ export interface ReposTransferResponseData {
30275
30235
  template_repository: string;
30276
30236
  temp_clone_token: string;
30277
30237
  allow_squash_merge: boolean;
30238
+ delete_branch_on_merge: boolean;
30278
30239
  allow_merge_commit: boolean;
30279
30240
  subscribers_count: number;
30280
30241
  network_count: number;
@@ -30309,13 +30270,13 @@ declare type ReposDisableVulnerabilityAlertsRequestOptions = {
30309
30270
  headers: RequestHeaders;
30310
30271
  request: RequestRequestOptions;
30311
30272
  };
30312
- declare type ReposGetArchiveLinkEndpoint = {
30273
+ declare type ReposDownloadArchiveEndpoint = {
30313
30274
  owner: string;
30314
30275
  repo: string;
30315
30276
  archive_format: string;
30316
30277
  ref: string;
30317
30278
  };
30318
- declare type ReposGetArchiveLinkRequestOptions = {
30279
+ declare type ReposDownloadArchiveRequestOptions = {
30319
30280
  method: "GET";
30320
30281
  url: "/repos/:owner/:repo/:archive_format/:ref";
30321
30282
  headers: RequestHeaders;
@@ -30546,12 +30507,14 @@ export interface ReposCreateUsingTemplateResponseData {
30546
30507
  template_repository: string;
30547
30508
  temp_clone_token: string;
30548
30509
  allow_squash_merge: boolean;
30510
+ delete_branch_on_merge: boolean;
30549
30511
  allow_merge_commit: boolean;
30550
30512
  subscribers_count: number;
30551
30513
  network_count: number;
30552
30514
  };
30553
30515
  temp_clone_token: string;
30554
30516
  allow_squash_merge: boolean;
30517
+ delete_branch_on_merge: boolean;
30555
30518
  allow_merge_commit: boolean;
30556
30519
  subscribers_count: number;
30557
30520
  network_count: number;
@@ -30685,16 +30648,16 @@ export interface ScimListProvisionedIdentitiesResponseData {
30685
30648
  };
30686
30649
  }[];
30687
30650
  }
30688
- declare type ScimProvisionAndInviteUsersEndpoint = {
30651
+ declare type ScimProvisionAndInviteUserEndpoint = {
30689
30652
  org: string;
30690
30653
  };
30691
- declare type ScimProvisionAndInviteUsersRequestOptions = {
30654
+ declare type ScimProvisionAndInviteUserRequestOptions = {
30692
30655
  method: "POST";
30693
30656
  url: "/scim/v2/organizations/:org/Users";
30694
30657
  headers: RequestHeaders;
30695
30658
  request: RequestRequestOptions;
30696
30659
  };
30697
- export interface ScimProvisionAndInviteUsersResponseData {
30660
+ export interface ScimProvisionAndInviteUserResponseData {
30698
30661
  schemas: string[];
30699
30662
  id: string;
30700
30663
  externalId: string;
@@ -30716,17 +30679,17 @@ export interface ScimProvisionAndInviteUsersResponseData {
30716
30679
  location: string;
30717
30680
  };
30718
30681
  }
30719
- declare type ScimGetProvisioningDetailsForUserEndpoint = {
30682
+ declare type ScimGetProvisioningInformationForUserEndpoint = {
30720
30683
  org: string;
30721
30684
  scim_user_id: number;
30722
30685
  };
30723
- declare type ScimGetProvisioningDetailsForUserRequestOptions = {
30686
+ declare type ScimGetProvisioningInformationForUserRequestOptions = {
30724
30687
  method: "GET";
30725
30688
  url: "/scim/v2/organizations/:org/Users/:scim_user_id";
30726
30689
  headers: RequestHeaders;
30727
30690
  request: RequestRequestOptions;
30728
30691
  };
30729
- export interface ScimGetProvisioningDetailsForUserResponseData {
30692
+ export interface ScimGetProvisioningInformationForUserResponseData {
30730
30693
  schemas: string[];
30731
30694
  id: string;
30732
30695
  externalId: string;
@@ -30748,17 +30711,17 @@ export interface ScimGetProvisioningDetailsForUserResponseData {
30748
30711
  location: string;
30749
30712
  };
30750
30713
  }
30751
- declare type ScimReplaceProvisionedUserInformationEndpoint = {
30714
+ declare type ScimSetInformationForProvisionedUserEndpoint = {
30752
30715
  org: string;
30753
30716
  scim_user_id: number;
30754
30717
  };
30755
- declare type ScimReplaceProvisionedUserInformationRequestOptions = {
30718
+ declare type ScimSetInformationForProvisionedUserRequestOptions = {
30756
30719
  method: "PUT";
30757
30720
  url: "/scim/v2/organizations/:org/Users/:scim_user_id";
30758
30721
  headers: RequestHeaders;
30759
30722
  request: RequestRequestOptions;
30760
30723
  };
30761
- export interface ScimReplaceProvisionedUserInformationResponseData {
30724
+ export interface ScimSetInformationForProvisionedUserResponseData {
30762
30725
  schemas: string[];
30763
30726
  id: string;
30764
30727
  externalId: string;
@@ -30780,17 +30743,17 @@ export interface ScimReplaceProvisionedUserInformationResponseData {
30780
30743
  location: string;
30781
30744
  };
30782
30745
  }
30783
- declare type ScimUpdateUserAttributeEndpoint = {
30746
+ declare type ScimUpdateAttributeForUserEndpoint = {
30784
30747
  org: string;
30785
30748
  scim_user_id: number;
30786
30749
  };
30787
- declare type ScimUpdateUserAttributeRequestOptions = {
30750
+ declare type ScimUpdateAttributeForUserRequestOptions = {
30788
30751
  method: "PATCH";
30789
30752
  url: "/scim/v2/organizations/:org/Users/:scim_user_id";
30790
30753
  headers: RequestHeaders;
30791
30754
  request: RequestRequestOptions;
30792
30755
  };
30793
- export interface ScimUpdateUserAttributeResponseData {
30756
+ export interface ScimUpdateAttributeForUserResponseData {
30794
30757
  schemas: string[];
30795
30758
  id: string;
30796
30759
  externalId: string;
@@ -30812,11 +30775,11 @@ export interface ScimUpdateUserAttributeResponseData {
30812
30775
  location: string;
30813
30776
  };
30814
30777
  }
30815
- declare type ScimRemoveUserFromOrgEndpoint = {
30778
+ declare type ScimDeleteUserFromOrgEndpoint = {
30816
30779
  org: string;
30817
30780
  scim_user_id: number;
30818
30781
  };
30819
- declare type ScimRemoveUserFromOrgRequestOptions = {
30782
+ declare type ScimDeleteUserFromOrgRequestOptions = {
30820
30783
  method: "DELETE";
30821
30784
  url: "/scim/v2/organizations/:org/Users/:scim_user_id";
30822
30785
  headers: RequestHeaders;
@@ -32648,6 +32611,7 @@ export declare type TeamsListReposLegacyResponseData = {
32648
32611
  };
32649
32612
  template_repository: string;
32650
32613
  temp_clone_token: string;
32614
+ delete_branch_on_merge: boolean;
32651
32615
  subscribers_count: number;
32652
32616
  network_count: number;
32653
32617
  license: {
@@ -32791,6 +32755,7 @@ export interface TeamsCheckPermissionsForRepoLegacyResponseData {
32791
32755
  template_repository: string;
32792
32756
  temp_clone_token: string;
32793
32757
  allow_squash_merge: boolean;
32758
+ delete_branch_on_merge: boolean;
32794
32759
  allow_merge_commit: boolean;
32795
32760
  subscribers_count: number;
32796
32761
  network_count: number;
@@ -32896,6 +32861,7 @@ export interface TeamsCheckPermissionsForRepoLegacyResponseData {
32896
32861
  template_repository: string;
32897
32862
  temp_clone_token: string;
32898
32863
  allow_squash_merge: boolean;
32864
+ delete_branch_on_merge: boolean;
32899
32865
  allow_merge_commit: boolean;
32900
32866
  subscribers_count: number;
32901
32867
  network_count: number;
@@ -33156,14 +33122,14 @@ export interface UsersUpdateAuthenticatedResponseData {
33156
33122
  collaborators: number;
33157
33123
  };
33158
33124
  }
33159
- declare type UsersListBlockedEndpoint = {};
33160
- declare type UsersListBlockedRequestOptions = {
33125
+ declare type UsersListBlockedByAuthenticatedEndpoint = {};
33126
+ declare type UsersListBlockedByAuthenticatedRequestOptions = {
33161
33127
  method: "GET";
33162
33128
  url: "/user/blocks";
33163
33129
  headers: RequestHeaders;
33164
33130
  request: RequestRequestOptions;
33165
33131
  };
33166
- export declare type UsersListBlockedResponseData = {
33132
+ export declare type UsersListBlockedByAuthenticatedResponseData = {
33167
33133
  login: string;
33168
33134
  id: number;
33169
33135
  node_id: string;
@@ -33210,7 +33176,7 @@ declare type UsersUnblockRequestOptions = {
33210
33176
  headers: RequestHeaders;
33211
33177
  request: RequestRequestOptions;
33212
33178
  };
33213
- declare type UsersTogglePrimaryEmailVisibilityEndpoint = {
33179
+ declare type UsersSetPrimaryEmailVisibilityForAuthenticatedEndpoint = {
33214
33180
  /**
33215
33181
  * Specify the _primary_ email address that needs a visibility change.
33216
33182
  */
@@ -33220,19 +33186,19 @@ declare type UsersTogglePrimaryEmailVisibilityEndpoint = {
33220
33186
  */
33221
33187
  visibility: string;
33222
33188
  };
33223
- declare type UsersTogglePrimaryEmailVisibilityRequestOptions = {
33189
+ declare type UsersSetPrimaryEmailVisibilityForAuthenticatedRequestOptions = {
33224
33190
  method: "PATCH";
33225
33191
  url: "/user/email/visibility";
33226
33192
  headers: RequestHeaders;
33227
33193
  request: RequestRequestOptions;
33228
33194
  };
33229
- export declare type UsersTogglePrimaryEmailVisibilityResponseData = {
33195
+ export declare type UsersSetPrimaryEmailVisibilityForAuthenticatedResponseData = {
33230
33196
  email: string;
33231
33197
  primary: boolean;
33232
33198
  verified: boolean;
33233
33199
  visibility: string;
33234
33200
  }[];
33235
- declare type UsersListEmailsEndpoint = {
33201
+ declare type UsersListEmailsForAuthenticatedEndpoint = {
33236
33202
  /**
33237
33203
  * Results per page (max 100)
33238
33204
  */
@@ -33242,43 +33208,43 @@ declare type UsersListEmailsEndpoint = {
33242
33208
  */
33243
33209
  page?: number;
33244
33210
  };
33245
- declare type UsersListEmailsRequestOptions = {
33211
+ declare type UsersListEmailsForAuthenticatedRequestOptions = {
33246
33212
  method: "GET";
33247
33213
  url: "/user/emails";
33248
33214
  headers: RequestHeaders;
33249
33215
  request: RequestRequestOptions;
33250
33216
  };
33251
- export declare type UsersListEmailsResponseData = {
33217
+ export declare type UsersListEmailsForAuthenticatedResponseData = {
33252
33218
  email: string;
33253
33219
  verified: boolean;
33254
33220
  primary: boolean;
33255
33221
  visibility: string;
33256
33222
  }[];
33257
- declare type UsersAddEmailsEndpoint = {
33223
+ declare type UsersAddEmailForAuthenticatedEndpoint = {
33258
33224
  /**
33259
33225
  * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.
33260
33226
  */
33261
33227
  emails: string[];
33262
33228
  };
33263
- declare type UsersAddEmailsRequestOptions = {
33229
+ declare type UsersAddEmailForAuthenticatedRequestOptions = {
33264
33230
  method: "POST";
33265
33231
  url: "/user/emails";
33266
33232
  headers: RequestHeaders;
33267
33233
  request: RequestRequestOptions;
33268
33234
  };
33269
- export declare type UsersAddEmailsResponseData = {
33235
+ export declare type UsersAddEmailForAuthenticatedResponseData = {
33270
33236
  email: string;
33271
33237
  primary: boolean;
33272
33238
  verified: boolean;
33273
33239
  visibility: string;
33274
33240
  }[];
33275
- declare type UsersDeleteEmailsEndpoint = {
33241
+ declare type UsersDeleteEmailForAuthenticatedEndpoint = {
33276
33242
  /**
33277
33243
  * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.
33278
33244
  */
33279
33245
  emails: string[];
33280
33246
  };
33281
- declare type UsersDeleteEmailsRequestOptions = {
33247
+ declare type UsersDeleteEmailForAuthenticatedRequestOptions = {
33282
33248
  method: "DELETE";
33283
33249
  url: "/user/emails";
33284
33250
  headers: RequestHeaders;
@@ -33356,10 +33322,10 @@ export declare type UsersListFollowedByAuthenticatedResponseData = {
33356
33322
  type: string;
33357
33323
  site_admin: boolean;
33358
33324
  }[];
33359
- declare type UsersCheckFollowingEndpoint = {
33325
+ declare type UsersCheckPersonIsFollowedByAuthenticatedEndpoint = {
33360
33326
  username: string;
33361
33327
  };
33362
- declare type UsersCheckFollowingRequestOptions = {
33328
+ declare type UsersCheckPersonIsFollowedByAuthenticatedRequestOptions = {
33363
33329
  method: "GET";
33364
33330
  url: "/user/following/:username";
33365
33331
  headers: RequestHeaders;
@@ -33383,7 +33349,7 @@ declare type UsersUnfollowRequestOptions = {
33383
33349
  headers: RequestHeaders;
33384
33350
  request: RequestRequestOptions;
33385
33351
  };
33386
- declare type UsersListGpgKeysEndpoint = {
33352
+ declare type UsersListGpgKeysForAuthenticatedEndpoint = {
33387
33353
  /**
33388
33354
  * Results per page (max 100)
33389
33355
  */
@@ -33393,13 +33359,13 @@ declare type UsersListGpgKeysEndpoint = {
33393
33359
  */
33394
33360
  page?: number;
33395
33361
  };
33396
- declare type UsersListGpgKeysRequestOptions = {
33362
+ declare type UsersListGpgKeysForAuthenticatedRequestOptions = {
33397
33363
  method: "GET";
33398
33364
  url: "/user/gpg_keys";
33399
33365
  headers: RequestHeaders;
33400
33366
  request: RequestRequestOptions;
33401
33367
  };
33402
- export declare type UsersListGpgKeysResponseData = {
33368
+ export declare type UsersListGpgKeysForAuthenticatedResponseData = {
33403
33369
  id: number;
33404
33370
  primary_key_id: string;
33405
33371
  key_id: string;
@@ -33429,19 +33395,19 @@ export declare type UsersListGpgKeysResponseData = {
33429
33395
  created_at: string;
33430
33396
  expires_at: string;
33431
33397
  }[];
33432
- declare type UsersCreateGpgKeyEndpoint = {
33398
+ declare type UsersCreateGpgKeyForAuthenticatedEndpoint = {
33433
33399
  /**
33434
33400
  * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key.
33435
33401
  */
33436
33402
  armored_public_key?: string;
33437
33403
  };
33438
- declare type UsersCreateGpgKeyRequestOptions = {
33404
+ declare type UsersCreateGpgKeyForAuthenticatedRequestOptions = {
33439
33405
  method: "POST";
33440
33406
  url: "/user/gpg_keys";
33441
33407
  headers: RequestHeaders;
33442
33408
  request: RequestRequestOptions;
33443
33409
  };
33444
- export interface UsersCreateGpgKeyResponseData {
33410
+ export interface UsersCreateGpgKeyForAuthenticatedResponseData {
33445
33411
  id: number;
33446
33412
  primary_key_id: string;
33447
33413
  key_id: string;
@@ -33471,16 +33437,16 @@ export interface UsersCreateGpgKeyResponseData {
33471
33437
  created_at: string;
33472
33438
  expires_at: string;
33473
33439
  }
33474
- declare type UsersGetGpgKeyEndpoint = {
33440
+ declare type UsersGetGpgKeyForAuthenticatedEndpoint = {
33475
33441
  gpg_key_id: number;
33476
33442
  };
33477
- declare type UsersGetGpgKeyRequestOptions = {
33443
+ declare type UsersGetGpgKeyForAuthenticatedRequestOptions = {
33478
33444
  method: "GET";
33479
33445
  url: "/user/gpg_keys/:gpg_key_id";
33480
33446
  headers: RequestHeaders;
33481
33447
  request: RequestRequestOptions;
33482
33448
  };
33483
- export interface UsersGetGpgKeyResponseData {
33449
+ export interface UsersGetGpgKeyForAuthenticatedResponseData {
33484
33450
  id: number;
33485
33451
  primary_key_id: string;
33486
33452
  key_id: string;
@@ -33510,10 +33476,10 @@ export interface UsersGetGpgKeyResponseData {
33510
33476
  created_at: string;
33511
33477
  expires_at: string;
33512
33478
  }
33513
- declare type UsersDeleteGpgKeyEndpoint = {
33479
+ declare type UsersDeleteGpgKeyForAuthenticatedEndpoint = {
33514
33480
  gpg_key_id: number;
33515
33481
  };
33516
- declare type UsersDeleteGpgKeyRequestOptions = {
33482
+ declare type UsersDeleteGpgKeyForAuthenticatedRequestOptions = {
33517
33483
  method: "DELETE";
33518
33484
  url: "/user/gpg_keys/:gpg_key_id";
33519
33485
  headers: RequestHeaders;
@@ -33699,6 +33665,7 @@ export interface AppsListInstallationReposForAuthenticatedUserResponseData {
33699
33665
  template_repository: string;
33700
33666
  temp_clone_token: string;
33701
33667
  allow_squash_merge: boolean;
33668
+ delete_branch_on_merge: boolean;
33702
33669
  allow_merge_commit: boolean;
33703
33670
  subscribers_count: number;
33704
33671
  network_count: number;
@@ -34001,12 +33968,13 @@ export declare type IssuesListForAuthenticatedUserResponseData = {
34001
33968
  template_repository: string;
34002
33969
  temp_clone_token: string;
34003
33970
  allow_squash_merge: boolean;
33971
+ delete_branch_on_merge: boolean;
34004
33972
  allow_merge_commit: boolean;
34005
33973
  subscribers_count: number;
34006
33974
  network_count: number;
34007
33975
  };
34008
33976
  }[];
34009
- declare type UsersListPublicKeysEndpoint = {
33977
+ declare type UsersListPublicSshKeysForAuthenticatedEndpoint = {
34010
33978
  /**
34011
33979
  * Results per page (max 100)
34012
33980
  */
@@ -34016,17 +33984,17 @@ declare type UsersListPublicKeysEndpoint = {
34016
33984
  */
34017
33985
  page?: number;
34018
33986
  };
34019
- declare type UsersListPublicKeysRequestOptions = {
33987
+ declare type UsersListPublicSshKeysForAuthenticatedRequestOptions = {
34020
33988
  method: "GET";
34021
33989
  url: "/user/keys";
34022
33990
  headers: RequestHeaders;
34023
33991
  request: RequestRequestOptions;
34024
33992
  };
34025
- export declare type UsersListPublicKeysResponseData = {
33993
+ export declare type UsersListPublicSshKeysForAuthenticatedResponseData = {
34026
33994
  key_id: string;
34027
33995
  key: string;
34028
33996
  }[];
34029
- declare type UsersCreatePublicKeyEndpoint = {
33997
+ declare type UsersCreatePublicSshKeyForAuthenticatedEndpoint = {
34030
33998
  /**
34031
33999
  * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
34032
34000
  */
@@ -34036,33 +34004,33 @@ declare type UsersCreatePublicKeyEndpoint = {
34036
34004
  */
34037
34005
  key?: string;
34038
34006
  };
34039
- declare type UsersCreatePublicKeyRequestOptions = {
34007
+ declare type UsersCreatePublicSshKeyForAuthenticatedRequestOptions = {
34040
34008
  method: "POST";
34041
34009
  url: "/user/keys";
34042
34010
  headers: RequestHeaders;
34043
34011
  request: RequestRequestOptions;
34044
34012
  };
34045
- export interface UsersCreatePublicKeyResponseData {
34013
+ export interface UsersCreatePublicSshKeyForAuthenticatedResponseData {
34046
34014
  key_id: string;
34047
34015
  key: string;
34048
34016
  }
34049
- declare type UsersGetPublicKeyEndpoint = {
34017
+ declare type UsersGetPublicSshKeyForAuthenticatedEndpoint = {
34050
34018
  key_id: number;
34051
34019
  };
34052
- declare type UsersGetPublicKeyRequestOptions = {
34020
+ declare type UsersGetPublicSshKeyForAuthenticatedRequestOptions = {
34053
34021
  method: "GET";
34054
34022
  url: "/user/keys/:key_id";
34055
34023
  headers: RequestHeaders;
34056
34024
  request: RequestRequestOptions;
34057
34025
  };
34058
- export interface UsersGetPublicKeyResponseData {
34026
+ export interface UsersGetPublicSshKeyForAuthenticatedResponseData {
34059
34027
  key_id: string;
34060
34028
  key: string;
34061
34029
  }
34062
- declare type UsersDeletePublicKeyEndpoint = {
34030
+ declare type UsersDeletePublicSshKeyForAuthenticatedEndpoint = {
34063
34031
  key_id: number;
34064
34032
  };
34065
- declare type UsersDeletePublicKeyRequestOptions = {
34033
+ declare type UsersDeletePublicSshKeyForAuthenticatedRequestOptions = {
34066
34034
  method: "DELETE";
34067
34035
  url: "/user/keys/:key_id";
34068
34036
  headers: RequestHeaders;
@@ -34162,7 +34130,7 @@ export declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseData
34162
34130
  bullets: string[];
34163
34131
  };
34164
34132
  }[];
34165
- declare type OrgsListMembershipsEndpoint = {
34133
+ declare type OrgsListMembershipsForAuthenticatedUserEndpoint = {
34166
34134
  /**
34167
34135
  * Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships.
34168
34136
  */
@@ -34176,13 +34144,13 @@ declare type OrgsListMembershipsEndpoint = {
34176
34144
  */
34177
34145
  page?: number;
34178
34146
  };
34179
- declare type OrgsListMembershipsRequestOptions = {
34147
+ declare type OrgsListMembershipsForAuthenticatedUserRequestOptions = {
34180
34148
  method: "GET";
34181
34149
  url: "/user/memberships/orgs";
34182
34150
  headers: RequestHeaders;
34183
34151
  request: RequestRequestOptions;
34184
34152
  };
34185
- export declare type OrgsListMembershipsResponseData = {
34153
+ export declare type OrgsListMembershipsForAuthenticatedUserResponseData = {
34186
34154
  url: string;
34187
34155
  state: string;
34188
34156
  role: string;
@@ -34271,20 +34239,20 @@ export interface OrgsGetMembershipForAuthenticatedUserResponseData {
34271
34239
  site_admin: boolean;
34272
34240
  };
34273
34241
  }
34274
- declare type OrgsUpdateMembershipEndpoint = {
34242
+ declare type OrgsUpdateMembershipForAuthenticatedUserEndpoint = {
34275
34243
  org: string;
34276
34244
  /**
34277
34245
  * The state that the membership should be in. Only `"active"` will be accepted.
34278
34246
  */
34279
34247
  state: "active";
34280
34248
  };
34281
- declare type OrgsUpdateMembershipRequestOptions = {
34249
+ declare type OrgsUpdateMembershipForAuthenticatedUserRequestOptions = {
34282
34250
  method: "PATCH";
34283
34251
  url: "/user/memberships/orgs/:org";
34284
34252
  headers: RequestHeaders;
34285
34253
  request: RequestRequestOptions;
34286
34254
  };
34287
- export interface OrgsUpdateMembershipResponseData {
34255
+ export interface OrgsUpdateMembershipForAuthenticatedUserResponseData {
34288
34256
  url: string;
34289
34257
  state: string;
34290
34258
  role: string;
@@ -34471,6 +34439,7 @@ export interface MigrationsStartForAuthenticatedUserResponseData {
34471
34439
  template_repository: string;
34472
34440
  temp_clone_token: string;
34473
34441
  allow_squash_merge: boolean;
34442
+ delete_branch_on_merge: boolean;
34474
34443
  allow_merge_commit: boolean;
34475
34444
  subscribers_count: number;
34476
34445
  network_count: number;
@@ -34622,6 +34591,7 @@ export declare type MigrationsListForAuthenticatedUserResponseData = {
34622
34591
  template_repository: string;
34623
34592
  temp_clone_token: string;
34624
34593
  allow_squash_merge: boolean;
34594
+ delete_branch_on_merge: boolean;
34625
34595
  allow_merge_commit: boolean;
34626
34596
  subscribers_count: number;
34627
34597
  network_count: number;
@@ -34766,6 +34736,7 @@ export interface MigrationsGetStatusForAuthenticatedUserResponseData {
34766
34736
  template_repository: string;
34767
34737
  temp_clone_token: string;
34768
34738
  allow_squash_merge: boolean;
34739
+ delete_branch_on_merge: boolean;
34769
34740
  allow_merge_commit: boolean;
34770
34741
  subscribers_count: number;
34771
34742
  network_count: number;
@@ -34882,7 +34853,7 @@ export interface ProjectsCreateForAuthenticatedUserResponseData {
34882
34853
  created_at: string;
34883
34854
  updated_at: string;
34884
34855
  }
34885
- declare type UsersListPublicEmailsEndpoint = {
34856
+ declare type UsersListPublicEmailsForAuthenticatedEndpoint = {
34886
34857
  /**
34887
34858
  * Results per page (max 100)
34888
34859
  */
@@ -34892,13 +34863,13 @@ declare type UsersListPublicEmailsEndpoint = {
34892
34863
  */
34893
34864
  page?: number;
34894
34865
  };
34895
- declare type UsersListPublicEmailsRequestOptions = {
34866
+ declare type UsersListPublicEmailsForAuthenticatedRequestOptions = {
34896
34867
  method: "GET";
34897
34868
  url: "/user/public_emails";
34898
34869
  headers: RequestHeaders;
34899
34870
  request: RequestRequestOptions;
34900
34871
  };
34901
- export declare type UsersListPublicEmailsResponseData = {
34872
+ export declare type UsersListPublicEmailsForAuthenticatedResponseData = {
34902
34873
  email: string;
34903
34874
  verified: boolean;
34904
34875
  primary: boolean;
@@ -35123,6 +35094,7 @@ export interface ReposCreateForAuthenticatedUserResponseData {
35123
35094
  template_repository: string;
35124
35095
  temp_clone_token: string;
35125
35096
  allow_squash_merge: boolean;
35097
+ delete_branch_on_merge: boolean;
35126
35098
  allow_merge_commit: boolean;
35127
35099
  subscribers_count: number;
35128
35100
  network_count: number;
@@ -35401,6 +35373,7 @@ export declare type ActivityListReposStarredByAuthenticatedUserResponseData = {
35401
35373
  template_repository: string;
35402
35374
  temp_clone_token: string;
35403
35375
  allow_squash_merge: boolean;
35376
+ delete_branch_on_merge: boolean;
35404
35377
  allow_merge_commit: boolean;
35405
35378
  subscribers_count: number;
35406
35379
  network_count: number;
@@ -35508,6 +35481,7 @@ export declare type ActivityListReposStarredByAuthenticatedUserResponse200Data =
35508
35481
  template_repository: string;
35509
35482
  temp_clone_token: string;
35510
35483
  allow_squash_merge: boolean;
35484
+ delete_branch_on_merge: boolean;
35511
35485
  allow_merge_commit: boolean;
35512
35486
  subscribers_count: number;
35513
35487
  network_count: number;
@@ -35658,6 +35632,7 @@ export declare type ActivityListWatchedReposForAuthenticatedUserResponseData = {
35658
35632
  };
35659
35633
  template_repository: string;
35660
35634
  temp_clone_token: string;
35635
+ delete_branch_on_merge: boolean;
35661
35636
  subscribers_count: number;
35662
35637
  network_count: number;
35663
35638
  license: {
@@ -35848,6 +35823,7 @@ export declare type MigrationsListReposForUserResponseData = {
35848
35823
  };
35849
35824
  template_repository: string;
35850
35825
  temp_clone_token: string;
35826
+ delete_branch_on_merge: boolean;
35851
35827
  subscribers_count: number;
35852
35828
  network_count: number;
35853
35829
  license: {
@@ -36552,6 +36528,7 @@ export declare type ActivityListReposStarredByUserResponseData = {
36552
36528
  template_repository: string;
36553
36529
  temp_clone_token: string;
36554
36530
  allow_squash_merge: boolean;
36531
+ delete_branch_on_merge: boolean;
36555
36532
  allow_merge_commit: boolean;
36556
36533
  subscribers_count: number;
36557
36534
  network_count: number;
@@ -36659,6 +36636,7 @@ export declare type ActivityListReposStarredByUserResponse200Data = {
36659
36636
  template_repository: string;
36660
36637
  temp_clone_token: string;
36661
36638
  allow_squash_merge: boolean;
36639
+ delete_branch_on_merge: boolean;
36662
36640
  allow_merge_commit: boolean;
36663
36641
  subscribers_count: number;
36664
36642
  network_count: number;
@@ -36780,6 +36758,7 @@ export declare type ActivityListReposWatchedByUserResponseData = {
36780
36758
  };
36781
36759
  template_repository: string;
36782
36760
  temp_clone_token: string;
36761
+ delete_branch_on_merge: boolean;
36783
36762
  subscribers_count: number;
36784
36763
  network_count: number;
36785
36764
  license: {
@@ -36804,13 +36783,13 @@ declare type GistsUpdateParamsFilesKeyString = {
36804
36783
  content: string;
36805
36784
  filename: string;
36806
36785
  };
36807
- declare type OrgsCreateHookParamsConfig = {
36786
+ declare type OrgsCreateWebhookParamsConfig = {
36808
36787
  url: string;
36809
36788
  content_type?: string;
36810
36789
  secret?: string;
36811
36790
  insecure_ssl?: string;
36812
36791
  };
36813
- declare type OrgsUpdateHookParamsConfig = {
36792
+ declare type OrgsUpdateWebhookParamsConfig = {
36814
36793
  url: string;
36815
36794
  content_type?: string;
36816
36795
  secret?: string;
@@ -36840,7 +36819,7 @@ declare type ReposUpdateBranchProtectionParamsRestrictions = {
36840
36819
  teams: string[];
36841
36820
  apps?: string[];
36842
36821
  };
36843
- declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = {
36822
+ declare type ReposUpdatePullRequestReviewProtectionParamsDismissalRestrictions = {
36844
36823
  users?: string[];
36845
36824
  teams?: string[];
36846
36825
  };
@@ -36904,11 +36883,11 @@ declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = {
36904
36883
  app_id: number;
36905
36884
  setting: boolean;
36906
36885
  };
36907
- declare type ReposCreateOrUpdateFileParamsCommitter = {
36886
+ declare type ReposCreateOrUpdateFileContentsParamsCommitter = {
36908
36887
  name: string;
36909
36888
  email: string;
36910
36889
  };
36911
- declare type ReposCreateOrUpdateFileParamsAuthor = {
36890
+ declare type ReposCreateOrUpdateFileContentsParamsAuthor = {
36912
36891
  name: string;
36913
36892
  email: string;
36914
36893
  };
@@ -36943,19 +36922,19 @@ declare type GitCreateTreeParamsTree = {
36943
36922
  sha?: string | null;
36944
36923
  content?: string;
36945
36924
  };
36946
- declare type ReposCreateHookParamsConfig = {
36925
+ declare type ReposCreateWebhookParamsConfig = {
36947
36926
  url: string;
36948
36927
  content_type?: string;
36949
36928
  secret?: string;
36950
36929
  insecure_ssl?: string;
36951
36930
  };
36952
- declare type ReposUpdateHookParamsConfig = {
36931
+ declare type ReposUpdateWebhookParamsConfig = {
36953
36932
  url: string;
36954
36933
  content_type?: string;
36955
36934
  secret?: string;
36956
36935
  insecure_ssl?: string;
36957
36936
  };
36958
- declare type ReposEnablePagesSiteParamsSource = {
36937
+ declare type ReposCreatePagesSiteParamsSource = {
36959
36938
  branch?: "master" | "gh-pages";
36960
36939
  path?: string;
36961
36940
  };