@octokit/types 2.1.0 → 2.3.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.
@@ -109,6 +109,14 @@ export interface Endpoints {
109
109
  TeamsDeleteDiscussionCommentInOrgEndpoint,
110
110
  TeamsDeleteDiscussionCommentInOrgRequestOptions
111
111
  ];
112
+ "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": [
113
+ ReactionsDeleteForTeamDiscussionCommentEndpoint,
114
+ ReactionsDeleteForTeamDiscussionCommentRequestOptions
115
+ ];
116
+ "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": [
117
+ ReactionsDeleteForTeamDiscussionEndpoint,
118
+ ReactionsDeleteForTeamDiscussionRequestOptions
119
+ ];
112
120
  "DELETE /orgs/:org/teams/:team_slug/memberships/:username": [
113
121
  TeamsRemoveMembershipInOrgEndpoint,
114
122
  TeamsRemoveMembershipInOrgRequestOptions
@@ -138,13 +146,25 @@ export interface Endpoints {
138
146
  ProjectsDeleteCardRequestOptions
139
147
  ];
140
148
  "DELETE /reactions/:reaction_id": [
141
- ReactionsDeleteEndpoint,
142
- ReactionsDeleteRequestOptions
149
+ ReactionsDeleteLegacyEndpoint | ReactionsDeleteEndpoint,
150
+ ReactionsDeleteLegacyRequestOptions | ReactionsDeleteRequestOptions
143
151
  ];
144
152
  "DELETE /repos/:owner/:repo": [
145
153
  ReposDeleteEndpoint,
146
154
  ReposDeleteRequestOptions
147
155
  ];
156
+ "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": [
157
+ ActionsDeleteArtifactEndpoint,
158
+ ActionsDeleteArtifactRequestOptions
159
+ ];
160
+ "DELETE /repos/:owner/:repo/actions/runners/:runner_id": [
161
+ ActionsRemoveSelfHostedRunnerEndpoint,
162
+ ActionsRemoveSelfHostedRunnerRequestOptions
163
+ ];
164
+ "DELETE /repos/:owner/:repo/actions/secrets/:name": [
165
+ ActionsDeleteSecretFromRepoEndpoint,
166
+ ActionsDeleteSecretFromRepoRequestOptions
167
+ ];
148
168
  "DELETE /repos/:owner/:repo/automated-security-fixes": [
149
169
  ReposDisableAutomatedSecurityFixesEndpoint,
150
170
  ReposDisableAutomatedSecurityFixesRequestOptions
@@ -197,10 +217,18 @@ export interface Endpoints {
197
217
  ReposDeleteCommitCommentEndpoint,
198
218
  ReposDeleteCommitCommentRequestOptions
199
219
  ];
220
+ "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": [
221
+ ReactionsDeleteForCommitCommentEndpoint,
222
+ ReactionsDeleteForCommitCommentRequestOptions
223
+ ];
200
224
  "DELETE /repos/:owner/:repo/contents/:path": [
201
225
  ReposDeleteFileEndpoint,
202
226
  ReposDeleteFileRequestOptions
203
227
  ];
228
+ "DELETE /repos/:owner/:repo/deployments/:deployment_id": [
229
+ ReposDeleteDeploymentEndpoint,
230
+ ReposDeleteDeploymentRequestOptions
231
+ ];
204
232
  "DELETE /repos/:owner/:repo/downloads/:download_id": [
205
233
  ReposDeleteDownloadEndpoint,
206
234
  ReposDeleteDownloadRequestOptions
@@ -241,10 +269,18 @@ export interface Endpoints {
241
269
  IssuesUnlockEndpoint,
242
270
  IssuesUnlockRequestOptions
243
271
  ];
272
+ "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": [
273
+ ReactionsDeleteForIssueEndpoint,
274
+ ReactionsDeleteForIssueRequestOptions
275
+ ];
244
276
  "DELETE /repos/:owner/:repo/issues/comments/:comment_id": [
245
277
  IssuesDeleteCommentEndpoint,
246
278
  IssuesDeleteCommentRequestOptions
247
279
  ];
280
+ "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": [
281
+ ReactionsDeleteForIssueCommentEndpoint,
282
+ ReactionsDeleteForIssueCommentRequestOptions
283
+ ];
248
284
  "DELETE /repos/:owner/:repo/keys/:key_id": [
249
285
  ReposRemoveDeployKeyEndpoint,
250
286
  ReposRemoveDeployKeyRequestOptions
@@ -273,6 +309,10 @@ export interface Endpoints {
273
309
  PullsDeleteCommentEndpoint,
274
310
  PullsDeleteCommentRequestOptions
275
311
  ];
312
+ "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": [
313
+ ReactionsDeleteForPullRequestCommentEndpoint,
314
+ ReactionsDeleteForPullRequestCommentRequestOptions
315
+ ];
276
316
  "DELETE /repos/:owner/:repo/releases/:release_id": [
277
317
  ReposDeleteReleaseEndpoint,
278
318
  ReposDeleteReleaseRequestOptions
@@ -312,12 +352,14 @@ export interface Endpoints {
312
352
  | TeamsDeleteDiscussionCommentRequestOptions
313
353
  ];
314
354
  "DELETE /teams/:team_id/members/:username": [
315
- TeamsRemoveMemberLegacyEndpoint,
316
- TeamsRemoveMemberLegacyRequestOptions
355
+ TeamsRemoveMemberLegacyEndpoint | TeamsRemoveMemberEndpoint,
356
+ TeamsRemoveMemberLegacyRequestOptions | TeamsRemoveMemberRequestOptions
317
357
  ];
318
358
  "DELETE /teams/:team_id/memberships/:username": [
319
- TeamsRemoveMembershipLegacyEndpoint,
320
- TeamsRemoveMembershipLegacyRequestOptions
359
+ TeamsRemoveMembershipLegacyEndpoint | TeamsRemoveMembershipEndpoint,
360
+
361
+ | TeamsRemoveMembershipLegacyRequestOptions
362
+ | TeamsRemoveMembershipRequestOptions
321
363
  ];
322
364
  "DELETE /teams/:team_id/projects/:project_id": [
323
365
  TeamsRemoveProjectLegacyEndpoint | TeamsRemoveProjectEndpoint,
@@ -596,8 +638,12 @@ export interface Endpoints {
596
638
  MigrationsGetStatusForOrgRequestOptions
597
639
  ];
598
640
  "GET /orgs/:org/migrations/:migration_id/archive": [
599
- MigrationsGetArchiveForOrgEndpoint,
600
- MigrationsGetArchiveForOrgRequestOptions
641
+
642
+ | MigrationsDownloadArchiveForOrgEndpoint
643
+ | MigrationsGetArchiveForOrgEndpoint,
644
+
645
+ | MigrationsDownloadArchiveForOrgRequestOptions
646
+ | MigrationsGetArchiveForOrgRequestOptions
601
647
  ];
602
648
  "GET /orgs/:org/migrations/:migration_id/repositories": [
603
649
  MigrationsListReposForOrgEndpoint,
@@ -723,6 +769,82 @@ export interface Endpoints {
723
769
  ReposGetArchiveLinkEndpoint,
724
770
  ReposGetArchiveLinkRequestOptions
725
771
  ];
772
+ "GET /repos/:owner/:repo/actions/artifacts": [
773
+ ActionsListArtifactsForRepoEndpoint,
774
+ ActionsListArtifactsForRepoRequestOptions
775
+ ];
776
+ "GET /repos/:owner/:repo/actions/artifacts/:artifact_id": [
777
+ ActionsGetArtifactEndpoint,
778
+ ActionsGetArtifactRequestOptions
779
+ ];
780
+ "GET /repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format": [
781
+ ActionsDownloadArtifactEndpoint,
782
+ ActionsDownloadArtifactRequestOptions
783
+ ];
784
+ "GET /repos/:owner/:repo/actions/jobs/:job_id": [
785
+ ActionsGetWorkflowJobEndpoint,
786
+ ActionsGetWorkflowJobRequestOptions
787
+ ];
788
+ "GET /repos/:owner/:repo/actions/jobs/:job_id/logs": [
789
+ ActionsListWorkflowJobLogsEndpoint,
790
+ ActionsListWorkflowJobLogsRequestOptions
791
+ ];
792
+ "GET /repos/:owner/:repo/actions/runners": [
793
+ ActionsListSelfHostedRunnersForRepoEndpoint,
794
+ ActionsListSelfHostedRunnersForRepoRequestOptions
795
+ ];
796
+ "GET /repos/:owner/:repo/actions/runners/:runner_id": [
797
+ ActionsGetSelfHostedRunnerEndpoint,
798
+ ActionsGetSelfHostedRunnerRequestOptions
799
+ ];
800
+ "GET /repos/:owner/:repo/actions/runners/downloads": [
801
+ ActionsListDownloadsForSelfHostedRunnerApplicationEndpoint,
802
+ ActionsListDownloadsForSelfHostedRunnerApplicationRequestOptions
803
+ ];
804
+ "GET /repos/:owner/:repo/actions/runs": [
805
+ ActionsListRepoWorkflowRunsEndpoint,
806
+ ActionsListRepoWorkflowRunsRequestOptions
807
+ ];
808
+ "GET /repos/:owner/:repo/actions/runs/:run_id": [
809
+ ActionsGetWorkflowRunEndpoint,
810
+ ActionsGetWorkflowRunRequestOptions
811
+ ];
812
+ "GET /repos/:owner/:repo/actions/runs/:run_id/artifacts": [
813
+ ActionsListWorkflowRunArtifactsEndpoint,
814
+ ActionsListWorkflowRunArtifactsRequestOptions
815
+ ];
816
+ "GET /repos/:owner/:repo/actions/runs/:run_id/jobs": [
817
+ ActionsListJobsForWorkflowRunEndpoint,
818
+ ActionsListJobsForWorkflowRunRequestOptions
819
+ ];
820
+ "GET /repos/:owner/:repo/actions/runs/:run_id/logs": [
821
+ ActionsListWorkflowRunLogsEndpoint,
822
+ ActionsListWorkflowRunLogsRequestOptions
823
+ ];
824
+ "GET /repos/:owner/:repo/actions/secrets": [
825
+ ActionsListSecretsForRepoEndpoint,
826
+ ActionsListSecretsForRepoRequestOptions
827
+ ];
828
+ "GET /repos/:owner/:repo/actions/secrets/:name": [
829
+ ActionsGetSecretEndpoint,
830
+ ActionsGetSecretRequestOptions
831
+ ];
832
+ "GET /repos/:owner/:repo/actions/secrets/public-key": [
833
+ ActionsGetPublicKeyEndpoint,
834
+ ActionsGetPublicKeyRequestOptions
835
+ ];
836
+ "GET /repos/:owner/:repo/actions/workflows": [
837
+ ActionsListRepoWorkflowsEndpoint,
838
+ ActionsListRepoWorkflowsRequestOptions
839
+ ];
840
+ "GET /repos/:owner/:repo/actions/workflows/:workflow_id": [
841
+ ActionsGetWorkflowEndpoint,
842
+ ActionsGetWorkflowRequestOptions
843
+ ];
844
+ "GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs": [
845
+ ActionsListWorkflowRunsEndpoint,
846
+ ActionsListWorkflowRunsRequestOptions
847
+ ];
726
848
  "GET /repos/:owner/:repo/assignees": [
727
849
  IssuesListAssigneesEndpoint,
728
850
  IssuesListAssigneesRequestOptions
@@ -1807,6 +1929,22 @@ export interface Endpoints {
1807
1929
  ProjectsMoveCardEndpoint,
1808
1930
  ProjectsMoveCardRequestOptions
1809
1931
  ];
1932
+ "POST /repos/:owner/:repo/actions/runners/registration-token": [
1933
+ ActionsCreateRegistrationTokenEndpoint,
1934
+ ActionsCreateRegistrationTokenRequestOptions
1935
+ ];
1936
+ "POST /repos/:owner/:repo/actions/runners/remove-token": [
1937
+ ActionsCreateRemoveTokenEndpoint,
1938
+ ActionsCreateRemoveTokenRequestOptions
1939
+ ];
1940
+ "POST /repos/:owner/:repo/actions/runs/:run_id/cancel": [
1941
+ ActionsCancelWorkflowRunEndpoint,
1942
+ ActionsCancelWorkflowRunRequestOptions
1943
+ ];
1944
+ "POST /repos/:owner/:repo/actions/runs/:run_id/rerun": [
1945
+ ActionsReRunWorkflowEndpoint,
1946
+ ActionsReRunWorkflowRequestOptions
1947
+ ];
1810
1948
  "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": [
1811
1949
  ReposAddProtectedBranchAdminEnforcementEndpoint,
1812
1950
  ReposAddProtectedBranchAdminEnforcementRequestOptions
@@ -2052,6 +2190,10 @@ export interface Endpoints {
2052
2190
  ReposCreateForAuthenticatedUserEndpoint,
2053
2191
  ReposCreateForAuthenticatedUserRequestOptions
2054
2192
  ];
2193
+ "POST :origin/repos/:owner/:repo/releases/:release_id/assets:?name,label": [
2194
+ ReposUploadReleaseAssetEndpoint,
2195
+ ReposUploadReleaseAssetRequestOptions
2196
+ ];
2055
2197
  "PUT /authorizations/clients/:client_id": [
2056
2198
  OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint,
2057
2199
  OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions
@@ -2109,6 +2251,10 @@ export interface Endpoints {
2109
2251
  ProjectsAddCollaboratorEndpoint,
2110
2252
  ProjectsAddCollaboratorRequestOptions
2111
2253
  ];
2254
+ "PUT /repos/:owner/:repo/actions/secrets/:name": [
2255
+ ActionsCreateOrUpdateSecretForRepoEndpoint,
2256
+ ActionsCreateOrUpdateSecretForRepoRequestOptions
2257
+ ];
2112
2258
  "PUT /repos/:owner/:repo/automated-security-fixes": [
2113
2259
  ReposEnableAutomatedSecurityFixesEndpoint,
2114
2260
  ReposEnableAutomatedSecurityFixesRequestOptions
@@ -3402,14 +3548,6 @@ type AppsCheckAccountIsAssociatedWithAnyEndpoint = {
3402
3548
  * account_id parameter
3403
3549
  */
3404
3550
  account_id: number;
3405
- /**
3406
- * Results per page (max 100)
3407
- */
3408
- per_page?: number;
3409
- /**
3410
- * Page number of the results to fetch.
3411
- */
3412
- page?: number;
3413
3551
  };
3414
3552
  type AppsCheckAccountIsAssociatedWithAnyRequestOptions = {
3415
3553
  method: "GET";
@@ -3466,14 +3604,6 @@ type AppsCheckAccountIsAssociatedWithAnyStubbedEndpoint = {
3466
3604
  * account_id parameter
3467
3605
  */
3468
3606
  account_id: number;
3469
- /**
3470
- * Results per page (max 100)
3471
- */
3472
- per_page?: number;
3473
- /**
3474
- * Page number of the results to fetch.
3475
- */
3476
- page?: number;
3477
3607
  };
3478
3608
  type AppsCheckAccountIsAssociatedWithAnyStubbedRequestOptions = {
3479
3609
  method: "GET";
@@ -3666,9 +3796,9 @@ type ActivityDeleteThreadSubscriptionRequestOptions = {
3666
3796
  };
3667
3797
  type OrgsListEndpoint = {
3668
3798
  /**
3669
- * The integer ID of the last Organization that you've seen.
3799
+ * The integer ID of the last organization that you've seen.
3670
3800
  */
3671
- since?: string;
3801
+ since?: number;
3672
3802
  /**
3673
3803
  * Results per page (max 100)
3674
3804
  */
@@ -3750,7 +3880,7 @@ type OrgsUpdateEndpoint = {
3750
3880
  */
3751
3881
  members_can_create_repositories?: boolean;
3752
3882
  /**
3753
- * Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud. Can be one of:
3883
+ * Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of:
3754
3884
  * \* `true` - all organization members can create internal repositories.
3755
3885
  * \* `false` - only organization owners can create internal repositories.
3756
3886
  * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.
@@ -4404,6 +4534,22 @@ type MigrationsGetStatusForOrgRequestOptions = {
4404
4534
  headers: RequestHeaders;
4405
4535
  request: RequestRequestOptions;
4406
4536
  };
4537
+ type MigrationsDownloadArchiveForOrgEndpoint = {
4538
+ /**
4539
+ * org parameter
4540
+ */
4541
+ org: string;
4542
+ /**
4543
+ * migration_id parameter
4544
+ */
4545
+ migration_id: number;
4546
+ };
4547
+ type MigrationsDownloadArchiveForOrgRequestOptions = {
4548
+ method: "GET";
4549
+ url: Url;
4550
+ headers: RequestHeaders;
4551
+ request: RequestRequestOptions;
4552
+ };
4407
4553
  type MigrationsGetArchiveForOrgEndpoint = {
4408
4554
  /**
4409
4555
  * org parameter
@@ -4656,7 +4802,7 @@ type ReposListForOrgEndpoint = {
4656
4802
  */
4657
4803
  org: string;
4658
4804
  /**
4659
- * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`.
4805
+ * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.
4660
4806
  */
4661
4807
  type?:
4662
4808
  | "all"
@@ -4711,7 +4857,7 @@ type ReposCreateInOrgEndpoint = {
4711
4857
  */
4712
4858
  private?: boolean;
4713
4859
  /**
4714
- * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation.
4860
+ * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)" in the GitHub Help documentation.
4715
4861
  * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.
4716
4862
  */
4717
4863
  visibility?: "public" | "private" | "visibility" | "internal";
@@ -5272,6 +5418,34 @@ type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = {
5272
5418
  headers: RequestHeaders;
5273
5419
  request: RequestRequestOptions;
5274
5420
  };
5421
+ type ReactionsDeleteForTeamDiscussionCommentEndpoint = {
5422
+ /**
5423
+ * org parameter
5424
+ */
5425
+ org: string;
5426
+ /**
5427
+ * team_slug parameter
5428
+ */
5429
+ team_slug: string;
5430
+ /**
5431
+ * discussion_number parameter
5432
+ */
5433
+ discussion_number: number;
5434
+ /**
5435
+ * comment_number parameter
5436
+ */
5437
+ comment_number: number;
5438
+ /**
5439
+ * reaction_id parameter
5440
+ */
5441
+ reaction_id: number;
5442
+ };
5443
+ type ReactionsDeleteForTeamDiscussionCommentRequestOptions = {
5444
+ method: "DELETE";
5445
+ url: Url;
5446
+ headers: RequestHeaders;
5447
+ request: RequestRequestOptions;
5448
+ };
5275
5449
  type ReactionsListForTeamDiscussionInOrgEndpoint = {
5276
5450
  /**
5277
5451
  * org parameter
@@ -5344,6 +5518,30 @@ type ReactionsCreateForTeamDiscussionInOrgRequestOptions = {
5344
5518
  headers: RequestHeaders;
5345
5519
  request: RequestRequestOptions;
5346
5520
  };
5521
+ type ReactionsDeleteForTeamDiscussionEndpoint = {
5522
+ /**
5523
+ * org parameter
5524
+ */
5525
+ org: string;
5526
+ /**
5527
+ * team_slug parameter
5528
+ */
5529
+ team_slug: string;
5530
+ /**
5531
+ * discussion_number parameter
5532
+ */
5533
+ discussion_number: number;
5534
+ /**
5535
+ * reaction_id parameter
5536
+ */
5537
+ reaction_id: number;
5538
+ };
5539
+ type ReactionsDeleteForTeamDiscussionRequestOptions = {
5540
+ method: "DELETE";
5541
+ url: Url;
5542
+ headers: RequestHeaders;
5543
+ request: RequestRequestOptions;
5544
+ };
5347
5545
  type TeamsListPendingInvitationsInOrgEndpoint = {
5348
5546
  /**
5349
5547
  * org parameter
@@ -5896,14 +6094,6 @@ type ProjectsGetEndpoint = {
5896
6094
  * project_id parameter
5897
6095
  */
5898
6096
  project_id: number;
5899
- /**
5900
- * Results per page (max 100)
5901
- */
5902
- per_page?: number;
5903
- /**
5904
- * Page number of the results to fetch.
5905
- */
5906
- page?: number;
5907
6097
  };
5908
6098
  type ProjectsGetRequestOptions = {
5909
6099
  method: "GET";
@@ -6092,6 +6282,18 @@ type RateLimitGetRequestOptions = {
6092
6282
  headers: RequestHeaders;
6093
6283
  request: RequestRequestOptions;
6094
6284
  };
6285
+ type ReactionsDeleteLegacyEndpoint = {
6286
+ /**
6287
+ * reaction_id parameter
6288
+ */
6289
+ reaction_id: number;
6290
+ };
6291
+ type ReactionsDeleteLegacyRequestOptions = {
6292
+ method: "DELETE";
6293
+ url: Url;
6294
+ headers: RequestHeaders;
6295
+ request: RequestRequestOptions;
6296
+ };
6095
6297
  type ReactionsDeleteEndpoint = {
6096
6298
  /**
6097
6299
  * reaction_id parameter
@@ -6114,13 +6316,690 @@ type ReposGetEndpoint = {
6114
6316
  */
6115
6317
  repo: string;
6116
6318
  };
6117
- type ReposGetRequestOptions = {
6319
+ type ReposGetRequestOptions = {
6320
+ method: "GET";
6321
+ url: Url;
6322
+ headers: RequestHeaders;
6323
+ request: RequestRequestOptions;
6324
+ };
6325
+ type ReposUpdateEndpoint = {
6326
+ /**
6327
+ * owner parameter
6328
+ */
6329
+ owner: string;
6330
+ /**
6331
+ * repo parameter
6332
+ */
6333
+ repo: string;
6334
+ /**
6335
+ * The name of the repository.
6336
+ */
6337
+ name?: string;
6338
+ /**
6339
+ * A short description of the repository.
6340
+ */
6341
+ description?: string;
6342
+ /**
6343
+ * A URL with more information about the repository.
6344
+ */
6345
+ homepage?: string;
6346
+ /**
6347
+ * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`.
6348
+ * **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.
6349
+ */
6350
+ private?: boolean;
6351
+ /**
6352
+ * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header.
6353
+ */
6354
+ visibility?: "public" | "private" | "visibility" | "internal";
6355
+ /**
6356
+ * Either `true` to enable issues for this repository or `false` to disable them.
6357
+ */
6358
+ has_issues?: boolean;
6359
+ /**
6360
+ * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.
6361
+ */
6362
+ has_projects?: boolean;
6363
+ /**
6364
+ * Either `true` to enable the wiki for this repository or `false` to disable it.
6365
+ */
6366
+ has_wiki?: boolean;
6367
+ /**
6368
+ * Either `true` to make this repo available as a template repository or `false` to prevent it.
6369
+ */
6370
+ is_template?: boolean;
6371
+ /**
6372
+ * Updates the default branch for this repository.
6373
+ */
6374
+ default_branch?: string;
6375
+ /**
6376
+ * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.
6377
+ */
6378
+ allow_squash_merge?: boolean;
6379
+ /**
6380
+ * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.
6381
+ */
6382
+ allow_merge_commit?: boolean;
6383
+ /**
6384
+ * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
6385
+ */
6386
+ allow_rebase_merge?: boolean;
6387
+ /**
6388
+ * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.
6389
+ */
6390
+ delete_branch_on_merge?: boolean;
6391
+ /**
6392
+ * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API.
6393
+ */
6394
+ archived?: boolean;
6395
+ };
6396
+ type ReposUpdateRequestOptions = {
6397
+ method: "PATCH";
6398
+ url: Url;
6399
+ headers: RequestHeaders;
6400
+ request: RequestRequestOptions;
6401
+ };
6402
+ type ReposDeleteEndpoint = {
6403
+ /**
6404
+ * owner parameter
6405
+ */
6406
+ owner: string;
6407
+ /**
6408
+ * repo parameter
6409
+ */
6410
+ repo: string;
6411
+ };
6412
+ type ReposDeleteRequestOptions = {
6413
+ method: "DELETE";
6414
+ url: Url;
6415
+ headers: RequestHeaders;
6416
+ request: RequestRequestOptions;
6417
+ };
6418
+ type ActionsListArtifactsForRepoEndpoint = {
6419
+ /**
6420
+ * owner parameter
6421
+ */
6422
+ owner: string;
6423
+ /**
6424
+ * repo parameter
6425
+ */
6426
+ repo: string;
6427
+ /**
6428
+ * Results per page (max 100)
6429
+ */
6430
+ per_page?: number;
6431
+ /**
6432
+ * Page number of the results to fetch.
6433
+ */
6434
+ page?: number;
6435
+ };
6436
+ type ActionsListArtifactsForRepoRequestOptions = {
6437
+ method: "GET";
6438
+ url: Url;
6439
+ headers: RequestHeaders;
6440
+ request: RequestRequestOptions;
6441
+ };
6442
+ type ActionsGetArtifactEndpoint = {
6443
+ /**
6444
+ * owner parameter
6445
+ */
6446
+ owner: string;
6447
+ /**
6448
+ * repo parameter
6449
+ */
6450
+ repo: string;
6451
+ /**
6452
+ * artifact_id parameter
6453
+ */
6454
+ artifact_id: number;
6455
+ };
6456
+ type ActionsGetArtifactRequestOptions = {
6457
+ method: "GET";
6458
+ url: Url;
6459
+ headers: RequestHeaders;
6460
+ request: RequestRequestOptions;
6461
+ };
6462
+ type ActionsDeleteArtifactEndpoint = {
6463
+ /**
6464
+ * owner parameter
6465
+ */
6466
+ owner: string;
6467
+ /**
6468
+ * repo parameter
6469
+ */
6470
+ repo: string;
6471
+ /**
6472
+ * artifact_id parameter
6473
+ */
6474
+ artifact_id: number;
6475
+ };
6476
+ type ActionsDeleteArtifactRequestOptions = {
6477
+ method: "DELETE";
6478
+ url: Url;
6479
+ headers: RequestHeaders;
6480
+ request: RequestRequestOptions;
6481
+ };
6482
+ type ActionsDownloadArtifactEndpoint = {
6483
+ /**
6484
+ * owner parameter
6485
+ */
6486
+ owner: string;
6487
+ /**
6488
+ * repo parameter
6489
+ */
6490
+ repo: string;
6491
+ /**
6492
+ * artifact_id parameter
6493
+ */
6494
+ artifact_id: number;
6495
+ /**
6496
+ * archive_format parameter
6497
+ */
6498
+ archive_format: string;
6499
+ };
6500
+ type ActionsDownloadArtifactRequestOptions = {
6501
+ method: "GET";
6502
+ url: Url;
6503
+ headers: RequestHeaders;
6504
+ request: RequestRequestOptions;
6505
+ };
6506
+ type ActionsGetWorkflowJobEndpoint = {
6507
+ /**
6508
+ * owner parameter
6509
+ */
6510
+ owner: string;
6511
+ /**
6512
+ * repo parameter
6513
+ */
6514
+ repo: string;
6515
+ /**
6516
+ * job_id parameter
6517
+ */
6518
+ job_id: number;
6519
+ };
6520
+ type ActionsGetWorkflowJobRequestOptions = {
6521
+ method: "GET";
6522
+ url: Url;
6523
+ headers: RequestHeaders;
6524
+ request: RequestRequestOptions;
6525
+ };
6526
+ type ActionsListWorkflowJobLogsEndpoint = {
6527
+ /**
6528
+ * owner parameter
6529
+ */
6530
+ owner: string;
6531
+ /**
6532
+ * repo parameter
6533
+ */
6534
+ repo: string;
6535
+ /**
6536
+ * job_id parameter
6537
+ */
6538
+ job_id: number;
6539
+ /**
6540
+ * Results per page (max 100)
6541
+ */
6542
+ per_page?: number;
6543
+ /**
6544
+ * Page number of the results to fetch.
6545
+ */
6546
+ page?: number;
6547
+ };
6548
+ type ActionsListWorkflowJobLogsRequestOptions = {
6549
+ method: "GET";
6550
+ url: Url;
6551
+ headers: RequestHeaders;
6552
+ request: RequestRequestOptions;
6553
+ };
6554
+ type ActionsListSelfHostedRunnersForRepoEndpoint = {
6555
+ /**
6556
+ * owner parameter
6557
+ */
6558
+ owner: string;
6559
+ /**
6560
+ * repo parameter
6561
+ */
6562
+ repo: string;
6563
+ /**
6564
+ * Results per page (max 100)
6565
+ */
6566
+ per_page?: number;
6567
+ /**
6568
+ * Page number of the results to fetch.
6569
+ */
6570
+ page?: number;
6571
+ };
6572
+ type ActionsListSelfHostedRunnersForRepoRequestOptions = {
6573
+ method: "GET";
6574
+ url: Url;
6575
+ headers: RequestHeaders;
6576
+ request: RequestRequestOptions;
6577
+ };
6578
+ type ActionsListDownloadsForSelfHostedRunnerApplicationEndpoint = {
6579
+ /**
6580
+ * owner parameter
6581
+ */
6582
+ owner: string;
6583
+ /**
6584
+ * repo parameter
6585
+ */
6586
+ repo: string;
6587
+ };
6588
+ type ActionsListDownloadsForSelfHostedRunnerApplicationRequestOptions = {
6589
+ method: "GET";
6590
+ url: Url;
6591
+ headers: RequestHeaders;
6592
+ request: RequestRequestOptions;
6593
+ };
6594
+ type ActionsCreateRegistrationTokenEndpoint = {
6595
+ /**
6596
+ * owner parameter
6597
+ */
6598
+ owner: string;
6599
+ /**
6600
+ * repo parameter
6601
+ */
6602
+ repo: string;
6603
+ };
6604
+ type ActionsCreateRegistrationTokenRequestOptions = {
6605
+ method: "POST";
6606
+ url: Url;
6607
+ headers: RequestHeaders;
6608
+ request: RequestRequestOptions;
6609
+ };
6610
+ type ActionsCreateRemoveTokenEndpoint = {
6611
+ /**
6612
+ * owner parameter
6613
+ */
6614
+ owner: string;
6615
+ /**
6616
+ * repo parameter
6617
+ */
6618
+ repo: string;
6619
+ };
6620
+ type ActionsCreateRemoveTokenRequestOptions = {
6621
+ method: "POST";
6622
+ url: Url;
6623
+ headers: RequestHeaders;
6624
+ request: RequestRequestOptions;
6625
+ };
6626
+ type ActionsGetSelfHostedRunnerEndpoint = {
6627
+ /**
6628
+ * owner parameter
6629
+ */
6630
+ owner: string;
6631
+ /**
6632
+ * repo parameter
6633
+ */
6634
+ repo: string;
6635
+ /**
6636
+ * runner_id parameter
6637
+ */
6638
+ runner_id: number;
6639
+ };
6640
+ type ActionsGetSelfHostedRunnerRequestOptions = {
6641
+ method: "GET";
6642
+ url: Url;
6643
+ headers: RequestHeaders;
6644
+ request: RequestRequestOptions;
6645
+ };
6646
+ type ActionsRemoveSelfHostedRunnerEndpoint = {
6647
+ /**
6648
+ * owner parameter
6649
+ */
6650
+ owner: string;
6651
+ /**
6652
+ * repo parameter
6653
+ */
6654
+ repo: string;
6655
+ /**
6656
+ * runner_id parameter
6657
+ */
6658
+ runner_id: number;
6659
+ };
6660
+ type ActionsRemoveSelfHostedRunnerRequestOptions = {
6661
+ method: "DELETE";
6662
+ url: Url;
6663
+ headers: RequestHeaders;
6664
+ request: RequestRequestOptions;
6665
+ };
6666
+ type ActionsListRepoWorkflowRunsEndpoint = {
6667
+ /**
6668
+ * owner parameter
6669
+ */
6670
+ owner: string;
6671
+ /**
6672
+ * repo parameter
6673
+ */
6674
+ repo: string;
6675
+ /**
6676
+ * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
6677
+ */
6678
+ actor?: string;
6679
+ /**
6680
+ * Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
6681
+ */
6682
+ branch?: string;
6683
+ /**
6684
+ * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation.
6685
+ */
6686
+ event?: string;
6687
+ /**
6688
+ * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)."
6689
+ */
6690
+ status?: "completed" | "status" | "conclusion";
6691
+ /**
6692
+ * Results per page (max 100)
6693
+ */
6694
+ per_page?: number;
6695
+ /**
6696
+ * Page number of the results to fetch.
6697
+ */
6698
+ page?: number;
6699
+ };
6700
+ type ActionsListRepoWorkflowRunsRequestOptions = {
6701
+ method: "GET";
6702
+ url: Url;
6703
+ headers: RequestHeaders;
6704
+ request: RequestRequestOptions;
6705
+ };
6706
+ type ActionsGetWorkflowRunEndpoint = {
6707
+ /**
6708
+ * owner parameter
6709
+ */
6710
+ owner: string;
6711
+ /**
6712
+ * repo parameter
6713
+ */
6714
+ repo: string;
6715
+ /**
6716
+ * run_id parameter
6717
+ */
6718
+ run_id: number;
6719
+ };
6720
+ type ActionsGetWorkflowRunRequestOptions = {
6721
+ method: "GET";
6722
+ url: Url;
6723
+ headers: RequestHeaders;
6724
+ request: RequestRequestOptions;
6725
+ };
6726
+ type ActionsListWorkflowRunArtifactsEndpoint = {
6727
+ /**
6728
+ * owner parameter
6729
+ */
6730
+ owner: string;
6731
+ /**
6732
+ * repo parameter
6733
+ */
6734
+ repo: string;
6735
+ /**
6736
+ * run_id parameter
6737
+ */
6738
+ run_id: number;
6739
+ /**
6740
+ * Results per page (max 100)
6741
+ */
6742
+ per_page?: number;
6743
+ /**
6744
+ * Page number of the results to fetch.
6745
+ */
6746
+ page?: number;
6747
+ };
6748
+ type ActionsListWorkflowRunArtifactsRequestOptions = {
6749
+ method: "GET";
6750
+ url: Url;
6751
+ headers: RequestHeaders;
6752
+ request: RequestRequestOptions;
6753
+ };
6754
+ type ActionsCancelWorkflowRunEndpoint = {
6755
+ /**
6756
+ * owner parameter
6757
+ */
6758
+ owner: string;
6759
+ /**
6760
+ * repo parameter
6761
+ */
6762
+ repo: string;
6763
+ /**
6764
+ * run_id parameter
6765
+ */
6766
+ run_id: number;
6767
+ };
6768
+ type ActionsCancelWorkflowRunRequestOptions = {
6769
+ method: "POST";
6770
+ url: Url;
6771
+ headers: RequestHeaders;
6772
+ request: RequestRequestOptions;
6773
+ };
6774
+ type ActionsListJobsForWorkflowRunEndpoint = {
6775
+ /**
6776
+ * owner parameter
6777
+ */
6778
+ owner: string;
6779
+ /**
6780
+ * repo parameter
6781
+ */
6782
+ repo: string;
6783
+ /**
6784
+ * run_id parameter
6785
+ */
6786
+ run_id: number;
6787
+ /**
6788
+ * Results per page (max 100)
6789
+ */
6790
+ per_page?: number;
6791
+ /**
6792
+ * Page number of the results to fetch.
6793
+ */
6794
+ page?: number;
6795
+ };
6796
+ type ActionsListJobsForWorkflowRunRequestOptions = {
6797
+ method: "GET";
6798
+ url: Url;
6799
+ headers: RequestHeaders;
6800
+ request: RequestRequestOptions;
6801
+ };
6802
+ type ActionsListWorkflowRunLogsEndpoint = {
6803
+ /**
6804
+ * owner parameter
6805
+ */
6806
+ owner: string;
6807
+ /**
6808
+ * repo parameter
6809
+ */
6810
+ repo: string;
6811
+ /**
6812
+ * run_id parameter
6813
+ */
6814
+ run_id: number;
6815
+ /**
6816
+ * Results per page (max 100)
6817
+ */
6818
+ per_page?: number;
6819
+ /**
6820
+ * Page number of the results to fetch.
6821
+ */
6822
+ page?: number;
6823
+ };
6824
+ type ActionsListWorkflowRunLogsRequestOptions = {
6825
+ method: "GET";
6826
+ url: Url;
6827
+ headers: RequestHeaders;
6828
+ request: RequestRequestOptions;
6829
+ };
6830
+ type ActionsReRunWorkflowEndpoint = {
6831
+ /**
6832
+ * owner parameter
6833
+ */
6834
+ owner: string;
6835
+ /**
6836
+ * repo parameter
6837
+ */
6838
+ repo: string;
6839
+ /**
6840
+ * run_id parameter
6841
+ */
6842
+ run_id: number;
6843
+ };
6844
+ type ActionsReRunWorkflowRequestOptions = {
6845
+ method: "POST";
6846
+ url: Url;
6847
+ headers: RequestHeaders;
6848
+ request: RequestRequestOptions;
6849
+ };
6850
+ type ActionsListSecretsForRepoEndpoint = {
6851
+ /**
6852
+ * owner parameter
6853
+ */
6854
+ owner: string;
6855
+ /**
6856
+ * repo parameter
6857
+ */
6858
+ repo: string;
6859
+ /**
6860
+ * Results per page (max 100)
6861
+ */
6862
+ per_page?: number;
6863
+ /**
6864
+ * Page number of the results to fetch.
6865
+ */
6866
+ page?: number;
6867
+ };
6868
+ type ActionsListSecretsForRepoRequestOptions = {
6869
+ method: "GET";
6870
+ url: Url;
6871
+ headers: RequestHeaders;
6872
+ request: RequestRequestOptions;
6873
+ };
6874
+ type ActionsGetPublicKeyEndpoint = {
6875
+ /**
6876
+ * owner parameter
6877
+ */
6878
+ owner: string;
6879
+ /**
6880
+ * repo parameter
6881
+ */
6882
+ repo: string;
6883
+ };
6884
+ type ActionsGetPublicKeyRequestOptions = {
6885
+ method: "GET";
6886
+ url: Url;
6887
+ headers: RequestHeaders;
6888
+ request: RequestRequestOptions;
6889
+ };
6890
+ type ActionsGetSecretEndpoint = {
6891
+ /**
6892
+ * owner parameter
6893
+ */
6894
+ owner: string;
6895
+ /**
6896
+ * repo parameter
6897
+ */
6898
+ repo: string;
6899
+ /**
6900
+ * name parameter
6901
+ */
6902
+ name: string;
6903
+ };
6904
+ type ActionsGetSecretRequestOptions = {
6905
+ method: "GET";
6906
+ url: Url;
6907
+ headers: RequestHeaders;
6908
+ request: RequestRequestOptions;
6909
+ };
6910
+ type ActionsCreateOrUpdateSecretForRepoEndpoint = {
6911
+ /**
6912
+ * owner parameter
6913
+ */
6914
+ owner: string;
6915
+ /**
6916
+ * repo parameter
6917
+ */
6918
+ repo: string;
6919
+ /**
6920
+ * name parameter
6921
+ */
6922
+ name: string;
6923
+ /**
6924
+ * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint.
6925
+ */
6926
+ encrypted_value?: string;
6927
+ /**
6928
+ * ID of the key you used to encrypt the secret.
6929
+ */
6930
+ key_id?: string;
6931
+ };
6932
+ type ActionsCreateOrUpdateSecretForRepoRequestOptions = {
6933
+ method: "PUT";
6934
+ url: Url;
6935
+ headers: RequestHeaders;
6936
+ request: RequestRequestOptions;
6937
+ };
6938
+ type ActionsDeleteSecretFromRepoEndpoint = {
6939
+ /**
6940
+ * owner parameter
6941
+ */
6942
+ owner: string;
6943
+ /**
6944
+ * repo parameter
6945
+ */
6946
+ repo: string;
6947
+ /**
6948
+ * name parameter
6949
+ */
6950
+ name: string;
6951
+ };
6952
+ type ActionsDeleteSecretFromRepoRequestOptions = {
6953
+ method: "DELETE";
6954
+ url: Url;
6955
+ headers: RequestHeaders;
6956
+ request: RequestRequestOptions;
6957
+ };
6958
+ type ActionsListRepoWorkflowsEndpoint = {
6959
+ /**
6960
+ * owner parameter
6961
+ */
6962
+ owner: string;
6963
+ /**
6964
+ * repo parameter
6965
+ */
6966
+ repo: string;
6967
+ /**
6968
+ * Results per page (max 100)
6969
+ */
6970
+ per_page?: number;
6971
+ /**
6972
+ * Page number of the results to fetch.
6973
+ */
6974
+ page?: number;
6975
+ };
6976
+ type ActionsListRepoWorkflowsRequestOptions = {
6977
+ method: "GET";
6978
+ url: Url;
6979
+ headers: RequestHeaders;
6980
+ request: RequestRequestOptions;
6981
+ };
6982
+ type ActionsGetWorkflowEndpoint = {
6983
+ /**
6984
+ * owner parameter
6985
+ */
6986
+ owner: string;
6987
+ /**
6988
+ * repo parameter
6989
+ */
6990
+ repo: string;
6991
+ /**
6992
+ * workflow_id parameter
6993
+ */
6994
+ workflow_id: number;
6995
+ };
6996
+ type ActionsGetWorkflowRequestOptions = {
6118
6997
  method: "GET";
6119
6998
  url: Url;
6120
6999
  headers: RequestHeaders;
6121
7000
  request: RequestRequestOptions;
6122
7001
  };
6123
- type ReposUpdateEndpoint = {
7002
+ type ActionsListWorkflowRunsEndpoint = {
6124
7003
  /**
6125
7004
  * owner parameter
6126
7005
  */
@@ -6130,85 +7009,36 @@ type ReposUpdateEndpoint = {
6130
7009
  */
6131
7010
  repo: string;
6132
7011
  /**
6133
- * The name of the repository.
6134
- */
6135
- name?: string;
6136
- /**
6137
- * A short description of the repository.
6138
- */
6139
- description?: string;
6140
- /**
6141
- * A URL with more information about the repository.
6142
- */
6143
- homepage?: string;
6144
- /**
6145
- * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`.
6146
- * **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.
6147
- */
6148
- private?: boolean;
6149
- /**
6150
- * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header.
6151
- */
6152
- visibility?: "public" | "private" | "visibility" | "internal";
6153
- /**
6154
- * Either `true` to enable issues for this repository or `false` to disable them.
6155
- */
6156
- has_issues?: boolean;
6157
- /**
6158
- * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.
6159
- */
6160
- has_projects?: boolean;
6161
- /**
6162
- * Either `true` to enable the wiki for this repository or `false` to disable it.
6163
- */
6164
- has_wiki?: boolean;
6165
- /**
6166
- * Either `true` to make this repo available as a template repository or `false` to prevent it.
6167
- */
6168
- is_template?: boolean;
6169
- /**
6170
- * Updates the default branch for this repository.
6171
- */
6172
- default_branch?: string;
6173
- /**
6174
- * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.
7012
+ * workflow_id parameter
6175
7013
  */
6176
- allow_squash_merge?: boolean;
7014
+ workflow_id: number;
6177
7015
  /**
6178
- * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.
7016
+ * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.
6179
7017
  */
6180
- allow_merge_commit?: boolean;
7018
+ actor?: string;
6181
7019
  /**
6182
- * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
7020
+ * Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
6183
7021
  */
6184
- allow_rebase_merge?: boolean;
7022
+ branch?: string;
6185
7023
  /**
6186
- * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.
7024
+ * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation.
6187
7025
  */
6188
- delete_branch_on_merge?: boolean;
7026
+ event?: string;
6189
7027
  /**
6190
- * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API.
7028
+ * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)."
6191
7029
  */
6192
- archived?: boolean;
6193
- };
6194
- type ReposUpdateRequestOptions = {
6195
- method: "PATCH";
6196
- url: Url;
6197
- headers: RequestHeaders;
6198
- request: RequestRequestOptions;
6199
- };
6200
- type ReposDeleteEndpoint = {
7030
+ status?: "completed" | "status" | "conclusion";
6201
7031
  /**
6202
- * owner parameter
7032
+ * Results per page (max 100)
6203
7033
  */
6204
- owner: string;
7034
+ per_page?: number;
6205
7035
  /**
6206
- * repo parameter
7036
+ * Page number of the results to fetch.
6207
7037
  */
6208
- repo: string;
7038
+ page?: number;
6209
7039
  };
6210
- type ReposDeleteRequestOptions = {
6211
- method: "DELETE";
7040
+ type ActionsListWorkflowRunsRequestOptions = {
7041
+ method: "GET";
6212
7042
  url: Url;
6213
7043
  headers: RequestHeaders;
6214
7044
  request: RequestRequestOptions;
@@ -7232,7 +8062,7 @@ type ChecksCreateEndpoint = {
7232
8062
  started_at?: string;
7233
8063
  /**
7234
8064
  * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`.
7235
- * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.
8065
+ * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`.
7236
8066
  */
7237
8067
  conclusion?:
7238
8068
  | "success"
@@ -7295,7 +8125,7 @@ type ChecksUpdateEndpoint = {
7295
8125
  status?: "queued" | "in_progress" | "completed";
7296
8126
  /**
7297
8127
  * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`.
7298
- * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.
8128
+ * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`.
7299
8129
  */
7300
8130
  conclusion?:
7301
8131
  | "success"
@@ -7560,8 +8390,10 @@ type ReposAddCollaboratorEndpoint = {
7560
8390
  * \* `pull` - can pull, but not push to or administer this repository.
7561
8391
  * \* `push` - can pull and push, but not administer this repository.
7562
8392
  * \* `admin` - can pull, push and administer this repository.
8393
+ * \* `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
8394
+ * \* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
7563
8395
  */
7564
- permission?: "pull" | "push" | "admin";
8396
+ permission?: "pull" | "push" | "admin" | "maintain" | "triage";
7565
8397
  };
7566
8398
  type ReposAddCollaboratorRequestOptions = {
7567
8399
  method: "PUT";
@@ -7769,6 +8601,30 @@ type ReactionsCreateForCommitCommentRequestOptions = {
7769
8601
  headers: RequestHeaders;
7770
8602
  request: RequestRequestOptions;
7771
8603
  };
8604
+ type ReactionsDeleteForCommitCommentEndpoint = {
8605
+ /**
8606
+ * owner parameter
8607
+ */
8608
+ owner: string;
8609
+ /**
8610
+ * repo parameter
8611
+ */
8612
+ repo: string;
8613
+ /**
8614
+ * comment_id parameter
8615
+ */
8616
+ comment_id: number;
8617
+ /**
8618
+ * reaction_id parameter
8619
+ */
8620
+ reaction_id: number;
8621
+ };
8622
+ type ReactionsDeleteForCommitCommentRequestOptions = {
8623
+ method: "DELETE";
8624
+ url: Url;
8625
+ headers: RequestHeaders;
8626
+ request: RequestRequestOptions;
8627
+ };
7772
8628
  type ReposListCommitsEndpoint = {
7773
8629
  /**
7774
8630
  * owner parameter
@@ -8463,6 +9319,26 @@ type ReposGetDeploymentRequestOptions = {
8463
9319
  headers: RequestHeaders;
8464
9320
  request: RequestRequestOptions;
8465
9321
  };
9322
+ type ReposDeleteDeploymentEndpoint = {
9323
+ /**
9324
+ * owner parameter
9325
+ */
9326
+ owner: string;
9327
+ /**
9328
+ * repo parameter
9329
+ */
9330
+ repo: string;
9331
+ /**
9332
+ * deployment_id parameter
9333
+ */
9334
+ deployment_id: number;
9335
+ };
9336
+ type ReposDeleteDeploymentRequestOptions = {
9337
+ method: "DELETE";
9338
+ url: Url;
9339
+ headers: RequestHeaders;
9340
+ request: RequestRequestOptions;
9341
+ };
8466
9342
  type ReposListDeploymentStatusesEndpoint = {
8467
9343
  /**
8468
9344
  * owner parameter
@@ -9687,6 +10563,14 @@ type IssuesListCommentsForRepoEndpoint = {
9687
10563
  * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
9688
10564
  */
9689
10565
  since?: string;
10566
+ /**
10567
+ * Results per page (max 100)
10568
+ */
10569
+ per_page?: number;
10570
+ /**
10571
+ * Page number of the results to fetch.
10572
+ */
10573
+ page?: number;
9690
10574
  };
9691
10575
  type IssuesListCommentsForRepoRequestOptions = {
9692
10576
  method: "GET";
@@ -9707,14 +10591,6 @@ type IssuesGetCommentEndpoint = {
9707
10591
  * comment_id parameter
9708
10592
  */
9709
10593
  comment_id: number;
9710
- /**
9711
- * Results per page (max 100)
9712
- */
9713
- per_page?: number;
9714
- /**
9715
- * Page number of the results to fetch.
9716
- */
9717
- page?: number;
9718
10594
  };
9719
10595
  type IssuesGetCommentRequestOptions = {
9720
10596
  method: "GET";
@@ -9838,6 +10714,30 @@ type ReactionsCreateForIssueCommentRequestOptions = {
9838
10714
  headers: RequestHeaders;
9839
10715
  request: RequestRequestOptions;
9840
10716
  };
10717
+ type ReactionsDeleteForIssueCommentEndpoint = {
10718
+ /**
10719
+ * owner parameter
10720
+ */
10721
+ owner: string;
10722
+ /**
10723
+ * repo parameter
10724
+ */
10725
+ repo: string;
10726
+ /**
10727
+ * comment_id parameter
10728
+ */
10729
+ comment_id: number;
10730
+ /**
10731
+ * reaction_id parameter
10732
+ */
10733
+ reaction_id: number;
10734
+ };
10735
+ type ReactionsDeleteForIssueCommentRequestOptions = {
10736
+ method: "DELETE";
10737
+ url: Url;
10738
+ headers: RequestHeaders;
10739
+ request: RequestRequestOptions;
10740
+ };
9841
10741
  type IssuesListEventsForRepoEndpoint = {
9842
10742
  /**
9843
10743
  * owner parameter
@@ -10322,6 +11222,30 @@ type ReactionsCreateForIssueRequestOptions = {
10322
11222
  headers: RequestHeaders;
10323
11223
  request: RequestRequestOptions;
10324
11224
  };
11225
+ type ReactionsDeleteForIssueEndpoint = {
11226
+ /**
11227
+ * owner parameter
11228
+ */
11229
+ owner: string;
11230
+ /**
11231
+ * repo parameter
11232
+ */
11233
+ repo: string;
11234
+ /**
11235
+ * issue_number parameter
11236
+ */
11237
+ issue_number: number;
11238
+ /**
11239
+ * reaction_id parameter
11240
+ */
11241
+ reaction_id: number;
11242
+ };
11243
+ type ReactionsDeleteForIssueRequestOptions = {
11244
+ method: "DELETE";
11245
+ url: Url;
11246
+ headers: RequestHeaders;
11247
+ request: RequestRequestOptions;
11248
+ };
10325
11249
  type IssuesListEventsForTimelineEndpoint = {
10326
11250
  /**
10327
11251
  * owner parameter
@@ -11320,6 +12244,30 @@ type ReactionsCreateForPullRequestReviewCommentRequestOptions = {
11320
12244
  headers: RequestHeaders;
11321
12245
  request: RequestRequestOptions;
11322
12246
  };
12247
+ type ReactionsDeleteForPullRequestCommentEndpoint = {
12248
+ /**
12249
+ * owner parameter
12250
+ */
12251
+ owner: string;
12252
+ /**
12253
+ * repo parameter
12254
+ */
12255
+ repo: string;
12256
+ /**
12257
+ * comment_id parameter
12258
+ */
12259
+ comment_id: number;
12260
+ /**
12261
+ * reaction_id parameter
12262
+ */
12263
+ reaction_id: number;
12264
+ };
12265
+ type ReactionsDeleteForPullRequestCommentRequestOptions = {
12266
+ method: "DELETE";
12267
+ url: Url;
12268
+ headers: RequestHeaders;
12269
+ request: RequestRequestOptions;
12270
+ };
11323
12271
  type PullsGetEndpoint = {
11324
12272
  /**
11325
12273
  * owner parameter
@@ -12304,6 +13252,42 @@ type ReposListAssetsForReleaseRequestOptions = {
12304
13252
  headers: RequestHeaders;
12305
13253
  request: RequestRequestOptions;
12306
13254
  };
13255
+ type ReposUploadReleaseAssetEndpoint = {
13256
+ /**
13257
+ * owner parameter
13258
+ */
13259
+ owner: string;
13260
+ /**
13261
+ * repo parameter
13262
+ */
13263
+ repo: string;
13264
+ /**
13265
+ * release_id parameter
13266
+ */
13267
+ release_id: number;
13268
+ /**
13269
+ * name parameter
13270
+ */
13271
+ name?: string;
13272
+ /**
13273
+ * label parameter
13274
+ */
13275
+ label?: string;
13276
+ /**
13277
+ * The raw file data
13278
+ */
13279
+ data: string;
13280
+ /**
13281
+ * The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint
13282
+ */
13283
+ origin?: string;
13284
+ };
13285
+ type ReposUploadReleaseAssetRequestOptions = {
13286
+ method: "POST";
13287
+ url: Url;
13288
+ headers: RequestHeaders;
13289
+ request: RequestRequestOptions;
13290
+ };
12307
13291
  type ActivityListStargazersForRepoEndpoint = {
12308
13292
  /**
12309
13293
  * owner parameter
@@ -12812,9 +13796,9 @@ type ReposCreateUsingTemplateRequestOptions = {
12812
13796
  };
12813
13797
  type ReposListPublicEndpoint = {
12814
13798
  /**
12815
- * The integer ID of the last Repository that you've seen.
13799
+ * The integer ID of the last repository that you've seen.
12816
13800
  */
12817
- since?: string;
13801
+ since?: number;
12818
13802
  /**
12819
13803
  * Results per page (max 100)
12820
13804
  */
@@ -14190,6 +15174,22 @@ type TeamsRemoveMemberLegacyRequestOptions = {
14190
15174
  headers: RequestHeaders;
14191
15175
  request: RequestRequestOptions;
14192
15176
  };
15177
+ type TeamsRemoveMemberEndpoint = {
15178
+ /**
15179
+ * team_id parameter
15180
+ */
15181
+ team_id: number;
15182
+ /**
15183
+ * username parameter
15184
+ */
15185
+ username: string;
15186
+ };
15187
+ type TeamsRemoveMemberRequestOptions = {
15188
+ method: "DELETE";
15189
+ url: Url;
15190
+ headers: RequestHeaders;
15191
+ request: RequestRequestOptions;
15192
+ };
14193
15193
  type TeamsGetMembershipLegacyEndpoint = {
14194
15194
  /**
14195
15195
  * team_id parameter
@@ -14282,6 +15282,22 @@ type TeamsRemoveMembershipLegacyRequestOptions = {
14282
15282
  headers: RequestHeaders;
14283
15283
  request: RequestRequestOptions;
14284
15284
  };
15285
+ type TeamsRemoveMembershipEndpoint = {
15286
+ /**
15287
+ * team_id parameter
15288
+ */
15289
+ team_id: number;
15290
+ /**
15291
+ * username parameter
15292
+ */
15293
+ username: string;
15294
+ };
15295
+ type TeamsRemoveMembershipRequestOptions = {
15296
+ method: "DELETE";
15297
+ url: Url;
15298
+ headers: RequestHeaders;
15299
+ request: RequestRequestOptions;
15300
+ };
14285
15301
  type TeamsListProjectsLegacyEndpoint = {
14286
15302
  /**
14287
15303
  * team_id parameter
@@ -15414,7 +16430,7 @@ type ReposCreateForAuthenticatedUserEndpoint = {
15414
16430
  */
15415
16431
  private?: boolean;
15416
16432
  /**
15417
- * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation.
16433
+ * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)" in the GitHub Help documentation.
15418
16434
  * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.
15419
16435
  */
15420
16436
  visibility?: "public" | "private" | "visibility" | "internal";