@tomsd/github-repo-js 0.2.4 → 0.2.5

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.
@@ -14,65 +14,2675 @@ export declare function readyGitHubRepositoryBranch(token: string): {
14
14
  get pageSizeForRequest(): number;
15
15
  getPagedList(query?: Record<string, string>): Promise<{
16
16
  name: string;
17
- commit: import("@octokit/openapi-types").components["schemas"]["commit"];
17
+ commit: {
18
+ url: string;
19
+ sha: string;
20
+ node_id: string;
21
+ html_url: string;
22
+ comments_url: string;
23
+ commit: {
24
+ url: string;
25
+ author: {
26
+ name?: string;
27
+ email?: string;
28
+ date?: string;
29
+ } | null;
30
+ committer: {
31
+ name?: string;
32
+ email?: string;
33
+ date?: string;
34
+ } | null;
35
+ message: string;
36
+ comment_count: number;
37
+ tree: {
38
+ sha: string;
39
+ url: string;
40
+ };
41
+ verification?: {
42
+ verified: boolean;
43
+ reason: string;
44
+ payload: string | null;
45
+ signature: string | null;
46
+ verified_at: string | null;
47
+ };
48
+ };
49
+ author: {
50
+ name?: string | null;
51
+ email?: string | null;
52
+ login: string;
53
+ id: number;
54
+ node_id: string;
55
+ avatar_url: string;
56
+ gravatar_id: string | null;
57
+ url: string;
58
+ html_url: string;
59
+ followers_url: string;
60
+ following_url: string;
61
+ gists_url: string;
62
+ starred_url: string;
63
+ subscriptions_url: string;
64
+ organizations_url: string;
65
+ repos_url: string;
66
+ events_url: string;
67
+ received_events_url: string;
68
+ type: string;
69
+ site_admin: boolean;
70
+ starred_at?: string;
71
+ user_view_type?: string;
72
+ } | Record<string, never> | null;
73
+ committer: {
74
+ name?: string | null;
75
+ email?: string | null;
76
+ login: string;
77
+ id: number;
78
+ node_id: string;
79
+ avatar_url: string;
80
+ gravatar_id: string | null;
81
+ url: string;
82
+ html_url: string;
83
+ followers_url: string;
84
+ following_url: string;
85
+ gists_url: string;
86
+ starred_url: string;
87
+ subscriptions_url: string;
88
+ organizations_url: string;
89
+ repos_url: string;
90
+ events_url: string;
91
+ received_events_url: string;
92
+ type: string;
93
+ site_admin: boolean;
94
+ starred_at?: string;
95
+ user_view_type?: string;
96
+ } | Record<string, never> | null;
97
+ parents: {
98
+ sha: string;
99
+ url: string;
100
+ html_url?: string;
101
+ }[];
102
+ stats?: {
103
+ additions?: number;
104
+ deletions?: number;
105
+ total?: number;
106
+ };
107
+ files?: {
108
+ sha: string | null;
109
+ filename: string;
110
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
111
+ additions: number;
112
+ deletions: number;
113
+ changes: number;
114
+ blob_url: string;
115
+ raw_url: string;
116
+ contents_url: string;
117
+ patch?: string;
118
+ previous_filename?: string;
119
+ }[];
120
+ };
18
121
  _links: {
19
122
  html: string;
20
123
  self: string;
21
124
  };
22
125
  protected: boolean;
23
- protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
126
+ protection: {
127
+ url?: string;
128
+ enabled?: boolean;
129
+ required_status_checks?: {
130
+ url?: string;
131
+ enforcement_level?: string;
132
+ contexts: string[];
133
+ checks: {
134
+ context: string;
135
+ app_id: number | null;
136
+ }[];
137
+ contexts_url?: string;
138
+ strict?: boolean;
139
+ };
140
+ enforce_admins?: {
141
+ url: string;
142
+ enabled: boolean;
143
+ };
144
+ required_pull_request_reviews?: {
145
+ url?: string;
146
+ dismissal_restrictions?: {
147
+ users?: {
148
+ name?: string | null;
149
+ email?: string | null;
150
+ login: string;
151
+ id: number;
152
+ node_id: string;
153
+ avatar_url: string;
154
+ gravatar_id: string | null;
155
+ url: string;
156
+ html_url: string;
157
+ followers_url: string;
158
+ following_url: string;
159
+ gists_url: string;
160
+ starred_url: string;
161
+ subscriptions_url: string;
162
+ organizations_url: string;
163
+ repos_url: string;
164
+ events_url: string;
165
+ received_events_url: string;
166
+ type: string;
167
+ site_admin: boolean;
168
+ starred_at?: string;
169
+ user_view_type?: string;
170
+ }[];
171
+ teams?: {
172
+ id: number;
173
+ node_id: string;
174
+ name: string;
175
+ slug: string;
176
+ description: string | null;
177
+ privacy?: string;
178
+ notification_setting?: string;
179
+ permission: string;
180
+ permissions?: {
181
+ pull: boolean;
182
+ triage: boolean;
183
+ push: boolean;
184
+ maintain: boolean;
185
+ admin: boolean;
186
+ };
187
+ url: string;
188
+ html_url: string;
189
+ members_url: string;
190
+ repositories_url: string;
191
+ type: "enterprise" | "organization";
192
+ organization_id?: number;
193
+ enterprise_id?: number;
194
+ parent: {
195
+ id: number;
196
+ node_id: string;
197
+ url: string;
198
+ members_url: string;
199
+ name: string;
200
+ description: string | null;
201
+ permission: string;
202
+ privacy?: string;
203
+ notification_setting?: string;
204
+ html_url: string;
205
+ repositories_url: string;
206
+ slug: string;
207
+ ldap_dn?: string;
208
+ type: "enterprise" | "organization";
209
+ organization_id?: number;
210
+ enterprise_id?: number;
211
+ } | null;
212
+ }[];
213
+ apps?: ({
214
+ id: number;
215
+ slug?: string;
216
+ node_id: string;
217
+ client_id?: string;
218
+ owner: {
219
+ name?: string | null;
220
+ email?: string | null;
221
+ login: string;
222
+ id: number;
223
+ node_id: string;
224
+ avatar_url: string;
225
+ gravatar_id: string | null;
226
+ url: string;
227
+ html_url: string;
228
+ followers_url: string;
229
+ following_url: string;
230
+ gists_url: string;
231
+ starred_url: string;
232
+ subscriptions_url: string;
233
+ organizations_url: string;
234
+ repos_url: string;
235
+ events_url: string;
236
+ received_events_url: string;
237
+ type: string;
238
+ site_admin: boolean;
239
+ starred_at?: string;
240
+ user_view_type?: string;
241
+ } | {
242
+ description?: string | null;
243
+ html_url: string;
244
+ website_url?: string | null;
245
+ id: number;
246
+ node_id: string;
247
+ name: string;
248
+ slug: string;
249
+ created_at: string | null;
250
+ updated_at: string | null;
251
+ avatar_url: string;
252
+ };
253
+ name: string;
254
+ description: string | null;
255
+ external_url: string;
256
+ html_url: string;
257
+ created_at: string;
258
+ updated_at: string;
259
+ permissions: {
260
+ issues?: string;
261
+ checks?: string;
262
+ metadata?: string;
263
+ contents?: string;
264
+ deployments?: string;
265
+ [key: string]: string | undefined;
266
+ };
267
+ events: string[];
268
+ installations_count?: number;
269
+ } | null)[];
270
+ url?: string;
271
+ users_url?: string;
272
+ teams_url?: string;
273
+ };
274
+ bypass_pull_request_allowances?: {
275
+ users?: {
276
+ name?: string | null;
277
+ email?: string | null;
278
+ login: string;
279
+ id: number;
280
+ node_id: string;
281
+ avatar_url: string;
282
+ gravatar_id: string | null;
283
+ url: string;
284
+ html_url: string;
285
+ followers_url: string;
286
+ following_url: string;
287
+ gists_url: string;
288
+ starred_url: string;
289
+ subscriptions_url: string;
290
+ organizations_url: string;
291
+ repos_url: string;
292
+ events_url: string;
293
+ received_events_url: string;
294
+ type: string;
295
+ site_admin: boolean;
296
+ starred_at?: string;
297
+ user_view_type?: string;
298
+ }[];
299
+ teams?: {
300
+ id: number;
301
+ node_id: string;
302
+ name: string;
303
+ slug: string;
304
+ description: string | null;
305
+ privacy?: string;
306
+ notification_setting?: string;
307
+ permission: string;
308
+ permissions?: {
309
+ pull: boolean;
310
+ triage: boolean;
311
+ push: boolean;
312
+ maintain: boolean;
313
+ admin: boolean;
314
+ };
315
+ url: string;
316
+ html_url: string;
317
+ members_url: string;
318
+ repositories_url: string;
319
+ type: "enterprise" | "organization";
320
+ organization_id?: number;
321
+ enterprise_id?: number;
322
+ parent: {
323
+ id: number;
324
+ node_id: string;
325
+ url: string;
326
+ members_url: string;
327
+ name: string;
328
+ description: string | null;
329
+ permission: string;
330
+ privacy?: string;
331
+ notification_setting?: string;
332
+ html_url: string;
333
+ repositories_url: string;
334
+ slug: string;
335
+ ldap_dn?: string;
336
+ type: "enterprise" | "organization";
337
+ organization_id?: number;
338
+ enterprise_id?: number;
339
+ } | null;
340
+ }[];
341
+ apps?: ({
342
+ id: number;
343
+ slug?: string;
344
+ node_id: string;
345
+ client_id?: string;
346
+ owner: {
347
+ name?: string | null;
348
+ email?: string | null;
349
+ login: string;
350
+ id: number;
351
+ node_id: string;
352
+ avatar_url: string;
353
+ gravatar_id: string | null;
354
+ url: string;
355
+ html_url: string;
356
+ followers_url: string;
357
+ following_url: string;
358
+ gists_url: string;
359
+ starred_url: string;
360
+ subscriptions_url: string;
361
+ organizations_url: string;
362
+ repos_url: string;
363
+ events_url: string;
364
+ received_events_url: string;
365
+ type: string;
366
+ site_admin: boolean;
367
+ starred_at?: string;
368
+ user_view_type?: string;
369
+ } | {
370
+ description?: string | null;
371
+ html_url: string;
372
+ website_url?: string | null;
373
+ id: number;
374
+ node_id: string;
375
+ name: string;
376
+ slug: string;
377
+ created_at: string | null;
378
+ updated_at: string | null;
379
+ avatar_url: string;
380
+ };
381
+ name: string;
382
+ description: string | null;
383
+ external_url: string;
384
+ html_url: string;
385
+ created_at: string;
386
+ updated_at: string;
387
+ permissions: {
388
+ issues?: string;
389
+ checks?: string;
390
+ metadata?: string;
391
+ contents?: string;
392
+ deployments?: string;
393
+ [key: string]: string | undefined;
394
+ };
395
+ events: string[];
396
+ installations_count?: number;
397
+ } | null)[];
398
+ };
399
+ dismiss_stale_reviews: boolean;
400
+ require_code_owner_reviews: boolean;
401
+ required_approving_review_count?: number;
402
+ require_last_push_approval?: boolean;
403
+ };
404
+ restrictions?: {
405
+ url: string;
406
+ users_url: string;
407
+ teams_url: string;
408
+ apps_url: string;
409
+ users: {
410
+ login?: string;
411
+ id?: number;
412
+ node_id?: string;
413
+ avatar_url?: string;
414
+ gravatar_id?: string;
415
+ url?: string;
416
+ html_url?: string;
417
+ followers_url?: string;
418
+ following_url?: string;
419
+ gists_url?: string;
420
+ starred_url?: string;
421
+ subscriptions_url?: string;
422
+ organizations_url?: string;
423
+ repos_url?: string;
424
+ events_url?: string;
425
+ received_events_url?: string;
426
+ type?: string;
427
+ site_admin?: boolean;
428
+ user_view_type?: string;
429
+ }[];
430
+ teams: {
431
+ id: number;
432
+ node_id: string;
433
+ name: string;
434
+ slug: string;
435
+ description: string | null;
436
+ privacy?: string;
437
+ notification_setting?: string;
438
+ permission: string;
439
+ permissions?: {
440
+ pull: boolean;
441
+ triage: boolean;
442
+ push: boolean;
443
+ maintain: boolean;
444
+ admin: boolean;
445
+ };
446
+ url: string;
447
+ html_url: string;
448
+ members_url: string;
449
+ repositories_url: string;
450
+ type: "enterprise" | "organization";
451
+ organization_id?: number;
452
+ enterprise_id?: number;
453
+ parent: {
454
+ id: number;
455
+ node_id: string;
456
+ url: string;
457
+ members_url: string;
458
+ name: string;
459
+ description: string | null;
460
+ permission: string;
461
+ privacy?: string;
462
+ notification_setting?: string;
463
+ html_url: string;
464
+ repositories_url: string;
465
+ slug: string;
466
+ ldap_dn?: string;
467
+ type: "enterprise" | "organization";
468
+ organization_id?: number;
469
+ enterprise_id?: number;
470
+ } | null;
471
+ }[];
472
+ apps: {
473
+ id?: number;
474
+ slug?: string;
475
+ node_id?: string;
476
+ owner?: {
477
+ login?: string;
478
+ id?: number;
479
+ node_id?: string;
480
+ url?: string;
481
+ repos_url?: string;
482
+ events_url?: string;
483
+ hooks_url?: string;
484
+ issues_url?: string;
485
+ members_url?: string;
486
+ public_members_url?: string;
487
+ avatar_url?: string;
488
+ description?: string;
489
+ gravatar_id?: string;
490
+ html_url?: string;
491
+ followers_url?: string;
492
+ following_url?: string;
493
+ gists_url?: string;
494
+ starred_url?: string;
495
+ subscriptions_url?: string;
496
+ organizations_url?: string;
497
+ received_events_url?: string;
498
+ type?: string;
499
+ site_admin?: boolean;
500
+ user_view_type?: string;
501
+ };
502
+ name?: string;
503
+ client_id?: string;
504
+ description?: string;
505
+ external_url?: string;
506
+ html_url?: string;
507
+ created_at?: string;
508
+ updated_at?: string;
509
+ permissions?: {
510
+ metadata?: string;
511
+ contents?: string;
512
+ issues?: string;
513
+ single_file?: string;
514
+ };
515
+ events?: string[];
516
+ }[];
517
+ };
518
+ required_linear_history?: {
519
+ enabled?: boolean;
520
+ };
521
+ allow_force_pushes?: {
522
+ enabled?: boolean;
523
+ };
524
+ allow_deletions?: {
525
+ enabled?: boolean;
526
+ };
527
+ block_creations?: {
528
+ enabled?: boolean;
529
+ };
530
+ required_conversation_resolution?: {
531
+ enabled?: boolean;
532
+ };
533
+ name?: string;
534
+ protection_url?: string;
535
+ required_signatures?: {
536
+ url: string;
537
+ enabled: boolean;
538
+ };
539
+ lock_branch?: {
540
+ enabled?: boolean;
541
+ };
542
+ allow_fork_syncing?: {
543
+ enabled?: boolean;
544
+ };
545
+ };
24
546
  protection_url: string;
25
547
  pattern?: string;
26
548
  required_approving_review_count?: number;
27
549
  }[]>;
28
550
  getList(query?: Record<string, string>): Promise<{
29
551
  name: string;
30
- commit: import("@octokit/openapi-types").components["schemas"]["commit"];
552
+ commit: {
553
+ url: string;
554
+ sha: string;
555
+ node_id: string;
556
+ html_url: string;
557
+ comments_url: string;
558
+ commit: {
559
+ url: string;
560
+ author: {
561
+ name?: string;
562
+ email?: string;
563
+ date?: string;
564
+ } | null;
565
+ committer: {
566
+ name?: string;
567
+ email?: string;
568
+ date?: string;
569
+ } | null;
570
+ message: string;
571
+ comment_count: number;
572
+ tree: {
573
+ sha: string;
574
+ url: string;
575
+ };
576
+ verification?: {
577
+ verified: boolean;
578
+ reason: string;
579
+ payload: string | null;
580
+ signature: string | null;
581
+ verified_at: string | null;
582
+ };
583
+ };
584
+ author: {
585
+ name?: string | null;
586
+ email?: string | null;
587
+ login: string;
588
+ id: number;
589
+ node_id: string;
590
+ avatar_url: string;
591
+ gravatar_id: string | null;
592
+ url: string;
593
+ html_url: string;
594
+ followers_url: string;
595
+ following_url: string;
596
+ gists_url: string;
597
+ starred_url: string;
598
+ subscriptions_url: string;
599
+ organizations_url: string;
600
+ repos_url: string;
601
+ events_url: string;
602
+ received_events_url: string;
603
+ type: string;
604
+ site_admin: boolean;
605
+ starred_at?: string;
606
+ user_view_type?: string;
607
+ } | Record<string, never> | null;
608
+ committer: {
609
+ name?: string | null;
610
+ email?: string | null;
611
+ login: string;
612
+ id: number;
613
+ node_id: string;
614
+ avatar_url: string;
615
+ gravatar_id: string | null;
616
+ url: string;
617
+ html_url: string;
618
+ followers_url: string;
619
+ following_url: string;
620
+ gists_url: string;
621
+ starred_url: string;
622
+ subscriptions_url: string;
623
+ organizations_url: string;
624
+ repos_url: string;
625
+ events_url: string;
626
+ received_events_url: string;
627
+ type: string;
628
+ site_admin: boolean;
629
+ starred_at?: string;
630
+ user_view_type?: string;
631
+ } | Record<string, never> | null;
632
+ parents: {
633
+ sha: string;
634
+ url: string;
635
+ html_url?: string;
636
+ }[];
637
+ stats?: {
638
+ additions?: number;
639
+ deletions?: number;
640
+ total?: number;
641
+ };
642
+ files?: {
643
+ sha: string | null;
644
+ filename: string;
645
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
646
+ additions: number;
647
+ deletions: number;
648
+ changes: number;
649
+ blob_url: string;
650
+ raw_url: string;
651
+ contents_url: string;
652
+ patch?: string;
653
+ previous_filename?: string;
654
+ }[];
655
+ };
31
656
  _links: {
32
657
  html: string;
33
658
  self: string;
34
659
  };
35
660
  protected: boolean;
36
- protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
661
+ protection: {
662
+ url?: string;
663
+ enabled?: boolean;
664
+ required_status_checks?: {
665
+ url?: string;
666
+ enforcement_level?: string;
667
+ contexts: string[];
668
+ checks: {
669
+ context: string;
670
+ app_id: number | null;
671
+ }[];
672
+ contexts_url?: string;
673
+ strict?: boolean;
674
+ };
675
+ enforce_admins?: {
676
+ url: string;
677
+ enabled: boolean;
678
+ };
679
+ required_pull_request_reviews?: {
680
+ url?: string;
681
+ dismissal_restrictions?: {
682
+ users?: {
683
+ name?: string | null;
684
+ email?: string | null;
685
+ login: string;
686
+ id: number;
687
+ node_id: string;
688
+ avatar_url: string;
689
+ gravatar_id: string | null;
690
+ url: string;
691
+ html_url: string;
692
+ followers_url: string;
693
+ following_url: string;
694
+ gists_url: string;
695
+ starred_url: string;
696
+ subscriptions_url: string;
697
+ organizations_url: string;
698
+ repos_url: string;
699
+ events_url: string;
700
+ received_events_url: string;
701
+ type: string;
702
+ site_admin: boolean;
703
+ starred_at?: string;
704
+ user_view_type?: string;
705
+ }[];
706
+ teams?: {
707
+ id: number;
708
+ node_id: string;
709
+ name: string;
710
+ slug: string;
711
+ description: string | null;
712
+ privacy?: string;
713
+ notification_setting?: string;
714
+ permission: string;
715
+ permissions?: {
716
+ pull: boolean;
717
+ triage: boolean;
718
+ push: boolean;
719
+ maintain: boolean;
720
+ admin: boolean;
721
+ };
722
+ url: string;
723
+ html_url: string;
724
+ members_url: string;
725
+ repositories_url: string;
726
+ type: "enterprise" | "organization";
727
+ organization_id?: number;
728
+ enterprise_id?: number;
729
+ parent: {
730
+ id: number;
731
+ node_id: string;
732
+ url: string;
733
+ members_url: string;
734
+ name: string;
735
+ description: string | null;
736
+ permission: string;
737
+ privacy?: string;
738
+ notification_setting?: string;
739
+ html_url: string;
740
+ repositories_url: string;
741
+ slug: string;
742
+ ldap_dn?: string;
743
+ type: "enterprise" | "organization";
744
+ organization_id?: number;
745
+ enterprise_id?: number;
746
+ } | null;
747
+ }[];
748
+ apps?: ({
749
+ id: number;
750
+ slug?: string;
751
+ node_id: string;
752
+ client_id?: string;
753
+ owner: {
754
+ name?: string | null;
755
+ email?: string | null;
756
+ login: string;
757
+ id: number;
758
+ node_id: string;
759
+ avatar_url: string;
760
+ gravatar_id: string | null;
761
+ url: string;
762
+ html_url: string;
763
+ followers_url: string;
764
+ following_url: string;
765
+ gists_url: string;
766
+ starred_url: string;
767
+ subscriptions_url: string;
768
+ organizations_url: string;
769
+ repos_url: string;
770
+ events_url: string;
771
+ received_events_url: string;
772
+ type: string;
773
+ site_admin: boolean;
774
+ starred_at?: string;
775
+ user_view_type?: string;
776
+ } | {
777
+ description?: string | null;
778
+ html_url: string;
779
+ website_url?: string | null;
780
+ id: number;
781
+ node_id: string;
782
+ name: string;
783
+ slug: string;
784
+ created_at: string | null;
785
+ updated_at: string | null;
786
+ avatar_url: string;
787
+ };
788
+ name: string;
789
+ description: string | null;
790
+ external_url: string;
791
+ html_url: string;
792
+ created_at: string;
793
+ updated_at: string;
794
+ permissions: {
795
+ issues?: string;
796
+ checks?: string;
797
+ metadata?: string;
798
+ contents?: string;
799
+ deployments?: string;
800
+ [key: string]: string | undefined;
801
+ };
802
+ events: string[];
803
+ installations_count?: number;
804
+ } | null)[];
805
+ url?: string;
806
+ users_url?: string;
807
+ teams_url?: string;
808
+ };
809
+ bypass_pull_request_allowances?: {
810
+ users?: {
811
+ name?: string | null;
812
+ email?: string | null;
813
+ login: string;
814
+ id: number;
815
+ node_id: string;
816
+ avatar_url: string;
817
+ gravatar_id: string | null;
818
+ url: string;
819
+ html_url: string;
820
+ followers_url: string;
821
+ following_url: string;
822
+ gists_url: string;
823
+ starred_url: string;
824
+ subscriptions_url: string;
825
+ organizations_url: string;
826
+ repos_url: string;
827
+ events_url: string;
828
+ received_events_url: string;
829
+ type: string;
830
+ site_admin: boolean;
831
+ starred_at?: string;
832
+ user_view_type?: string;
833
+ }[];
834
+ teams?: {
835
+ id: number;
836
+ node_id: string;
837
+ name: string;
838
+ slug: string;
839
+ description: string | null;
840
+ privacy?: string;
841
+ notification_setting?: string;
842
+ permission: string;
843
+ permissions?: {
844
+ pull: boolean;
845
+ triage: boolean;
846
+ push: boolean;
847
+ maintain: boolean;
848
+ admin: boolean;
849
+ };
850
+ url: string;
851
+ html_url: string;
852
+ members_url: string;
853
+ repositories_url: string;
854
+ type: "enterprise" | "organization";
855
+ organization_id?: number;
856
+ enterprise_id?: number;
857
+ parent: {
858
+ id: number;
859
+ node_id: string;
860
+ url: string;
861
+ members_url: string;
862
+ name: string;
863
+ description: string | null;
864
+ permission: string;
865
+ privacy?: string;
866
+ notification_setting?: string;
867
+ html_url: string;
868
+ repositories_url: string;
869
+ slug: string;
870
+ ldap_dn?: string;
871
+ type: "enterprise" | "organization";
872
+ organization_id?: number;
873
+ enterprise_id?: number;
874
+ } | null;
875
+ }[];
876
+ apps?: ({
877
+ id: number;
878
+ slug?: string;
879
+ node_id: string;
880
+ client_id?: string;
881
+ owner: {
882
+ name?: string | null;
883
+ email?: string | null;
884
+ login: string;
885
+ id: number;
886
+ node_id: string;
887
+ avatar_url: string;
888
+ gravatar_id: string | null;
889
+ url: string;
890
+ html_url: string;
891
+ followers_url: string;
892
+ following_url: string;
893
+ gists_url: string;
894
+ starred_url: string;
895
+ subscriptions_url: string;
896
+ organizations_url: string;
897
+ repos_url: string;
898
+ events_url: string;
899
+ received_events_url: string;
900
+ type: string;
901
+ site_admin: boolean;
902
+ starred_at?: string;
903
+ user_view_type?: string;
904
+ } | {
905
+ description?: string | null;
906
+ html_url: string;
907
+ website_url?: string | null;
908
+ id: number;
909
+ node_id: string;
910
+ name: string;
911
+ slug: string;
912
+ created_at: string | null;
913
+ updated_at: string | null;
914
+ avatar_url: string;
915
+ };
916
+ name: string;
917
+ description: string | null;
918
+ external_url: string;
919
+ html_url: string;
920
+ created_at: string;
921
+ updated_at: string;
922
+ permissions: {
923
+ issues?: string;
924
+ checks?: string;
925
+ metadata?: string;
926
+ contents?: string;
927
+ deployments?: string;
928
+ [key: string]: string | undefined;
929
+ };
930
+ events: string[];
931
+ installations_count?: number;
932
+ } | null)[];
933
+ };
934
+ dismiss_stale_reviews: boolean;
935
+ require_code_owner_reviews: boolean;
936
+ required_approving_review_count?: number;
937
+ require_last_push_approval?: boolean;
938
+ };
939
+ restrictions?: {
940
+ url: string;
941
+ users_url: string;
942
+ teams_url: string;
943
+ apps_url: string;
944
+ users: {
945
+ login?: string;
946
+ id?: number;
947
+ node_id?: string;
948
+ avatar_url?: string;
949
+ gravatar_id?: string;
950
+ url?: string;
951
+ html_url?: string;
952
+ followers_url?: string;
953
+ following_url?: string;
954
+ gists_url?: string;
955
+ starred_url?: string;
956
+ subscriptions_url?: string;
957
+ organizations_url?: string;
958
+ repos_url?: string;
959
+ events_url?: string;
960
+ received_events_url?: string;
961
+ type?: string;
962
+ site_admin?: boolean;
963
+ user_view_type?: string;
964
+ }[];
965
+ teams: {
966
+ id: number;
967
+ node_id: string;
968
+ name: string;
969
+ slug: string;
970
+ description: string | null;
971
+ privacy?: string;
972
+ notification_setting?: string;
973
+ permission: string;
974
+ permissions?: {
975
+ pull: boolean;
976
+ triage: boolean;
977
+ push: boolean;
978
+ maintain: boolean;
979
+ admin: boolean;
980
+ };
981
+ url: string;
982
+ html_url: string;
983
+ members_url: string;
984
+ repositories_url: string;
985
+ type: "enterprise" | "organization";
986
+ organization_id?: number;
987
+ enterprise_id?: number;
988
+ parent: {
989
+ id: number;
990
+ node_id: string;
991
+ url: string;
992
+ members_url: string;
993
+ name: string;
994
+ description: string | null;
995
+ permission: string;
996
+ privacy?: string;
997
+ notification_setting?: string;
998
+ html_url: string;
999
+ repositories_url: string;
1000
+ slug: string;
1001
+ ldap_dn?: string;
1002
+ type: "enterprise" | "organization";
1003
+ organization_id?: number;
1004
+ enterprise_id?: number;
1005
+ } | null;
1006
+ }[];
1007
+ apps: {
1008
+ id?: number;
1009
+ slug?: string;
1010
+ node_id?: string;
1011
+ owner?: {
1012
+ login?: string;
1013
+ id?: number;
1014
+ node_id?: string;
1015
+ url?: string;
1016
+ repos_url?: string;
1017
+ events_url?: string;
1018
+ hooks_url?: string;
1019
+ issues_url?: string;
1020
+ members_url?: string;
1021
+ public_members_url?: string;
1022
+ avatar_url?: string;
1023
+ description?: string;
1024
+ gravatar_id?: string;
1025
+ html_url?: string;
1026
+ followers_url?: string;
1027
+ following_url?: string;
1028
+ gists_url?: string;
1029
+ starred_url?: string;
1030
+ subscriptions_url?: string;
1031
+ organizations_url?: string;
1032
+ received_events_url?: string;
1033
+ type?: string;
1034
+ site_admin?: boolean;
1035
+ user_view_type?: string;
1036
+ };
1037
+ name?: string;
1038
+ client_id?: string;
1039
+ description?: string;
1040
+ external_url?: string;
1041
+ html_url?: string;
1042
+ created_at?: string;
1043
+ updated_at?: string;
1044
+ permissions?: {
1045
+ metadata?: string;
1046
+ contents?: string;
1047
+ issues?: string;
1048
+ single_file?: string;
1049
+ };
1050
+ events?: string[];
1051
+ }[];
1052
+ };
1053
+ required_linear_history?: {
1054
+ enabled?: boolean;
1055
+ };
1056
+ allow_force_pushes?: {
1057
+ enabled?: boolean;
1058
+ };
1059
+ allow_deletions?: {
1060
+ enabled?: boolean;
1061
+ };
1062
+ block_creations?: {
1063
+ enabled?: boolean;
1064
+ };
1065
+ required_conversation_resolution?: {
1066
+ enabled?: boolean;
1067
+ };
1068
+ name?: string;
1069
+ protection_url?: string;
1070
+ required_signatures?: {
1071
+ url: string;
1072
+ enabled: boolean;
1073
+ };
1074
+ lock_branch?: {
1075
+ enabled?: boolean;
1076
+ };
1077
+ allow_fork_syncing?: {
1078
+ enabled?: boolean;
1079
+ };
1080
+ };
37
1081
  protection_url: string;
38
1082
  pattern?: string;
39
1083
  required_approving_review_count?: number;
40
1084
  }[]>;
41
1085
  get(): Promise<{
42
1086
  name: string;
43
- commit: import("@octokit/openapi-types").components["schemas"]["commit"];
1087
+ commit: {
1088
+ url: string;
1089
+ sha: string;
1090
+ node_id: string;
1091
+ html_url: string;
1092
+ comments_url: string;
1093
+ commit: {
1094
+ url: string;
1095
+ author: {
1096
+ name?: string;
1097
+ email?: string;
1098
+ date?: string;
1099
+ } | null;
1100
+ committer: {
1101
+ name?: string;
1102
+ email?: string;
1103
+ date?: string;
1104
+ } | null;
1105
+ message: string;
1106
+ comment_count: number;
1107
+ tree: {
1108
+ sha: string;
1109
+ url: string;
1110
+ };
1111
+ verification?: {
1112
+ verified: boolean;
1113
+ reason: string;
1114
+ payload: string | null;
1115
+ signature: string | null;
1116
+ verified_at: string | null;
1117
+ };
1118
+ };
1119
+ author: {
1120
+ name?: string | null;
1121
+ email?: string | null;
1122
+ login: string;
1123
+ id: number;
1124
+ node_id: string;
1125
+ avatar_url: string;
1126
+ gravatar_id: string | null;
1127
+ url: string;
1128
+ html_url: string;
1129
+ followers_url: string;
1130
+ following_url: string;
1131
+ gists_url: string;
1132
+ starred_url: string;
1133
+ subscriptions_url: string;
1134
+ organizations_url: string;
1135
+ repos_url: string;
1136
+ events_url: string;
1137
+ received_events_url: string;
1138
+ type: string;
1139
+ site_admin: boolean;
1140
+ starred_at?: string;
1141
+ user_view_type?: string;
1142
+ } | Record<string, never> | null;
1143
+ committer: {
1144
+ name?: string | null;
1145
+ email?: string | null;
1146
+ login: string;
1147
+ id: number;
1148
+ node_id: string;
1149
+ avatar_url: string;
1150
+ gravatar_id: string | null;
1151
+ url: string;
1152
+ html_url: string;
1153
+ followers_url: string;
1154
+ following_url: string;
1155
+ gists_url: string;
1156
+ starred_url: string;
1157
+ subscriptions_url: string;
1158
+ organizations_url: string;
1159
+ repos_url: string;
1160
+ events_url: string;
1161
+ received_events_url: string;
1162
+ type: string;
1163
+ site_admin: boolean;
1164
+ starred_at?: string;
1165
+ user_view_type?: string;
1166
+ } | Record<string, never> | null;
1167
+ parents: {
1168
+ sha: string;
1169
+ url: string;
1170
+ html_url?: string;
1171
+ }[];
1172
+ stats?: {
1173
+ additions?: number;
1174
+ deletions?: number;
1175
+ total?: number;
1176
+ };
1177
+ files?: {
1178
+ sha: string | null;
1179
+ filename: string;
1180
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
1181
+ additions: number;
1182
+ deletions: number;
1183
+ changes: number;
1184
+ blob_url: string;
1185
+ raw_url: string;
1186
+ contents_url: string;
1187
+ patch?: string;
1188
+ previous_filename?: string;
1189
+ }[];
1190
+ };
44
1191
  _links: {
45
1192
  html: string;
46
1193
  self: string;
47
1194
  };
48
1195
  protected: boolean;
49
- protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
1196
+ protection: {
1197
+ url?: string;
1198
+ enabled?: boolean;
1199
+ required_status_checks?: {
1200
+ url?: string;
1201
+ enforcement_level?: string;
1202
+ contexts: string[];
1203
+ checks: {
1204
+ context: string;
1205
+ app_id: number | null;
1206
+ }[];
1207
+ contexts_url?: string;
1208
+ strict?: boolean;
1209
+ };
1210
+ enforce_admins?: {
1211
+ url: string;
1212
+ enabled: boolean;
1213
+ };
1214
+ required_pull_request_reviews?: {
1215
+ url?: string;
1216
+ dismissal_restrictions?: {
1217
+ users?: {
1218
+ name?: string | null;
1219
+ email?: string | null;
1220
+ login: string;
1221
+ id: number;
1222
+ node_id: string;
1223
+ avatar_url: string;
1224
+ gravatar_id: string | null;
1225
+ url: string;
1226
+ html_url: string;
1227
+ followers_url: string;
1228
+ following_url: string;
1229
+ gists_url: string;
1230
+ starred_url: string;
1231
+ subscriptions_url: string;
1232
+ organizations_url: string;
1233
+ repos_url: string;
1234
+ events_url: string;
1235
+ received_events_url: string;
1236
+ type: string;
1237
+ site_admin: boolean;
1238
+ starred_at?: string;
1239
+ user_view_type?: string;
1240
+ }[];
1241
+ teams?: {
1242
+ id: number;
1243
+ node_id: string;
1244
+ name: string;
1245
+ slug: string;
1246
+ description: string | null;
1247
+ privacy?: string;
1248
+ notification_setting?: string;
1249
+ permission: string;
1250
+ permissions?: {
1251
+ pull: boolean;
1252
+ triage: boolean;
1253
+ push: boolean;
1254
+ maintain: boolean;
1255
+ admin: boolean;
1256
+ };
1257
+ url: string;
1258
+ html_url: string;
1259
+ members_url: string;
1260
+ repositories_url: string;
1261
+ type: "enterprise" | "organization";
1262
+ organization_id?: number;
1263
+ enterprise_id?: number;
1264
+ parent: {
1265
+ id: number;
1266
+ node_id: string;
1267
+ url: string;
1268
+ members_url: string;
1269
+ name: string;
1270
+ description: string | null;
1271
+ permission: string;
1272
+ privacy?: string;
1273
+ notification_setting?: string;
1274
+ html_url: string;
1275
+ repositories_url: string;
1276
+ slug: string;
1277
+ ldap_dn?: string;
1278
+ type: "enterprise" | "organization";
1279
+ organization_id?: number;
1280
+ enterprise_id?: number;
1281
+ } | null;
1282
+ }[];
1283
+ apps?: ({
1284
+ id: number;
1285
+ slug?: string;
1286
+ node_id: string;
1287
+ client_id?: string;
1288
+ owner: {
1289
+ name?: string | null;
1290
+ email?: string | null;
1291
+ login: string;
1292
+ id: number;
1293
+ node_id: string;
1294
+ avatar_url: string;
1295
+ gravatar_id: string | null;
1296
+ url: string;
1297
+ html_url: string;
1298
+ followers_url: string;
1299
+ following_url: string;
1300
+ gists_url: string;
1301
+ starred_url: string;
1302
+ subscriptions_url: string;
1303
+ organizations_url: string;
1304
+ repos_url: string;
1305
+ events_url: string;
1306
+ received_events_url: string;
1307
+ type: string;
1308
+ site_admin: boolean;
1309
+ starred_at?: string;
1310
+ user_view_type?: string;
1311
+ } | {
1312
+ description?: string | null;
1313
+ html_url: string;
1314
+ website_url?: string | null;
1315
+ id: number;
1316
+ node_id: string;
1317
+ name: string;
1318
+ slug: string;
1319
+ created_at: string | null;
1320
+ updated_at: string | null;
1321
+ avatar_url: string;
1322
+ };
1323
+ name: string;
1324
+ description: string | null;
1325
+ external_url: string;
1326
+ html_url: string;
1327
+ created_at: string;
1328
+ updated_at: string;
1329
+ permissions: {
1330
+ issues?: string;
1331
+ checks?: string;
1332
+ metadata?: string;
1333
+ contents?: string;
1334
+ deployments?: string;
1335
+ [key: string]: string | undefined;
1336
+ };
1337
+ events: string[];
1338
+ installations_count?: number;
1339
+ } | null)[];
1340
+ url?: string;
1341
+ users_url?: string;
1342
+ teams_url?: string;
1343
+ };
1344
+ bypass_pull_request_allowances?: {
1345
+ users?: {
1346
+ name?: string | null;
1347
+ email?: string | null;
1348
+ login: string;
1349
+ id: number;
1350
+ node_id: string;
1351
+ avatar_url: string;
1352
+ gravatar_id: string | null;
1353
+ url: string;
1354
+ html_url: string;
1355
+ followers_url: string;
1356
+ following_url: string;
1357
+ gists_url: string;
1358
+ starred_url: string;
1359
+ subscriptions_url: string;
1360
+ organizations_url: string;
1361
+ repos_url: string;
1362
+ events_url: string;
1363
+ received_events_url: string;
1364
+ type: string;
1365
+ site_admin: boolean;
1366
+ starred_at?: string;
1367
+ user_view_type?: string;
1368
+ }[];
1369
+ teams?: {
1370
+ id: number;
1371
+ node_id: string;
1372
+ name: string;
1373
+ slug: string;
1374
+ description: string | null;
1375
+ privacy?: string;
1376
+ notification_setting?: string;
1377
+ permission: string;
1378
+ permissions?: {
1379
+ pull: boolean;
1380
+ triage: boolean;
1381
+ push: boolean;
1382
+ maintain: boolean;
1383
+ admin: boolean;
1384
+ };
1385
+ url: string;
1386
+ html_url: string;
1387
+ members_url: string;
1388
+ repositories_url: string;
1389
+ type: "enterprise" | "organization";
1390
+ organization_id?: number;
1391
+ enterprise_id?: number;
1392
+ parent: {
1393
+ id: number;
1394
+ node_id: string;
1395
+ url: string;
1396
+ members_url: string;
1397
+ name: string;
1398
+ description: string | null;
1399
+ permission: string;
1400
+ privacy?: string;
1401
+ notification_setting?: string;
1402
+ html_url: string;
1403
+ repositories_url: string;
1404
+ slug: string;
1405
+ ldap_dn?: string;
1406
+ type: "enterprise" | "organization";
1407
+ organization_id?: number;
1408
+ enterprise_id?: number;
1409
+ } | null;
1410
+ }[];
1411
+ apps?: ({
1412
+ id: number;
1413
+ slug?: string;
1414
+ node_id: string;
1415
+ client_id?: string;
1416
+ owner: {
1417
+ name?: string | null;
1418
+ email?: string | null;
1419
+ login: string;
1420
+ id: number;
1421
+ node_id: string;
1422
+ avatar_url: string;
1423
+ gravatar_id: string | null;
1424
+ url: string;
1425
+ html_url: string;
1426
+ followers_url: string;
1427
+ following_url: string;
1428
+ gists_url: string;
1429
+ starred_url: string;
1430
+ subscriptions_url: string;
1431
+ organizations_url: string;
1432
+ repos_url: string;
1433
+ events_url: string;
1434
+ received_events_url: string;
1435
+ type: string;
1436
+ site_admin: boolean;
1437
+ starred_at?: string;
1438
+ user_view_type?: string;
1439
+ } | {
1440
+ description?: string | null;
1441
+ html_url: string;
1442
+ website_url?: string | null;
1443
+ id: number;
1444
+ node_id: string;
1445
+ name: string;
1446
+ slug: string;
1447
+ created_at: string | null;
1448
+ updated_at: string | null;
1449
+ avatar_url: string;
1450
+ };
1451
+ name: string;
1452
+ description: string | null;
1453
+ external_url: string;
1454
+ html_url: string;
1455
+ created_at: string;
1456
+ updated_at: string;
1457
+ permissions: {
1458
+ issues?: string;
1459
+ checks?: string;
1460
+ metadata?: string;
1461
+ contents?: string;
1462
+ deployments?: string;
1463
+ [key: string]: string | undefined;
1464
+ };
1465
+ events: string[];
1466
+ installations_count?: number;
1467
+ } | null)[];
1468
+ };
1469
+ dismiss_stale_reviews: boolean;
1470
+ require_code_owner_reviews: boolean;
1471
+ required_approving_review_count?: number;
1472
+ require_last_push_approval?: boolean;
1473
+ };
1474
+ restrictions?: {
1475
+ url: string;
1476
+ users_url: string;
1477
+ teams_url: string;
1478
+ apps_url: string;
1479
+ users: {
1480
+ login?: string;
1481
+ id?: number;
1482
+ node_id?: string;
1483
+ avatar_url?: string;
1484
+ gravatar_id?: string;
1485
+ url?: string;
1486
+ html_url?: string;
1487
+ followers_url?: string;
1488
+ following_url?: string;
1489
+ gists_url?: string;
1490
+ starred_url?: string;
1491
+ subscriptions_url?: string;
1492
+ organizations_url?: string;
1493
+ repos_url?: string;
1494
+ events_url?: string;
1495
+ received_events_url?: string;
1496
+ type?: string;
1497
+ site_admin?: boolean;
1498
+ user_view_type?: string;
1499
+ }[];
1500
+ teams: {
1501
+ id: number;
1502
+ node_id: string;
1503
+ name: string;
1504
+ slug: string;
1505
+ description: string | null;
1506
+ privacy?: string;
1507
+ notification_setting?: string;
1508
+ permission: string;
1509
+ permissions?: {
1510
+ pull: boolean;
1511
+ triage: boolean;
1512
+ push: boolean;
1513
+ maintain: boolean;
1514
+ admin: boolean;
1515
+ };
1516
+ url: string;
1517
+ html_url: string;
1518
+ members_url: string;
1519
+ repositories_url: string;
1520
+ type: "enterprise" | "organization";
1521
+ organization_id?: number;
1522
+ enterprise_id?: number;
1523
+ parent: {
1524
+ id: number;
1525
+ node_id: string;
1526
+ url: string;
1527
+ members_url: string;
1528
+ name: string;
1529
+ description: string | null;
1530
+ permission: string;
1531
+ privacy?: string;
1532
+ notification_setting?: string;
1533
+ html_url: string;
1534
+ repositories_url: string;
1535
+ slug: string;
1536
+ ldap_dn?: string;
1537
+ type: "enterprise" | "organization";
1538
+ organization_id?: number;
1539
+ enterprise_id?: number;
1540
+ } | null;
1541
+ }[];
1542
+ apps: {
1543
+ id?: number;
1544
+ slug?: string;
1545
+ node_id?: string;
1546
+ owner?: {
1547
+ login?: string;
1548
+ id?: number;
1549
+ node_id?: string;
1550
+ url?: string;
1551
+ repos_url?: string;
1552
+ events_url?: string;
1553
+ hooks_url?: string;
1554
+ issues_url?: string;
1555
+ members_url?: string;
1556
+ public_members_url?: string;
1557
+ avatar_url?: string;
1558
+ description?: string;
1559
+ gravatar_id?: string;
1560
+ html_url?: string;
1561
+ followers_url?: string;
1562
+ following_url?: string;
1563
+ gists_url?: string;
1564
+ starred_url?: string;
1565
+ subscriptions_url?: string;
1566
+ organizations_url?: string;
1567
+ received_events_url?: string;
1568
+ type?: string;
1569
+ site_admin?: boolean;
1570
+ user_view_type?: string;
1571
+ };
1572
+ name?: string;
1573
+ client_id?: string;
1574
+ description?: string;
1575
+ external_url?: string;
1576
+ html_url?: string;
1577
+ created_at?: string;
1578
+ updated_at?: string;
1579
+ permissions?: {
1580
+ metadata?: string;
1581
+ contents?: string;
1582
+ issues?: string;
1583
+ single_file?: string;
1584
+ };
1585
+ events?: string[];
1586
+ }[];
1587
+ };
1588
+ required_linear_history?: {
1589
+ enabled?: boolean;
1590
+ };
1591
+ allow_force_pushes?: {
1592
+ enabled?: boolean;
1593
+ };
1594
+ allow_deletions?: {
1595
+ enabled?: boolean;
1596
+ };
1597
+ block_creations?: {
1598
+ enabled?: boolean;
1599
+ };
1600
+ required_conversation_resolution?: {
1601
+ enabled?: boolean;
1602
+ };
1603
+ name?: string;
1604
+ protection_url?: string;
1605
+ required_signatures?: {
1606
+ url: string;
1607
+ enabled: boolean;
1608
+ };
1609
+ lock_branch?: {
1610
+ enabled?: boolean;
1611
+ };
1612
+ allow_fork_syncing?: {
1613
+ enabled?: boolean;
1614
+ };
1615
+ };
50
1616
  protection_url: string;
51
1617
  pattern?: string;
52
1618
  required_approving_review_count?: number;
53
1619
  }>;
54
1620
  post(body: unknown): Promise<{
55
1621
  name: string;
56
- commit: import("@octokit/openapi-types").components["schemas"]["commit"];
1622
+ commit: {
1623
+ url: string;
1624
+ sha: string;
1625
+ node_id: string;
1626
+ html_url: string;
1627
+ comments_url: string;
1628
+ commit: {
1629
+ url: string;
1630
+ author: {
1631
+ name?: string;
1632
+ email?: string;
1633
+ date?: string;
1634
+ } | null;
1635
+ committer: {
1636
+ name?: string;
1637
+ email?: string;
1638
+ date?: string;
1639
+ } | null;
1640
+ message: string;
1641
+ comment_count: number;
1642
+ tree: {
1643
+ sha: string;
1644
+ url: string;
1645
+ };
1646
+ verification?: {
1647
+ verified: boolean;
1648
+ reason: string;
1649
+ payload: string | null;
1650
+ signature: string | null;
1651
+ verified_at: string | null;
1652
+ };
1653
+ };
1654
+ author: {
1655
+ name?: string | null;
1656
+ email?: string | null;
1657
+ login: string;
1658
+ id: number;
1659
+ node_id: string;
1660
+ avatar_url: string;
1661
+ gravatar_id: string | null;
1662
+ url: string;
1663
+ html_url: string;
1664
+ followers_url: string;
1665
+ following_url: string;
1666
+ gists_url: string;
1667
+ starred_url: string;
1668
+ subscriptions_url: string;
1669
+ organizations_url: string;
1670
+ repos_url: string;
1671
+ events_url: string;
1672
+ received_events_url: string;
1673
+ type: string;
1674
+ site_admin: boolean;
1675
+ starred_at?: string;
1676
+ user_view_type?: string;
1677
+ } | Record<string, never> | null;
1678
+ committer: {
1679
+ name?: string | null;
1680
+ email?: string | null;
1681
+ login: string;
1682
+ id: number;
1683
+ node_id: string;
1684
+ avatar_url: string;
1685
+ gravatar_id: string | null;
1686
+ url: string;
1687
+ html_url: string;
1688
+ followers_url: string;
1689
+ following_url: string;
1690
+ gists_url: string;
1691
+ starred_url: string;
1692
+ subscriptions_url: string;
1693
+ organizations_url: string;
1694
+ repos_url: string;
1695
+ events_url: string;
1696
+ received_events_url: string;
1697
+ type: string;
1698
+ site_admin: boolean;
1699
+ starred_at?: string;
1700
+ user_view_type?: string;
1701
+ } | Record<string, never> | null;
1702
+ parents: {
1703
+ sha: string;
1704
+ url: string;
1705
+ html_url?: string;
1706
+ }[];
1707
+ stats?: {
1708
+ additions?: number;
1709
+ deletions?: number;
1710
+ total?: number;
1711
+ };
1712
+ files?: {
1713
+ sha: string | null;
1714
+ filename: string;
1715
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
1716
+ additions: number;
1717
+ deletions: number;
1718
+ changes: number;
1719
+ blob_url: string;
1720
+ raw_url: string;
1721
+ contents_url: string;
1722
+ patch?: string;
1723
+ previous_filename?: string;
1724
+ }[];
1725
+ };
57
1726
  _links: {
58
1727
  html: string;
59
1728
  self: string;
60
1729
  };
61
1730
  protected: boolean;
62
- protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
1731
+ protection: {
1732
+ url?: string;
1733
+ enabled?: boolean;
1734
+ required_status_checks?: {
1735
+ url?: string;
1736
+ enforcement_level?: string;
1737
+ contexts: string[];
1738
+ checks: {
1739
+ context: string;
1740
+ app_id: number | null;
1741
+ }[];
1742
+ contexts_url?: string;
1743
+ strict?: boolean;
1744
+ };
1745
+ enforce_admins?: {
1746
+ url: string;
1747
+ enabled: boolean;
1748
+ };
1749
+ required_pull_request_reviews?: {
1750
+ url?: string;
1751
+ dismissal_restrictions?: {
1752
+ users?: {
1753
+ name?: string | null;
1754
+ email?: string | null;
1755
+ login: string;
1756
+ id: number;
1757
+ node_id: string;
1758
+ avatar_url: string;
1759
+ gravatar_id: string | null;
1760
+ url: string;
1761
+ html_url: string;
1762
+ followers_url: string;
1763
+ following_url: string;
1764
+ gists_url: string;
1765
+ starred_url: string;
1766
+ subscriptions_url: string;
1767
+ organizations_url: string;
1768
+ repos_url: string;
1769
+ events_url: string;
1770
+ received_events_url: string;
1771
+ type: string;
1772
+ site_admin: boolean;
1773
+ starred_at?: string;
1774
+ user_view_type?: string;
1775
+ }[];
1776
+ teams?: {
1777
+ id: number;
1778
+ node_id: string;
1779
+ name: string;
1780
+ slug: string;
1781
+ description: string | null;
1782
+ privacy?: string;
1783
+ notification_setting?: string;
1784
+ permission: string;
1785
+ permissions?: {
1786
+ pull: boolean;
1787
+ triage: boolean;
1788
+ push: boolean;
1789
+ maintain: boolean;
1790
+ admin: boolean;
1791
+ };
1792
+ url: string;
1793
+ html_url: string;
1794
+ members_url: string;
1795
+ repositories_url: string;
1796
+ type: "enterprise" | "organization";
1797
+ organization_id?: number;
1798
+ enterprise_id?: number;
1799
+ parent: {
1800
+ id: number;
1801
+ node_id: string;
1802
+ url: string;
1803
+ members_url: string;
1804
+ name: string;
1805
+ description: string | null;
1806
+ permission: string;
1807
+ privacy?: string;
1808
+ notification_setting?: string;
1809
+ html_url: string;
1810
+ repositories_url: string;
1811
+ slug: string;
1812
+ ldap_dn?: string;
1813
+ type: "enterprise" | "organization";
1814
+ organization_id?: number;
1815
+ enterprise_id?: number;
1816
+ } | null;
1817
+ }[];
1818
+ apps?: ({
1819
+ id: number;
1820
+ slug?: string;
1821
+ node_id: string;
1822
+ client_id?: string;
1823
+ owner: {
1824
+ name?: string | null;
1825
+ email?: string | null;
1826
+ login: string;
1827
+ id: number;
1828
+ node_id: string;
1829
+ avatar_url: string;
1830
+ gravatar_id: string | null;
1831
+ url: string;
1832
+ html_url: string;
1833
+ followers_url: string;
1834
+ following_url: string;
1835
+ gists_url: string;
1836
+ starred_url: string;
1837
+ subscriptions_url: string;
1838
+ organizations_url: string;
1839
+ repos_url: string;
1840
+ events_url: string;
1841
+ received_events_url: string;
1842
+ type: string;
1843
+ site_admin: boolean;
1844
+ starred_at?: string;
1845
+ user_view_type?: string;
1846
+ } | {
1847
+ description?: string | null;
1848
+ html_url: string;
1849
+ website_url?: string | null;
1850
+ id: number;
1851
+ node_id: string;
1852
+ name: string;
1853
+ slug: string;
1854
+ created_at: string | null;
1855
+ updated_at: string | null;
1856
+ avatar_url: string;
1857
+ };
1858
+ name: string;
1859
+ description: string | null;
1860
+ external_url: string;
1861
+ html_url: string;
1862
+ created_at: string;
1863
+ updated_at: string;
1864
+ permissions: {
1865
+ issues?: string;
1866
+ checks?: string;
1867
+ metadata?: string;
1868
+ contents?: string;
1869
+ deployments?: string;
1870
+ [key: string]: string | undefined;
1871
+ };
1872
+ events: string[];
1873
+ installations_count?: number;
1874
+ } | null)[];
1875
+ url?: string;
1876
+ users_url?: string;
1877
+ teams_url?: string;
1878
+ };
1879
+ bypass_pull_request_allowances?: {
1880
+ users?: {
1881
+ name?: string | null;
1882
+ email?: string | null;
1883
+ login: string;
1884
+ id: number;
1885
+ node_id: string;
1886
+ avatar_url: string;
1887
+ gravatar_id: string | null;
1888
+ url: string;
1889
+ html_url: string;
1890
+ followers_url: string;
1891
+ following_url: string;
1892
+ gists_url: string;
1893
+ starred_url: string;
1894
+ subscriptions_url: string;
1895
+ organizations_url: string;
1896
+ repos_url: string;
1897
+ events_url: string;
1898
+ received_events_url: string;
1899
+ type: string;
1900
+ site_admin: boolean;
1901
+ starred_at?: string;
1902
+ user_view_type?: string;
1903
+ }[];
1904
+ teams?: {
1905
+ id: number;
1906
+ node_id: string;
1907
+ name: string;
1908
+ slug: string;
1909
+ description: string | null;
1910
+ privacy?: string;
1911
+ notification_setting?: string;
1912
+ permission: string;
1913
+ permissions?: {
1914
+ pull: boolean;
1915
+ triage: boolean;
1916
+ push: boolean;
1917
+ maintain: boolean;
1918
+ admin: boolean;
1919
+ };
1920
+ url: string;
1921
+ html_url: string;
1922
+ members_url: string;
1923
+ repositories_url: string;
1924
+ type: "enterprise" | "organization";
1925
+ organization_id?: number;
1926
+ enterprise_id?: number;
1927
+ parent: {
1928
+ id: number;
1929
+ node_id: string;
1930
+ url: string;
1931
+ members_url: string;
1932
+ name: string;
1933
+ description: string | null;
1934
+ permission: string;
1935
+ privacy?: string;
1936
+ notification_setting?: string;
1937
+ html_url: string;
1938
+ repositories_url: string;
1939
+ slug: string;
1940
+ ldap_dn?: string;
1941
+ type: "enterprise" | "organization";
1942
+ organization_id?: number;
1943
+ enterprise_id?: number;
1944
+ } | null;
1945
+ }[];
1946
+ apps?: ({
1947
+ id: number;
1948
+ slug?: string;
1949
+ node_id: string;
1950
+ client_id?: string;
1951
+ owner: {
1952
+ name?: string | null;
1953
+ email?: string | null;
1954
+ login: string;
1955
+ id: number;
1956
+ node_id: string;
1957
+ avatar_url: string;
1958
+ gravatar_id: string | null;
1959
+ url: string;
1960
+ html_url: string;
1961
+ followers_url: string;
1962
+ following_url: string;
1963
+ gists_url: string;
1964
+ starred_url: string;
1965
+ subscriptions_url: string;
1966
+ organizations_url: string;
1967
+ repos_url: string;
1968
+ events_url: string;
1969
+ received_events_url: string;
1970
+ type: string;
1971
+ site_admin: boolean;
1972
+ starred_at?: string;
1973
+ user_view_type?: string;
1974
+ } | {
1975
+ description?: string | null;
1976
+ html_url: string;
1977
+ website_url?: string | null;
1978
+ id: number;
1979
+ node_id: string;
1980
+ name: string;
1981
+ slug: string;
1982
+ created_at: string | null;
1983
+ updated_at: string | null;
1984
+ avatar_url: string;
1985
+ };
1986
+ name: string;
1987
+ description: string | null;
1988
+ external_url: string;
1989
+ html_url: string;
1990
+ created_at: string;
1991
+ updated_at: string;
1992
+ permissions: {
1993
+ issues?: string;
1994
+ checks?: string;
1995
+ metadata?: string;
1996
+ contents?: string;
1997
+ deployments?: string;
1998
+ [key: string]: string | undefined;
1999
+ };
2000
+ events: string[];
2001
+ installations_count?: number;
2002
+ } | null)[];
2003
+ };
2004
+ dismiss_stale_reviews: boolean;
2005
+ require_code_owner_reviews: boolean;
2006
+ required_approving_review_count?: number;
2007
+ require_last_push_approval?: boolean;
2008
+ };
2009
+ restrictions?: {
2010
+ url: string;
2011
+ users_url: string;
2012
+ teams_url: string;
2013
+ apps_url: string;
2014
+ users: {
2015
+ login?: string;
2016
+ id?: number;
2017
+ node_id?: string;
2018
+ avatar_url?: string;
2019
+ gravatar_id?: string;
2020
+ url?: string;
2021
+ html_url?: string;
2022
+ followers_url?: string;
2023
+ following_url?: string;
2024
+ gists_url?: string;
2025
+ starred_url?: string;
2026
+ subscriptions_url?: string;
2027
+ organizations_url?: string;
2028
+ repos_url?: string;
2029
+ events_url?: string;
2030
+ received_events_url?: string;
2031
+ type?: string;
2032
+ site_admin?: boolean;
2033
+ user_view_type?: string;
2034
+ }[];
2035
+ teams: {
2036
+ id: number;
2037
+ node_id: string;
2038
+ name: string;
2039
+ slug: string;
2040
+ description: string | null;
2041
+ privacy?: string;
2042
+ notification_setting?: string;
2043
+ permission: string;
2044
+ permissions?: {
2045
+ pull: boolean;
2046
+ triage: boolean;
2047
+ push: boolean;
2048
+ maintain: boolean;
2049
+ admin: boolean;
2050
+ };
2051
+ url: string;
2052
+ html_url: string;
2053
+ members_url: string;
2054
+ repositories_url: string;
2055
+ type: "enterprise" | "organization";
2056
+ organization_id?: number;
2057
+ enterprise_id?: number;
2058
+ parent: {
2059
+ id: number;
2060
+ node_id: string;
2061
+ url: string;
2062
+ members_url: string;
2063
+ name: string;
2064
+ description: string | null;
2065
+ permission: string;
2066
+ privacy?: string;
2067
+ notification_setting?: string;
2068
+ html_url: string;
2069
+ repositories_url: string;
2070
+ slug: string;
2071
+ ldap_dn?: string;
2072
+ type: "enterprise" | "organization";
2073
+ organization_id?: number;
2074
+ enterprise_id?: number;
2075
+ } | null;
2076
+ }[];
2077
+ apps: {
2078
+ id?: number;
2079
+ slug?: string;
2080
+ node_id?: string;
2081
+ owner?: {
2082
+ login?: string;
2083
+ id?: number;
2084
+ node_id?: string;
2085
+ url?: string;
2086
+ repos_url?: string;
2087
+ events_url?: string;
2088
+ hooks_url?: string;
2089
+ issues_url?: string;
2090
+ members_url?: string;
2091
+ public_members_url?: string;
2092
+ avatar_url?: string;
2093
+ description?: string;
2094
+ gravatar_id?: string;
2095
+ html_url?: string;
2096
+ followers_url?: string;
2097
+ following_url?: string;
2098
+ gists_url?: string;
2099
+ starred_url?: string;
2100
+ subscriptions_url?: string;
2101
+ organizations_url?: string;
2102
+ received_events_url?: string;
2103
+ type?: string;
2104
+ site_admin?: boolean;
2105
+ user_view_type?: string;
2106
+ };
2107
+ name?: string;
2108
+ client_id?: string;
2109
+ description?: string;
2110
+ external_url?: string;
2111
+ html_url?: string;
2112
+ created_at?: string;
2113
+ updated_at?: string;
2114
+ permissions?: {
2115
+ metadata?: string;
2116
+ contents?: string;
2117
+ issues?: string;
2118
+ single_file?: string;
2119
+ };
2120
+ events?: string[];
2121
+ }[];
2122
+ };
2123
+ required_linear_history?: {
2124
+ enabled?: boolean;
2125
+ };
2126
+ allow_force_pushes?: {
2127
+ enabled?: boolean;
2128
+ };
2129
+ allow_deletions?: {
2130
+ enabled?: boolean;
2131
+ };
2132
+ block_creations?: {
2133
+ enabled?: boolean;
2134
+ };
2135
+ required_conversation_resolution?: {
2136
+ enabled?: boolean;
2137
+ };
2138
+ name?: string;
2139
+ protection_url?: string;
2140
+ required_signatures?: {
2141
+ url: string;
2142
+ enabled: boolean;
2143
+ };
2144
+ lock_branch?: {
2145
+ enabled?: boolean;
2146
+ };
2147
+ allow_fork_syncing?: {
2148
+ enabled?: boolean;
2149
+ };
2150
+ };
63
2151
  protection_url: string;
64
2152
  pattern?: string;
65
2153
  required_approving_review_count?: number;
66
2154
  }>;
67
2155
  patch(body: unknown): Promise<{
68
2156
  name: string;
69
- commit: import("@octokit/openapi-types").components["schemas"]["commit"];
2157
+ commit: {
2158
+ url: string;
2159
+ sha: string;
2160
+ node_id: string;
2161
+ html_url: string;
2162
+ comments_url: string;
2163
+ commit: {
2164
+ url: string;
2165
+ author: {
2166
+ name?: string;
2167
+ email?: string;
2168
+ date?: string;
2169
+ } | null;
2170
+ committer: {
2171
+ name?: string;
2172
+ email?: string;
2173
+ date?: string;
2174
+ } | null;
2175
+ message: string;
2176
+ comment_count: number;
2177
+ tree: {
2178
+ sha: string;
2179
+ url: string;
2180
+ };
2181
+ verification?: {
2182
+ verified: boolean;
2183
+ reason: string;
2184
+ payload: string | null;
2185
+ signature: string | null;
2186
+ verified_at: string | null;
2187
+ };
2188
+ };
2189
+ author: {
2190
+ name?: string | null;
2191
+ email?: string | null;
2192
+ login: string;
2193
+ id: number;
2194
+ node_id: string;
2195
+ avatar_url: string;
2196
+ gravatar_id: string | null;
2197
+ url: string;
2198
+ html_url: string;
2199
+ followers_url: string;
2200
+ following_url: string;
2201
+ gists_url: string;
2202
+ starred_url: string;
2203
+ subscriptions_url: string;
2204
+ organizations_url: string;
2205
+ repos_url: string;
2206
+ events_url: string;
2207
+ received_events_url: string;
2208
+ type: string;
2209
+ site_admin: boolean;
2210
+ starred_at?: string;
2211
+ user_view_type?: string;
2212
+ } | Record<string, never> | null;
2213
+ committer: {
2214
+ name?: string | null;
2215
+ email?: string | null;
2216
+ login: string;
2217
+ id: number;
2218
+ node_id: string;
2219
+ avatar_url: string;
2220
+ gravatar_id: string | null;
2221
+ url: string;
2222
+ html_url: string;
2223
+ followers_url: string;
2224
+ following_url: string;
2225
+ gists_url: string;
2226
+ starred_url: string;
2227
+ subscriptions_url: string;
2228
+ organizations_url: string;
2229
+ repos_url: string;
2230
+ events_url: string;
2231
+ received_events_url: string;
2232
+ type: string;
2233
+ site_admin: boolean;
2234
+ starred_at?: string;
2235
+ user_view_type?: string;
2236
+ } | Record<string, never> | null;
2237
+ parents: {
2238
+ sha: string;
2239
+ url: string;
2240
+ html_url?: string;
2241
+ }[];
2242
+ stats?: {
2243
+ additions?: number;
2244
+ deletions?: number;
2245
+ total?: number;
2246
+ };
2247
+ files?: {
2248
+ sha: string | null;
2249
+ filename: string;
2250
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
2251
+ additions: number;
2252
+ deletions: number;
2253
+ changes: number;
2254
+ blob_url: string;
2255
+ raw_url: string;
2256
+ contents_url: string;
2257
+ patch?: string;
2258
+ previous_filename?: string;
2259
+ }[];
2260
+ };
70
2261
  _links: {
71
2262
  html: string;
72
2263
  self: string;
73
2264
  };
74
2265
  protected: boolean;
75
- protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
2266
+ protection: {
2267
+ url?: string;
2268
+ enabled?: boolean;
2269
+ required_status_checks?: {
2270
+ url?: string;
2271
+ enforcement_level?: string;
2272
+ contexts: string[];
2273
+ checks: {
2274
+ context: string;
2275
+ app_id: number | null;
2276
+ }[];
2277
+ contexts_url?: string;
2278
+ strict?: boolean;
2279
+ };
2280
+ enforce_admins?: {
2281
+ url: string;
2282
+ enabled: boolean;
2283
+ };
2284
+ required_pull_request_reviews?: {
2285
+ url?: string;
2286
+ dismissal_restrictions?: {
2287
+ users?: {
2288
+ name?: string | null;
2289
+ email?: string | null;
2290
+ login: string;
2291
+ id: number;
2292
+ node_id: string;
2293
+ avatar_url: string;
2294
+ gravatar_id: string | null;
2295
+ url: string;
2296
+ html_url: string;
2297
+ followers_url: string;
2298
+ following_url: string;
2299
+ gists_url: string;
2300
+ starred_url: string;
2301
+ subscriptions_url: string;
2302
+ organizations_url: string;
2303
+ repos_url: string;
2304
+ events_url: string;
2305
+ received_events_url: string;
2306
+ type: string;
2307
+ site_admin: boolean;
2308
+ starred_at?: string;
2309
+ user_view_type?: string;
2310
+ }[];
2311
+ teams?: {
2312
+ id: number;
2313
+ node_id: string;
2314
+ name: string;
2315
+ slug: string;
2316
+ description: string | null;
2317
+ privacy?: string;
2318
+ notification_setting?: string;
2319
+ permission: string;
2320
+ permissions?: {
2321
+ pull: boolean;
2322
+ triage: boolean;
2323
+ push: boolean;
2324
+ maintain: boolean;
2325
+ admin: boolean;
2326
+ };
2327
+ url: string;
2328
+ html_url: string;
2329
+ members_url: string;
2330
+ repositories_url: string;
2331
+ type: "enterprise" | "organization";
2332
+ organization_id?: number;
2333
+ enterprise_id?: number;
2334
+ parent: {
2335
+ id: number;
2336
+ node_id: string;
2337
+ url: string;
2338
+ members_url: string;
2339
+ name: string;
2340
+ description: string | null;
2341
+ permission: string;
2342
+ privacy?: string;
2343
+ notification_setting?: string;
2344
+ html_url: string;
2345
+ repositories_url: string;
2346
+ slug: string;
2347
+ ldap_dn?: string;
2348
+ type: "enterprise" | "organization";
2349
+ organization_id?: number;
2350
+ enterprise_id?: number;
2351
+ } | null;
2352
+ }[];
2353
+ apps?: ({
2354
+ id: number;
2355
+ slug?: string;
2356
+ node_id: string;
2357
+ client_id?: string;
2358
+ owner: {
2359
+ name?: string | null;
2360
+ email?: string | null;
2361
+ login: string;
2362
+ id: number;
2363
+ node_id: string;
2364
+ avatar_url: string;
2365
+ gravatar_id: string | null;
2366
+ url: string;
2367
+ html_url: string;
2368
+ followers_url: string;
2369
+ following_url: string;
2370
+ gists_url: string;
2371
+ starred_url: string;
2372
+ subscriptions_url: string;
2373
+ organizations_url: string;
2374
+ repos_url: string;
2375
+ events_url: string;
2376
+ received_events_url: string;
2377
+ type: string;
2378
+ site_admin: boolean;
2379
+ starred_at?: string;
2380
+ user_view_type?: string;
2381
+ } | {
2382
+ description?: string | null;
2383
+ html_url: string;
2384
+ website_url?: string | null;
2385
+ id: number;
2386
+ node_id: string;
2387
+ name: string;
2388
+ slug: string;
2389
+ created_at: string | null;
2390
+ updated_at: string | null;
2391
+ avatar_url: string;
2392
+ };
2393
+ name: string;
2394
+ description: string | null;
2395
+ external_url: string;
2396
+ html_url: string;
2397
+ created_at: string;
2398
+ updated_at: string;
2399
+ permissions: {
2400
+ issues?: string;
2401
+ checks?: string;
2402
+ metadata?: string;
2403
+ contents?: string;
2404
+ deployments?: string;
2405
+ [key: string]: string | undefined;
2406
+ };
2407
+ events: string[];
2408
+ installations_count?: number;
2409
+ } | null)[];
2410
+ url?: string;
2411
+ users_url?: string;
2412
+ teams_url?: string;
2413
+ };
2414
+ bypass_pull_request_allowances?: {
2415
+ users?: {
2416
+ name?: string | null;
2417
+ email?: string | null;
2418
+ login: string;
2419
+ id: number;
2420
+ node_id: string;
2421
+ avatar_url: string;
2422
+ gravatar_id: string | null;
2423
+ url: string;
2424
+ html_url: string;
2425
+ followers_url: string;
2426
+ following_url: string;
2427
+ gists_url: string;
2428
+ starred_url: string;
2429
+ subscriptions_url: string;
2430
+ organizations_url: string;
2431
+ repos_url: string;
2432
+ events_url: string;
2433
+ received_events_url: string;
2434
+ type: string;
2435
+ site_admin: boolean;
2436
+ starred_at?: string;
2437
+ user_view_type?: string;
2438
+ }[];
2439
+ teams?: {
2440
+ id: number;
2441
+ node_id: string;
2442
+ name: string;
2443
+ slug: string;
2444
+ description: string | null;
2445
+ privacy?: string;
2446
+ notification_setting?: string;
2447
+ permission: string;
2448
+ permissions?: {
2449
+ pull: boolean;
2450
+ triage: boolean;
2451
+ push: boolean;
2452
+ maintain: boolean;
2453
+ admin: boolean;
2454
+ };
2455
+ url: string;
2456
+ html_url: string;
2457
+ members_url: string;
2458
+ repositories_url: string;
2459
+ type: "enterprise" | "organization";
2460
+ organization_id?: number;
2461
+ enterprise_id?: number;
2462
+ parent: {
2463
+ id: number;
2464
+ node_id: string;
2465
+ url: string;
2466
+ members_url: string;
2467
+ name: string;
2468
+ description: string | null;
2469
+ permission: string;
2470
+ privacy?: string;
2471
+ notification_setting?: string;
2472
+ html_url: string;
2473
+ repositories_url: string;
2474
+ slug: string;
2475
+ ldap_dn?: string;
2476
+ type: "enterprise" | "organization";
2477
+ organization_id?: number;
2478
+ enterprise_id?: number;
2479
+ } | null;
2480
+ }[];
2481
+ apps?: ({
2482
+ id: number;
2483
+ slug?: string;
2484
+ node_id: string;
2485
+ client_id?: string;
2486
+ owner: {
2487
+ name?: string | null;
2488
+ email?: string | null;
2489
+ login: string;
2490
+ id: number;
2491
+ node_id: string;
2492
+ avatar_url: string;
2493
+ gravatar_id: string | null;
2494
+ url: string;
2495
+ html_url: string;
2496
+ followers_url: string;
2497
+ following_url: string;
2498
+ gists_url: string;
2499
+ starred_url: string;
2500
+ subscriptions_url: string;
2501
+ organizations_url: string;
2502
+ repos_url: string;
2503
+ events_url: string;
2504
+ received_events_url: string;
2505
+ type: string;
2506
+ site_admin: boolean;
2507
+ starred_at?: string;
2508
+ user_view_type?: string;
2509
+ } | {
2510
+ description?: string | null;
2511
+ html_url: string;
2512
+ website_url?: string | null;
2513
+ id: number;
2514
+ node_id: string;
2515
+ name: string;
2516
+ slug: string;
2517
+ created_at: string | null;
2518
+ updated_at: string | null;
2519
+ avatar_url: string;
2520
+ };
2521
+ name: string;
2522
+ description: string | null;
2523
+ external_url: string;
2524
+ html_url: string;
2525
+ created_at: string;
2526
+ updated_at: string;
2527
+ permissions: {
2528
+ issues?: string;
2529
+ checks?: string;
2530
+ metadata?: string;
2531
+ contents?: string;
2532
+ deployments?: string;
2533
+ [key: string]: string | undefined;
2534
+ };
2535
+ events: string[];
2536
+ installations_count?: number;
2537
+ } | null)[];
2538
+ };
2539
+ dismiss_stale_reviews: boolean;
2540
+ require_code_owner_reviews: boolean;
2541
+ required_approving_review_count?: number;
2542
+ require_last_push_approval?: boolean;
2543
+ };
2544
+ restrictions?: {
2545
+ url: string;
2546
+ users_url: string;
2547
+ teams_url: string;
2548
+ apps_url: string;
2549
+ users: {
2550
+ login?: string;
2551
+ id?: number;
2552
+ node_id?: string;
2553
+ avatar_url?: string;
2554
+ gravatar_id?: string;
2555
+ url?: string;
2556
+ html_url?: string;
2557
+ followers_url?: string;
2558
+ following_url?: string;
2559
+ gists_url?: string;
2560
+ starred_url?: string;
2561
+ subscriptions_url?: string;
2562
+ organizations_url?: string;
2563
+ repos_url?: string;
2564
+ events_url?: string;
2565
+ received_events_url?: string;
2566
+ type?: string;
2567
+ site_admin?: boolean;
2568
+ user_view_type?: string;
2569
+ }[];
2570
+ teams: {
2571
+ id: number;
2572
+ node_id: string;
2573
+ name: string;
2574
+ slug: string;
2575
+ description: string | null;
2576
+ privacy?: string;
2577
+ notification_setting?: string;
2578
+ permission: string;
2579
+ permissions?: {
2580
+ pull: boolean;
2581
+ triage: boolean;
2582
+ push: boolean;
2583
+ maintain: boolean;
2584
+ admin: boolean;
2585
+ };
2586
+ url: string;
2587
+ html_url: string;
2588
+ members_url: string;
2589
+ repositories_url: string;
2590
+ type: "enterprise" | "organization";
2591
+ organization_id?: number;
2592
+ enterprise_id?: number;
2593
+ parent: {
2594
+ id: number;
2595
+ node_id: string;
2596
+ url: string;
2597
+ members_url: string;
2598
+ name: string;
2599
+ description: string | null;
2600
+ permission: string;
2601
+ privacy?: string;
2602
+ notification_setting?: string;
2603
+ html_url: string;
2604
+ repositories_url: string;
2605
+ slug: string;
2606
+ ldap_dn?: string;
2607
+ type: "enterprise" | "organization";
2608
+ organization_id?: number;
2609
+ enterprise_id?: number;
2610
+ } | null;
2611
+ }[];
2612
+ apps: {
2613
+ id?: number;
2614
+ slug?: string;
2615
+ node_id?: string;
2616
+ owner?: {
2617
+ login?: string;
2618
+ id?: number;
2619
+ node_id?: string;
2620
+ url?: string;
2621
+ repos_url?: string;
2622
+ events_url?: string;
2623
+ hooks_url?: string;
2624
+ issues_url?: string;
2625
+ members_url?: string;
2626
+ public_members_url?: string;
2627
+ avatar_url?: string;
2628
+ description?: string;
2629
+ gravatar_id?: string;
2630
+ html_url?: string;
2631
+ followers_url?: string;
2632
+ following_url?: string;
2633
+ gists_url?: string;
2634
+ starred_url?: string;
2635
+ subscriptions_url?: string;
2636
+ organizations_url?: string;
2637
+ received_events_url?: string;
2638
+ type?: string;
2639
+ site_admin?: boolean;
2640
+ user_view_type?: string;
2641
+ };
2642
+ name?: string;
2643
+ client_id?: string;
2644
+ description?: string;
2645
+ external_url?: string;
2646
+ html_url?: string;
2647
+ created_at?: string;
2648
+ updated_at?: string;
2649
+ permissions?: {
2650
+ metadata?: string;
2651
+ contents?: string;
2652
+ issues?: string;
2653
+ single_file?: string;
2654
+ };
2655
+ events?: string[];
2656
+ }[];
2657
+ };
2658
+ required_linear_history?: {
2659
+ enabled?: boolean;
2660
+ };
2661
+ allow_force_pushes?: {
2662
+ enabled?: boolean;
2663
+ };
2664
+ allow_deletions?: {
2665
+ enabled?: boolean;
2666
+ };
2667
+ block_creations?: {
2668
+ enabled?: boolean;
2669
+ };
2670
+ required_conversation_resolution?: {
2671
+ enabled?: boolean;
2672
+ };
2673
+ name?: string;
2674
+ protection_url?: string;
2675
+ required_signatures?: {
2676
+ url: string;
2677
+ enabled: boolean;
2678
+ };
2679
+ lock_branch?: {
2680
+ enabled?: boolean;
2681
+ };
2682
+ allow_fork_syncing?: {
2683
+ enabled?: boolean;
2684
+ };
2685
+ };
76
2686
  protection_url: string;
77
2687
  pattern?: string;
78
2688
  required_approving_review_count?: number;