@tomsd/github-repo-js 0.2.3 → 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.
@@ -9,7 +9,426 @@ export declare function readyGitHubRepositoryBranches(token: string): {
9
9
  url: string;
10
10
  };
11
11
  protected: boolean;
12
- protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
12
+ protection?: {
13
+ url?: string;
14
+ enabled?: boolean;
15
+ required_status_checks?: {
16
+ url?: string;
17
+ enforcement_level?: string;
18
+ contexts: string[];
19
+ checks: {
20
+ context: string;
21
+ app_id: number | null;
22
+ }[];
23
+ contexts_url?: string;
24
+ strict?: boolean;
25
+ };
26
+ enforce_admins?: {
27
+ url: string;
28
+ enabled: boolean;
29
+ };
30
+ required_pull_request_reviews?: {
31
+ url?: string;
32
+ dismissal_restrictions?: {
33
+ users?: {
34
+ name?: string | null;
35
+ email?: string | null;
36
+ login: string;
37
+ id: number;
38
+ node_id: string;
39
+ avatar_url: string;
40
+ gravatar_id: string | null;
41
+ url: string;
42
+ html_url: string;
43
+ followers_url: string;
44
+ following_url: string;
45
+ gists_url: string;
46
+ starred_url: string;
47
+ subscriptions_url: string;
48
+ organizations_url: string;
49
+ repos_url: string;
50
+ events_url: string;
51
+ received_events_url: string;
52
+ type: string;
53
+ site_admin: boolean;
54
+ starred_at?: string;
55
+ user_view_type?: string;
56
+ }[];
57
+ teams?: {
58
+ id: number;
59
+ node_id: string;
60
+ name: string;
61
+ slug: string;
62
+ description: string | null;
63
+ privacy?: string;
64
+ notification_setting?: string;
65
+ permission: string;
66
+ permissions?: {
67
+ pull: boolean;
68
+ triage: boolean;
69
+ push: boolean;
70
+ maintain: boolean;
71
+ admin: boolean;
72
+ };
73
+ url: string;
74
+ html_url: string;
75
+ members_url: string;
76
+ repositories_url: string;
77
+ type: "enterprise" | "organization";
78
+ organization_id?: number;
79
+ enterprise_id?: number;
80
+ parent: {
81
+ id: number;
82
+ node_id: string;
83
+ url: string;
84
+ members_url: string;
85
+ name: string;
86
+ description: string | null;
87
+ permission: string;
88
+ privacy?: string;
89
+ notification_setting?: string;
90
+ html_url: string;
91
+ repositories_url: string;
92
+ slug: string;
93
+ ldap_dn?: string;
94
+ type: "enterprise" | "organization";
95
+ organization_id?: number;
96
+ enterprise_id?: number;
97
+ } | null;
98
+ }[];
99
+ apps?: ({
100
+ id: number;
101
+ slug?: string;
102
+ node_id: string;
103
+ client_id?: string;
104
+ owner: {
105
+ name?: string | null;
106
+ email?: string | null;
107
+ login: string;
108
+ id: number;
109
+ node_id: string;
110
+ avatar_url: string;
111
+ gravatar_id: string | null;
112
+ url: string;
113
+ html_url: string;
114
+ followers_url: string;
115
+ following_url: string;
116
+ gists_url: string;
117
+ starred_url: string;
118
+ subscriptions_url: string;
119
+ organizations_url: string;
120
+ repos_url: string;
121
+ events_url: string;
122
+ received_events_url: string;
123
+ type: string;
124
+ site_admin: boolean;
125
+ starred_at?: string;
126
+ user_view_type?: string;
127
+ } | {
128
+ description?: string | null;
129
+ html_url: string;
130
+ website_url?: string | null;
131
+ id: number;
132
+ node_id: string;
133
+ name: string;
134
+ slug: string;
135
+ created_at: string | null;
136
+ updated_at: string | null;
137
+ avatar_url: string;
138
+ };
139
+ name: string;
140
+ description: string | null;
141
+ external_url: string;
142
+ html_url: string;
143
+ created_at: string;
144
+ updated_at: string;
145
+ permissions: {
146
+ issues?: string;
147
+ checks?: string;
148
+ metadata?: string;
149
+ contents?: string;
150
+ deployments?: string;
151
+ [key: string]: string | undefined;
152
+ };
153
+ events: string[];
154
+ installations_count?: number;
155
+ } | null)[];
156
+ url?: string;
157
+ users_url?: string;
158
+ teams_url?: string;
159
+ };
160
+ bypass_pull_request_allowances?: {
161
+ users?: {
162
+ name?: string | null;
163
+ email?: string | null;
164
+ login: string;
165
+ id: number;
166
+ node_id: string;
167
+ avatar_url: string;
168
+ gravatar_id: string | null;
169
+ url: string;
170
+ html_url: string;
171
+ followers_url: string;
172
+ following_url: string;
173
+ gists_url: string;
174
+ starred_url: string;
175
+ subscriptions_url: string;
176
+ organizations_url: string;
177
+ repos_url: string;
178
+ events_url: string;
179
+ received_events_url: string;
180
+ type: string;
181
+ site_admin: boolean;
182
+ starred_at?: string;
183
+ user_view_type?: string;
184
+ }[];
185
+ teams?: {
186
+ id: number;
187
+ node_id: string;
188
+ name: string;
189
+ slug: string;
190
+ description: string | null;
191
+ privacy?: string;
192
+ notification_setting?: string;
193
+ permission: string;
194
+ permissions?: {
195
+ pull: boolean;
196
+ triage: boolean;
197
+ push: boolean;
198
+ maintain: boolean;
199
+ admin: boolean;
200
+ };
201
+ url: string;
202
+ html_url: string;
203
+ members_url: string;
204
+ repositories_url: string;
205
+ type: "enterprise" | "organization";
206
+ organization_id?: number;
207
+ enterprise_id?: number;
208
+ parent: {
209
+ id: number;
210
+ node_id: string;
211
+ url: string;
212
+ members_url: string;
213
+ name: string;
214
+ description: string | null;
215
+ permission: string;
216
+ privacy?: string;
217
+ notification_setting?: string;
218
+ html_url: string;
219
+ repositories_url: string;
220
+ slug: string;
221
+ ldap_dn?: string;
222
+ type: "enterprise" | "organization";
223
+ organization_id?: number;
224
+ enterprise_id?: number;
225
+ } | null;
226
+ }[];
227
+ apps?: ({
228
+ id: number;
229
+ slug?: string;
230
+ node_id: string;
231
+ client_id?: string;
232
+ owner: {
233
+ name?: string | null;
234
+ email?: string | null;
235
+ login: string;
236
+ id: number;
237
+ node_id: string;
238
+ avatar_url: string;
239
+ gravatar_id: string | null;
240
+ url: string;
241
+ html_url: string;
242
+ followers_url: string;
243
+ following_url: string;
244
+ gists_url: string;
245
+ starred_url: string;
246
+ subscriptions_url: string;
247
+ organizations_url: string;
248
+ repos_url: string;
249
+ events_url: string;
250
+ received_events_url: string;
251
+ type: string;
252
+ site_admin: boolean;
253
+ starred_at?: string;
254
+ user_view_type?: string;
255
+ } | {
256
+ description?: string | null;
257
+ html_url: string;
258
+ website_url?: string | null;
259
+ id: number;
260
+ node_id: string;
261
+ name: string;
262
+ slug: string;
263
+ created_at: string | null;
264
+ updated_at: string | null;
265
+ avatar_url: string;
266
+ };
267
+ name: string;
268
+ description: string | null;
269
+ external_url: string;
270
+ html_url: string;
271
+ created_at: string;
272
+ updated_at: string;
273
+ permissions: {
274
+ issues?: string;
275
+ checks?: string;
276
+ metadata?: string;
277
+ contents?: string;
278
+ deployments?: string;
279
+ [key: string]: string | undefined;
280
+ };
281
+ events: string[];
282
+ installations_count?: number;
283
+ } | null)[];
284
+ };
285
+ dismiss_stale_reviews: boolean;
286
+ require_code_owner_reviews: boolean;
287
+ required_approving_review_count?: number;
288
+ require_last_push_approval?: boolean;
289
+ };
290
+ restrictions?: {
291
+ url: string;
292
+ users_url: string;
293
+ teams_url: string;
294
+ apps_url: string;
295
+ users: {
296
+ login?: string;
297
+ id?: number;
298
+ node_id?: string;
299
+ avatar_url?: string;
300
+ gravatar_id?: string;
301
+ url?: string;
302
+ html_url?: string;
303
+ followers_url?: string;
304
+ following_url?: string;
305
+ gists_url?: string;
306
+ starred_url?: string;
307
+ subscriptions_url?: string;
308
+ organizations_url?: string;
309
+ repos_url?: string;
310
+ events_url?: string;
311
+ received_events_url?: string;
312
+ type?: string;
313
+ site_admin?: boolean;
314
+ user_view_type?: string;
315
+ }[];
316
+ teams: {
317
+ id: number;
318
+ node_id: string;
319
+ name: string;
320
+ slug: string;
321
+ description: string | null;
322
+ privacy?: string;
323
+ notification_setting?: string;
324
+ permission: string;
325
+ permissions?: {
326
+ pull: boolean;
327
+ triage: boolean;
328
+ push: boolean;
329
+ maintain: boolean;
330
+ admin: boolean;
331
+ };
332
+ url: string;
333
+ html_url: string;
334
+ members_url: string;
335
+ repositories_url: string;
336
+ type: "enterprise" | "organization";
337
+ organization_id?: number;
338
+ enterprise_id?: number;
339
+ parent: {
340
+ id: number;
341
+ node_id: string;
342
+ url: string;
343
+ members_url: string;
344
+ name: string;
345
+ description: string | null;
346
+ permission: string;
347
+ privacy?: string;
348
+ notification_setting?: string;
349
+ html_url: string;
350
+ repositories_url: string;
351
+ slug: string;
352
+ ldap_dn?: string;
353
+ type: "enterprise" | "organization";
354
+ organization_id?: number;
355
+ enterprise_id?: number;
356
+ } | null;
357
+ }[];
358
+ apps: {
359
+ id?: number;
360
+ slug?: string;
361
+ node_id?: string;
362
+ owner?: {
363
+ login?: string;
364
+ id?: number;
365
+ node_id?: string;
366
+ url?: string;
367
+ repos_url?: string;
368
+ events_url?: string;
369
+ hooks_url?: string;
370
+ issues_url?: string;
371
+ members_url?: string;
372
+ public_members_url?: string;
373
+ avatar_url?: string;
374
+ description?: string;
375
+ gravatar_id?: string;
376
+ html_url?: string;
377
+ followers_url?: string;
378
+ following_url?: string;
379
+ gists_url?: string;
380
+ starred_url?: string;
381
+ subscriptions_url?: string;
382
+ organizations_url?: string;
383
+ received_events_url?: string;
384
+ type?: string;
385
+ site_admin?: boolean;
386
+ user_view_type?: string;
387
+ };
388
+ name?: string;
389
+ client_id?: string;
390
+ description?: string;
391
+ external_url?: string;
392
+ html_url?: string;
393
+ created_at?: string;
394
+ updated_at?: string;
395
+ permissions?: {
396
+ metadata?: string;
397
+ contents?: string;
398
+ issues?: string;
399
+ single_file?: string;
400
+ };
401
+ events?: string[];
402
+ }[];
403
+ };
404
+ required_linear_history?: {
405
+ enabled?: boolean;
406
+ };
407
+ allow_force_pushes?: {
408
+ enabled?: boolean;
409
+ };
410
+ allow_deletions?: {
411
+ enabled?: boolean;
412
+ };
413
+ block_creations?: {
414
+ enabled?: boolean;
415
+ };
416
+ required_conversation_resolution?: {
417
+ enabled?: boolean;
418
+ };
419
+ name?: string;
420
+ protection_url?: string;
421
+ required_signatures?: {
422
+ url: string;
423
+ enabled: boolean;
424
+ };
425
+ lock_branch?: {
426
+ enabled?: boolean;
427
+ };
428
+ allow_fork_syncing?: {
429
+ enabled?: boolean;
430
+ };
431
+ };
13
432
  protection_url?: string;
14
433
  }[]>;
15
434
  owner: string;
@@ -28,7 +447,426 @@ export declare function readyGitHubRepositoryBranches(token: string): {
28
447
  url: string;
29
448
  };
30
449
  protected: boolean;
31
- protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
450
+ protection?: {
451
+ url?: string;
452
+ enabled?: boolean;
453
+ required_status_checks?: {
454
+ url?: string;
455
+ enforcement_level?: string;
456
+ contexts: string[];
457
+ checks: {
458
+ context: string;
459
+ app_id: number | null;
460
+ }[];
461
+ contexts_url?: string;
462
+ strict?: boolean;
463
+ };
464
+ enforce_admins?: {
465
+ url: string;
466
+ enabled: boolean;
467
+ };
468
+ required_pull_request_reviews?: {
469
+ url?: string;
470
+ dismissal_restrictions?: {
471
+ users?: {
472
+ name?: string | null;
473
+ email?: string | null;
474
+ login: string;
475
+ id: number;
476
+ node_id: string;
477
+ avatar_url: string;
478
+ gravatar_id: string | null;
479
+ url: string;
480
+ html_url: string;
481
+ followers_url: string;
482
+ following_url: string;
483
+ gists_url: string;
484
+ starred_url: string;
485
+ subscriptions_url: string;
486
+ organizations_url: string;
487
+ repos_url: string;
488
+ events_url: string;
489
+ received_events_url: string;
490
+ type: string;
491
+ site_admin: boolean;
492
+ starred_at?: string;
493
+ user_view_type?: string;
494
+ }[];
495
+ teams?: {
496
+ id: number;
497
+ node_id: string;
498
+ name: string;
499
+ slug: string;
500
+ description: string | null;
501
+ privacy?: string;
502
+ notification_setting?: string;
503
+ permission: string;
504
+ permissions?: {
505
+ pull: boolean;
506
+ triage: boolean;
507
+ push: boolean;
508
+ maintain: boolean;
509
+ admin: boolean;
510
+ };
511
+ url: string;
512
+ html_url: string;
513
+ members_url: string;
514
+ repositories_url: string;
515
+ type: "enterprise" | "organization";
516
+ organization_id?: number;
517
+ enterprise_id?: number;
518
+ parent: {
519
+ id: number;
520
+ node_id: string;
521
+ url: string;
522
+ members_url: string;
523
+ name: string;
524
+ description: string | null;
525
+ permission: string;
526
+ privacy?: string;
527
+ notification_setting?: string;
528
+ html_url: string;
529
+ repositories_url: string;
530
+ slug: string;
531
+ ldap_dn?: string;
532
+ type: "enterprise" | "organization";
533
+ organization_id?: number;
534
+ enterprise_id?: number;
535
+ } | null;
536
+ }[];
537
+ apps?: ({
538
+ id: number;
539
+ slug?: string;
540
+ node_id: string;
541
+ client_id?: string;
542
+ owner: {
543
+ name?: string | null;
544
+ email?: string | null;
545
+ login: string;
546
+ id: number;
547
+ node_id: string;
548
+ avatar_url: string;
549
+ gravatar_id: string | null;
550
+ url: string;
551
+ html_url: string;
552
+ followers_url: string;
553
+ following_url: string;
554
+ gists_url: string;
555
+ starred_url: string;
556
+ subscriptions_url: string;
557
+ organizations_url: string;
558
+ repos_url: string;
559
+ events_url: string;
560
+ received_events_url: string;
561
+ type: string;
562
+ site_admin: boolean;
563
+ starred_at?: string;
564
+ user_view_type?: string;
565
+ } | {
566
+ description?: string | null;
567
+ html_url: string;
568
+ website_url?: string | null;
569
+ id: number;
570
+ node_id: string;
571
+ name: string;
572
+ slug: string;
573
+ created_at: string | null;
574
+ updated_at: string | null;
575
+ avatar_url: string;
576
+ };
577
+ name: string;
578
+ description: string | null;
579
+ external_url: string;
580
+ html_url: string;
581
+ created_at: string;
582
+ updated_at: string;
583
+ permissions: {
584
+ issues?: string;
585
+ checks?: string;
586
+ metadata?: string;
587
+ contents?: string;
588
+ deployments?: string;
589
+ [key: string]: string | undefined;
590
+ };
591
+ events: string[];
592
+ installations_count?: number;
593
+ } | null)[];
594
+ url?: string;
595
+ users_url?: string;
596
+ teams_url?: string;
597
+ };
598
+ bypass_pull_request_allowances?: {
599
+ users?: {
600
+ name?: string | null;
601
+ email?: string | null;
602
+ login: string;
603
+ id: number;
604
+ node_id: string;
605
+ avatar_url: string;
606
+ gravatar_id: string | null;
607
+ url: string;
608
+ html_url: string;
609
+ followers_url: string;
610
+ following_url: string;
611
+ gists_url: string;
612
+ starred_url: string;
613
+ subscriptions_url: string;
614
+ organizations_url: string;
615
+ repos_url: string;
616
+ events_url: string;
617
+ received_events_url: string;
618
+ type: string;
619
+ site_admin: boolean;
620
+ starred_at?: string;
621
+ user_view_type?: string;
622
+ }[];
623
+ teams?: {
624
+ id: number;
625
+ node_id: string;
626
+ name: string;
627
+ slug: string;
628
+ description: string | null;
629
+ privacy?: string;
630
+ notification_setting?: string;
631
+ permission: string;
632
+ permissions?: {
633
+ pull: boolean;
634
+ triage: boolean;
635
+ push: boolean;
636
+ maintain: boolean;
637
+ admin: boolean;
638
+ };
639
+ url: string;
640
+ html_url: string;
641
+ members_url: string;
642
+ repositories_url: string;
643
+ type: "enterprise" | "organization";
644
+ organization_id?: number;
645
+ enterprise_id?: number;
646
+ parent: {
647
+ id: number;
648
+ node_id: string;
649
+ url: string;
650
+ members_url: string;
651
+ name: string;
652
+ description: string | null;
653
+ permission: string;
654
+ privacy?: string;
655
+ notification_setting?: string;
656
+ html_url: string;
657
+ repositories_url: string;
658
+ slug: string;
659
+ ldap_dn?: string;
660
+ type: "enterprise" | "organization";
661
+ organization_id?: number;
662
+ enterprise_id?: number;
663
+ } | null;
664
+ }[];
665
+ apps?: ({
666
+ id: number;
667
+ slug?: string;
668
+ node_id: string;
669
+ client_id?: string;
670
+ owner: {
671
+ name?: string | null;
672
+ email?: string | null;
673
+ login: string;
674
+ id: number;
675
+ node_id: string;
676
+ avatar_url: string;
677
+ gravatar_id: string | null;
678
+ url: string;
679
+ html_url: string;
680
+ followers_url: string;
681
+ following_url: string;
682
+ gists_url: string;
683
+ starred_url: string;
684
+ subscriptions_url: string;
685
+ organizations_url: string;
686
+ repos_url: string;
687
+ events_url: string;
688
+ received_events_url: string;
689
+ type: string;
690
+ site_admin: boolean;
691
+ starred_at?: string;
692
+ user_view_type?: string;
693
+ } | {
694
+ description?: string | null;
695
+ html_url: string;
696
+ website_url?: string | null;
697
+ id: number;
698
+ node_id: string;
699
+ name: string;
700
+ slug: string;
701
+ created_at: string | null;
702
+ updated_at: string | null;
703
+ avatar_url: string;
704
+ };
705
+ name: string;
706
+ description: string | null;
707
+ external_url: string;
708
+ html_url: string;
709
+ created_at: string;
710
+ updated_at: string;
711
+ permissions: {
712
+ issues?: string;
713
+ checks?: string;
714
+ metadata?: string;
715
+ contents?: string;
716
+ deployments?: string;
717
+ [key: string]: string | undefined;
718
+ };
719
+ events: string[];
720
+ installations_count?: number;
721
+ } | null)[];
722
+ };
723
+ dismiss_stale_reviews: boolean;
724
+ require_code_owner_reviews: boolean;
725
+ required_approving_review_count?: number;
726
+ require_last_push_approval?: boolean;
727
+ };
728
+ restrictions?: {
729
+ url: string;
730
+ users_url: string;
731
+ teams_url: string;
732
+ apps_url: string;
733
+ users: {
734
+ login?: string;
735
+ id?: number;
736
+ node_id?: string;
737
+ avatar_url?: string;
738
+ gravatar_id?: string;
739
+ url?: string;
740
+ html_url?: string;
741
+ followers_url?: string;
742
+ following_url?: string;
743
+ gists_url?: string;
744
+ starred_url?: string;
745
+ subscriptions_url?: string;
746
+ organizations_url?: string;
747
+ repos_url?: string;
748
+ events_url?: string;
749
+ received_events_url?: string;
750
+ type?: string;
751
+ site_admin?: boolean;
752
+ user_view_type?: string;
753
+ }[];
754
+ teams: {
755
+ id: number;
756
+ node_id: string;
757
+ name: string;
758
+ slug: string;
759
+ description: string | null;
760
+ privacy?: string;
761
+ notification_setting?: string;
762
+ permission: string;
763
+ permissions?: {
764
+ pull: boolean;
765
+ triage: boolean;
766
+ push: boolean;
767
+ maintain: boolean;
768
+ admin: boolean;
769
+ };
770
+ url: string;
771
+ html_url: string;
772
+ members_url: string;
773
+ repositories_url: string;
774
+ type: "enterprise" | "organization";
775
+ organization_id?: number;
776
+ enterprise_id?: number;
777
+ parent: {
778
+ id: number;
779
+ node_id: string;
780
+ url: string;
781
+ members_url: string;
782
+ name: string;
783
+ description: string | null;
784
+ permission: string;
785
+ privacy?: string;
786
+ notification_setting?: string;
787
+ html_url: string;
788
+ repositories_url: string;
789
+ slug: string;
790
+ ldap_dn?: string;
791
+ type: "enterprise" | "organization";
792
+ organization_id?: number;
793
+ enterprise_id?: number;
794
+ } | null;
795
+ }[];
796
+ apps: {
797
+ id?: number;
798
+ slug?: string;
799
+ node_id?: string;
800
+ owner?: {
801
+ login?: string;
802
+ id?: number;
803
+ node_id?: string;
804
+ url?: string;
805
+ repos_url?: string;
806
+ events_url?: string;
807
+ hooks_url?: string;
808
+ issues_url?: string;
809
+ members_url?: string;
810
+ public_members_url?: string;
811
+ avatar_url?: string;
812
+ description?: string;
813
+ gravatar_id?: string;
814
+ html_url?: string;
815
+ followers_url?: string;
816
+ following_url?: string;
817
+ gists_url?: string;
818
+ starred_url?: string;
819
+ subscriptions_url?: string;
820
+ organizations_url?: string;
821
+ received_events_url?: string;
822
+ type?: string;
823
+ site_admin?: boolean;
824
+ user_view_type?: string;
825
+ };
826
+ name?: string;
827
+ client_id?: string;
828
+ description?: string;
829
+ external_url?: string;
830
+ html_url?: string;
831
+ created_at?: string;
832
+ updated_at?: string;
833
+ permissions?: {
834
+ metadata?: string;
835
+ contents?: string;
836
+ issues?: string;
837
+ single_file?: string;
838
+ };
839
+ events?: string[];
840
+ }[];
841
+ };
842
+ required_linear_history?: {
843
+ enabled?: boolean;
844
+ };
845
+ allow_force_pushes?: {
846
+ enabled?: boolean;
847
+ };
848
+ allow_deletions?: {
849
+ enabled?: boolean;
850
+ };
851
+ block_creations?: {
852
+ enabled?: boolean;
853
+ };
854
+ required_conversation_resolution?: {
855
+ enabled?: boolean;
856
+ };
857
+ name?: string;
858
+ protection_url?: string;
859
+ required_signatures?: {
860
+ url: string;
861
+ enabled: boolean;
862
+ };
863
+ lock_branch?: {
864
+ enabled?: boolean;
865
+ };
866
+ allow_fork_syncing?: {
867
+ enabled?: boolean;
868
+ };
869
+ };
32
870
  protection_url?: string;
33
871
  }[]>;
34
872
  get(): Promise<{
@@ -38,7 +876,426 @@ export declare function readyGitHubRepositoryBranches(token: string): {
38
876
  url: string;
39
877
  };
40
878
  protected: boolean;
41
- protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
879
+ protection?: {
880
+ url?: string;
881
+ enabled?: boolean;
882
+ required_status_checks?: {
883
+ url?: string;
884
+ enforcement_level?: string;
885
+ contexts: string[];
886
+ checks: {
887
+ context: string;
888
+ app_id: number | null;
889
+ }[];
890
+ contexts_url?: string;
891
+ strict?: boolean;
892
+ };
893
+ enforce_admins?: {
894
+ url: string;
895
+ enabled: boolean;
896
+ };
897
+ required_pull_request_reviews?: {
898
+ url?: string;
899
+ dismissal_restrictions?: {
900
+ users?: {
901
+ name?: string | null;
902
+ email?: string | null;
903
+ login: string;
904
+ id: number;
905
+ node_id: string;
906
+ avatar_url: string;
907
+ gravatar_id: string | null;
908
+ url: string;
909
+ html_url: string;
910
+ followers_url: string;
911
+ following_url: string;
912
+ gists_url: string;
913
+ starred_url: string;
914
+ subscriptions_url: string;
915
+ organizations_url: string;
916
+ repos_url: string;
917
+ events_url: string;
918
+ received_events_url: string;
919
+ type: string;
920
+ site_admin: boolean;
921
+ starred_at?: string;
922
+ user_view_type?: string;
923
+ }[];
924
+ teams?: {
925
+ id: number;
926
+ node_id: string;
927
+ name: string;
928
+ slug: string;
929
+ description: string | null;
930
+ privacy?: string;
931
+ notification_setting?: string;
932
+ permission: string;
933
+ permissions?: {
934
+ pull: boolean;
935
+ triage: boolean;
936
+ push: boolean;
937
+ maintain: boolean;
938
+ admin: boolean;
939
+ };
940
+ url: string;
941
+ html_url: string;
942
+ members_url: string;
943
+ repositories_url: string;
944
+ type: "enterprise" | "organization";
945
+ organization_id?: number;
946
+ enterprise_id?: number;
947
+ parent: {
948
+ id: number;
949
+ node_id: string;
950
+ url: string;
951
+ members_url: string;
952
+ name: string;
953
+ description: string | null;
954
+ permission: string;
955
+ privacy?: string;
956
+ notification_setting?: string;
957
+ html_url: string;
958
+ repositories_url: string;
959
+ slug: string;
960
+ ldap_dn?: string;
961
+ type: "enterprise" | "organization";
962
+ organization_id?: number;
963
+ enterprise_id?: number;
964
+ } | null;
965
+ }[];
966
+ apps?: ({
967
+ id: number;
968
+ slug?: string;
969
+ node_id: string;
970
+ client_id?: string;
971
+ owner: {
972
+ name?: string | null;
973
+ email?: string | null;
974
+ login: string;
975
+ id: number;
976
+ node_id: string;
977
+ avatar_url: string;
978
+ gravatar_id: string | null;
979
+ url: string;
980
+ html_url: string;
981
+ followers_url: string;
982
+ following_url: string;
983
+ gists_url: string;
984
+ starred_url: string;
985
+ subscriptions_url: string;
986
+ organizations_url: string;
987
+ repos_url: string;
988
+ events_url: string;
989
+ received_events_url: string;
990
+ type: string;
991
+ site_admin: boolean;
992
+ starred_at?: string;
993
+ user_view_type?: string;
994
+ } | {
995
+ description?: string | null;
996
+ html_url: string;
997
+ website_url?: string | null;
998
+ id: number;
999
+ node_id: string;
1000
+ name: string;
1001
+ slug: string;
1002
+ created_at: string | null;
1003
+ updated_at: string | null;
1004
+ avatar_url: string;
1005
+ };
1006
+ name: string;
1007
+ description: string | null;
1008
+ external_url: string;
1009
+ html_url: string;
1010
+ created_at: string;
1011
+ updated_at: string;
1012
+ permissions: {
1013
+ issues?: string;
1014
+ checks?: string;
1015
+ metadata?: string;
1016
+ contents?: string;
1017
+ deployments?: string;
1018
+ [key: string]: string | undefined;
1019
+ };
1020
+ events: string[];
1021
+ installations_count?: number;
1022
+ } | null)[];
1023
+ url?: string;
1024
+ users_url?: string;
1025
+ teams_url?: string;
1026
+ };
1027
+ bypass_pull_request_allowances?: {
1028
+ users?: {
1029
+ name?: string | null;
1030
+ email?: string | null;
1031
+ login: string;
1032
+ id: number;
1033
+ node_id: string;
1034
+ avatar_url: string;
1035
+ gravatar_id: string | null;
1036
+ url: string;
1037
+ html_url: string;
1038
+ followers_url: string;
1039
+ following_url: string;
1040
+ gists_url: string;
1041
+ starred_url: string;
1042
+ subscriptions_url: string;
1043
+ organizations_url: string;
1044
+ repos_url: string;
1045
+ events_url: string;
1046
+ received_events_url: string;
1047
+ type: string;
1048
+ site_admin: boolean;
1049
+ starred_at?: string;
1050
+ user_view_type?: string;
1051
+ }[];
1052
+ teams?: {
1053
+ id: number;
1054
+ node_id: string;
1055
+ name: string;
1056
+ slug: string;
1057
+ description: string | null;
1058
+ privacy?: string;
1059
+ notification_setting?: string;
1060
+ permission: string;
1061
+ permissions?: {
1062
+ pull: boolean;
1063
+ triage: boolean;
1064
+ push: boolean;
1065
+ maintain: boolean;
1066
+ admin: boolean;
1067
+ };
1068
+ url: string;
1069
+ html_url: string;
1070
+ members_url: string;
1071
+ repositories_url: string;
1072
+ type: "enterprise" | "organization";
1073
+ organization_id?: number;
1074
+ enterprise_id?: number;
1075
+ parent: {
1076
+ id: number;
1077
+ node_id: string;
1078
+ url: string;
1079
+ members_url: string;
1080
+ name: string;
1081
+ description: string | null;
1082
+ permission: string;
1083
+ privacy?: string;
1084
+ notification_setting?: string;
1085
+ html_url: string;
1086
+ repositories_url: string;
1087
+ slug: string;
1088
+ ldap_dn?: string;
1089
+ type: "enterprise" | "organization";
1090
+ organization_id?: number;
1091
+ enterprise_id?: number;
1092
+ } | null;
1093
+ }[];
1094
+ apps?: ({
1095
+ id: number;
1096
+ slug?: string;
1097
+ node_id: string;
1098
+ client_id?: string;
1099
+ owner: {
1100
+ name?: string | null;
1101
+ email?: string | null;
1102
+ login: string;
1103
+ id: number;
1104
+ node_id: string;
1105
+ avatar_url: string;
1106
+ gravatar_id: string | null;
1107
+ url: string;
1108
+ html_url: string;
1109
+ followers_url: string;
1110
+ following_url: string;
1111
+ gists_url: string;
1112
+ starred_url: string;
1113
+ subscriptions_url: string;
1114
+ organizations_url: string;
1115
+ repos_url: string;
1116
+ events_url: string;
1117
+ received_events_url: string;
1118
+ type: string;
1119
+ site_admin: boolean;
1120
+ starred_at?: string;
1121
+ user_view_type?: string;
1122
+ } | {
1123
+ description?: string | null;
1124
+ html_url: string;
1125
+ website_url?: string | null;
1126
+ id: number;
1127
+ node_id: string;
1128
+ name: string;
1129
+ slug: string;
1130
+ created_at: string | null;
1131
+ updated_at: string | null;
1132
+ avatar_url: string;
1133
+ };
1134
+ name: string;
1135
+ description: string | null;
1136
+ external_url: string;
1137
+ html_url: string;
1138
+ created_at: string;
1139
+ updated_at: string;
1140
+ permissions: {
1141
+ issues?: string;
1142
+ checks?: string;
1143
+ metadata?: string;
1144
+ contents?: string;
1145
+ deployments?: string;
1146
+ [key: string]: string | undefined;
1147
+ };
1148
+ events: string[];
1149
+ installations_count?: number;
1150
+ } | null)[];
1151
+ };
1152
+ dismiss_stale_reviews: boolean;
1153
+ require_code_owner_reviews: boolean;
1154
+ required_approving_review_count?: number;
1155
+ require_last_push_approval?: boolean;
1156
+ };
1157
+ restrictions?: {
1158
+ url: string;
1159
+ users_url: string;
1160
+ teams_url: string;
1161
+ apps_url: string;
1162
+ users: {
1163
+ login?: string;
1164
+ id?: number;
1165
+ node_id?: string;
1166
+ avatar_url?: string;
1167
+ gravatar_id?: string;
1168
+ url?: string;
1169
+ html_url?: string;
1170
+ followers_url?: string;
1171
+ following_url?: string;
1172
+ gists_url?: string;
1173
+ starred_url?: string;
1174
+ subscriptions_url?: string;
1175
+ organizations_url?: string;
1176
+ repos_url?: string;
1177
+ events_url?: string;
1178
+ received_events_url?: string;
1179
+ type?: string;
1180
+ site_admin?: boolean;
1181
+ user_view_type?: string;
1182
+ }[];
1183
+ teams: {
1184
+ id: number;
1185
+ node_id: string;
1186
+ name: string;
1187
+ slug: string;
1188
+ description: string | null;
1189
+ privacy?: string;
1190
+ notification_setting?: string;
1191
+ permission: string;
1192
+ permissions?: {
1193
+ pull: boolean;
1194
+ triage: boolean;
1195
+ push: boolean;
1196
+ maintain: boolean;
1197
+ admin: boolean;
1198
+ };
1199
+ url: string;
1200
+ html_url: string;
1201
+ members_url: string;
1202
+ repositories_url: string;
1203
+ type: "enterprise" | "organization";
1204
+ organization_id?: number;
1205
+ enterprise_id?: number;
1206
+ parent: {
1207
+ id: number;
1208
+ node_id: string;
1209
+ url: string;
1210
+ members_url: string;
1211
+ name: string;
1212
+ description: string | null;
1213
+ permission: string;
1214
+ privacy?: string;
1215
+ notification_setting?: string;
1216
+ html_url: string;
1217
+ repositories_url: string;
1218
+ slug: string;
1219
+ ldap_dn?: string;
1220
+ type: "enterprise" | "organization";
1221
+ organization_id?: number;
1222
+ enterprise_id?: number;
1223
+ } | null;
1224
+ }[];
1225
+ apps: {
1226
+ id?: number;
1227
+ slug?: string;
1228
+ node_id?: string;
1229
+ owner?: {
1230
+ login?: string;
1231
+ id?: number;
1232
+ node_id?: string;
1233
+ url?: string;
1234
+ repos_url?: string;
1235
+ events_url?: string;
1236
+ hooks_url?: string;
1237
+ issues_url?: string;
1238
+ members_url?: string;
1239
+ public_members_url?: string;
1240
+ avatar_url?: string;
1241
+ description?: string;
1242
+ gravatar_id?: string;
1243
+ html_url?: string;
1244
+ followers_url?: string;
1245
+ following_url?: string;
1246
+ gists_url?: string;
1247
+ starred_url?: string;
1248
+ subscriptions_url?: string;
1249
+ organizations_url?: string;
1250
+ received_events_url?: string;
1251
+ type?: string;
1252
+ site_admin?: boolean;
1253
+ user_view_type?: string;
1254
+ };
1255
+ name?: string;
1256
+ client_id?: string;
1257
+ description?: string;
1258
+ external_url?: string;
1259
+ html_url?: string;
1260
+ created_at?: string;
1261
+ updated_at?: string;
1262
+ permissions?: {
1263
+ metadata?: string;
1264
+ contents?: string;
1265
+ issues?: string;
1266
+ single_file?: string;
1267
+ };
1268
+ events?: string[];
1269
+ }[];
1270
+ };
1271
+ required_linear_history?: {
1272
+ enabled?: boolean;
1273
+ };
1274
+ allow_force_pushes?: {
1275
+ enabled?: boolean;
1276
+ };
1277
+ allow_deletions?: {
1278
+ enabled?: boolean;
1279
+ };
1280
+ block_creations?: {
1281
+ enabled?: boolean;
1282
+ };
1283
+ required_conversation_resolution?: {
1284
+ enabled?: boolean;
1285
+ };
1286
+ name?: string;
1287
+ protection_url?: string;
1288
+ required_signatures?: {
1289
+ url: string;
1290
+ enabled: boolean;
1291
+ };
1292
+ lock_branch?: {
1293
+ enabled?: boolean;
1294
+ };
1295
+ allow_fork_syncing?: {
1296
+ enabled?: boolean;
1297
+ };
1298
+ };
42
1299
  protection_url?: string;
43
1300
  }>;
44
1301
  post(body: unknown): Promise<{
@@ -48,7 +1305,426 @@ export declare function readyGitHubRepositoryBranches(token: string): {
48
1305
  url: string;
49
1306
  };
50
1307
  protected: boolean;
51
- protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
1308
+ protection?: {
1309
+ url?: string;
1310
+ enabled?: boolean;
1311
+ required_status_checks?: {
1312
+ url?: string;
1313
+ enforcement_level?: string;
1314
+ contexts: string[];
1315
+ checks: {
1316
+ context: string;
1317
+ app_id: number | null;
1318
+ }[];
1319
+ contexts_url?: string;
1320
+ strict?: boolean;
1321
+ };
1322
+ enforce_admins?: {
1323
+ url: string;
1324
+ enabled: boolean;
1325
+ };
1326
+ required_pull_request_reviews?: {
1327
+ url?: string;
1328
+ dismissal_restrictions?: {
1329
+ users?: {
1330
+ name?: string | null;
1331
+ email?: string | null;
1332
+ login: string;
1333
+ id: number;
1334
+ node_id: string;
1335
+ avatar_url: string;
1336
+ gravatar_id: string | null;
1337
+ url: string;
1338
+ html_url: string;
1339
+ followers_url: string;
1340
+ following_url: string;
1341
+ gists_url: string;
1342
+ starred_url: string;
1343
+ subscriptions_url: string;
1344
+ organizations_url: string;
1345
+ repos_url: string;
1346
+ events_url: string;
1347
+ received_events_url: string;
1348
+ type: string;
1349
+ site_admin: boolean;
1350
+ starred_at?: string;
1351
+ user_view_type?: string;
1352
+ }[];
1353
+ teams?: {
1354
+ id: number;
1355
+ node_id: string;
1356
+ name: string;
1357
+ slug: string;
1358
+ description: string | null;
1359
+ privacy?: string;
1360
+ notification_setting?: string;
1361
+ permission: string;
1362
+ permissions?: {
1363
+ pull: boolean;
1364
+ triage: boolean;
1365
+ push: boolean;
1366
+ maintain: boolean;
1367
+ admin: boolean;
1368
+ };
1369
+ url: string;
1370
+ html_url: string;
1371
+ members_url: string;
1372
+ repositories_url: string;
1373
+ type: "enterprise" | "organization";
1374
+ organization_id?: number;
1375
+ enterprise_id?: number;
1376
+ parent: {
1377
+ id: number;
1378
+ node_id: string;
1379
+ url: string;
1380
+ members_url: string;
1381
+ name: string;
1382
+ description: string | null;
1383
+ permission: string;
1384
+ privacy?: string;
1385
+ notification_setting?: string;
1386
+ html_url: string;
1387
+ repositories_url: string;
1388
+ slug: string;
1389
+ ldap_dn?: string;
1390
+ type: "enterprise" | "organization";
1391
+ organization_id?: number;
1392
+ enterprise_id?: number;
1393
+ } | null;
1394
+ }[];
1395
+ apps?: ({
1396
+ id: number;
1397
+ slug?: string;
1398
+ node_id: string;
1399
+ client_id?: string;
1400
+ owner: {
1401
+ name?: string | null;
1402
+ email?: string | null;
1403
+ login: string;
1404
+ id: number;
1405
+ node_id: string;
1406
+ avatar_url: string;
1407
+ gravatar_id: string | null;
1408
+ url: string;
1409
+ html_url: string;
1410
+ followers_url: string;
1411
+ following_url: string;
1412
+ gists_url: string;
1413
+ starred_url: string;
1414
+ subscriptions_url: string;
1415
+ organizations_url: string;
1416
+ repos_url: string;
1417
+ events_url: string;
1418
+ received_events_url: string;
1419
+ type: string;
1420
+ site_admin: boolean;
1421
+ starred_at?: string;
1422
+ user_view_type?: string;
1423
+ } | {
1424
+ description?: string | null;
1425
+ html_url: string;
1426
+ website_url?: string | null;
1427
+ id: number;
1428
+ node_id: string;
1429
+ name: string;
1430
+ slug: string;
1431
+ created_at: string | null;
1432
+ updated_at: string | null;
1433
+ avatar_url: string;
1434
+ };
1435
+ name: string;
1436
+ description: string | null;
1437
+ external_url: string;
1438
+ html_url: string;
1439
+ created_at: string;
1440
+ updated_at: string;
1441
+ permissions: {
1442
+ issues?: string;
1443
+ checks?: string;
1444
+ metadata?: string;
1445
+ contents?: string;
1446
+ deployments?: string;
1447
+ [key: string]: string | undefined;
1448
+ };
1449
+ events: string[];
1450
+ installations_count?: number;
1451
+ } | null)[];
1452
+ url?: string;
1453
+ users_url?: string;
1454
+ teams_url?: string;
1455
+ };
1456
+ bypass_pull_request_allowances?: {
1457
+ users?: {
1458
+ name?: string | null;
1459
+ email?: string | null;
1460
+ login: string;
1461
+ id: number;
1462
+ node_id: string;
1463
+ avatar_url: string;
1464
+ gravatar_id: string | null;
1465
+ url: string;
1466
+ html_url: string;
1467
+ followers_url: string;
1468
+ following_url: string;
1469
+ gists_url: string;
1470
+ starred_url: string;
1471
+ subscriptions_url: string;
1472
+ organizations_url: string;
1473
+ repos_url: string;
1474
+ events_url: string;
1475
+ received_events_url: string;
1476
+ type: string;
1477
+ site_admin: boolean;
1478
+ starred_at?: string;
1479
+ user_view_type?: string;
1480
+ }[];
1481
+ teams?: {
1482
+ id: number;
1483
+ node_id: string;
1484
+ name: string;
1485
+ slug: string;
1486
+ description: string | null;
1487
+ privacy?: string;
1488
+ notification_setting?: string;
1489
+ permission: string;
1490
+ permissions?: {
1491
+ pull: boolean;
1492
+ triage: boolean;
1493
+ push: boolean;
1494
+ maintain: boolean;
1495
+ admin: boolean;
1496
+ };
1497
+ url: string;
1498
+ html_url: string;
1499
+ members_url: string;
1500
+ repositories_url: string;
1501
+ type: "enterprise" | "organization";
1502
+ organization_id?: number;
1503
+ enterprise_id?: number;
1504
+ parent: {
1505
+ id: number;
1506
+ node_id: string;
1507
+ url: string;
1508
+ members_url: string;
1509
+ name: string;
1510
+ description: string | null;
1511
+ permission: string;
1512
+ privacy?: string;
1513
+ notification_setting?: string;
1514
+ html_url: string;
1515
+ repositories_url: string;
1516
+ slug: string;
1517
+ ldap_dn?: string;
1518
+ type: "enterprise" | "organization";
1519
+ organization_id?: number;
1520
+ enterprise_id?: number;
1521
+ } | null;
1522
+ }[];
1523
+ apps?: ({
1524
+ id: number;
1525
+ slug?: string;
1526
+ node_id: string;
1527
+ client_id?: string;
1528
+ owner: {
1529
+ name?: string | null;
1530
+ email?: string | null;
1531
+ login: string;
1532
+ id: number;
1533
+ node_id: string;
1534
+ avatar_url: string;
1535
+ gravatar_id: string | null;
1536
+ url: string;
1537
+ html_url: string;
1538
+ followers_url: string;
1539
+ following_url: string;
1540
+ gists_url: string;
1541
+ starred_url: string;
1542
+ subscriptions_url: string;
1543
+ organizations_url: string;
1544
+ repos_url: string;
1545
+ events_url: string;
1546
+ received_events_url: string;
1547
+ type: string;
1548
+ site_admin: boolean;
1549
+ starred_at?: string;
1550
+ user_view_type?: string;
1551
+ } | {
1552
+ description?: string | null;
1553
+ html_url: string;
1554
+ website_url?: string | null;
1555
+ id: number;
1556
+ node_id: string;
1557
+ name: string;
1558
+ slug: string;
1559
+ created_at: string | null;
1560
+ updated_at: string | null;
1561
+ avatar_url: string;
1562
+ };
1563
+ name: string;
1564
+ description: string | null;
1565
+ external_url: string;
1566
+ html_url: string;
1567
+ created_at: string;
1568
+ updated_at: string;
1569
+ permissions: {
1570
+ issues?: string;
1571
+ checks?: string;
1572
+ metadata?: string;
1573
+ contents?: string;
1574
+ deployments?: string;
1575
+ [key: string]: string | undefined;
1576
+ };
1577
+ events: string[];
1578
+ installations_count?: number;
1579
+ } | null)[];
1580
+ };
1581
+ dismiss_stale_reviews: boolean;
1582
+ require_code_owner_reviews: boolean;
1583
+ required_approving_review_count?: number;
1584
+ require_last_push_approval?: boolean;
1585
+ };
1586
+ restrictions?: {
1587
+ url: string;
1588
+ users_url: string;
1589
+ teams_url: string;
1590
+ apps_url: string;
1591
+ users: {
1592
+ login?: string;
1593
+ id?: number;
1594
+ node_id?: string;
1595
+ avatar_url?: string;
1596
+ gravatar_id?: string;
1597
+ url?: string;
1598
+ html_url?: string;
1599
+ followers_url?: string;
1600
+ following_url?: string;
1601
+ gists_url?: string;
1602
+ starred_url?: string;
1603
+ subscriptions_url?: string;
1604
+ organizations_url?: string;
1605
+ repos_url?: string;
1606
+ events_url?: string;
1607
+ received_events_url?: string;
1608
+ type?: string;
1609
+ site_admin?: boolean;
1610
+ user_view_type?: string;
1611
+ }[];
1612
+ teams: {
1613
+ id: number;
1614
+ node_id: string;
1615
+ name: string;
1616
+ slug: string;
1617
+ description: string | null;
1618
+ privacy?: string;
1619
+ notification_setting?: string;
1620
+ permission: string;
1621
+ permissions?: {
1622
+ pull: boolean;
1623
+ triage: boolean;
1624
+ push: boolean;
1625
+ maintain: boolean;
1626
+ admin: boolean;
1627
+ };
1628
+ url: string;
1629
+ html_url: string;
1630
+ members_url: string;
1631
+ repositories_url: string;
1632
+ type: "enterprise" | "organization";
1633
+ organization_id?: number;
1634
+ enterprise_id?: number;
1635
+ parent: {
1636
+ id: number;
1637
+ node_id: string;
1638
+ url: string;
1639
+ members_url: string;
1640
+ name: string;
1641
+ description: string | null;
1642
+ permission: string;
1643
+ privacy?: string;
1644
+ notification_setting?: string;
1645
+ html_url: string;
1646
+ repositories_url: string;
1647
+ slug: string;
1648
+ ldap_dn?: string;
1649
+ type: "enterprise" | "organization";
1650
+ organization_id?: number;
1651
+ enterprise_id?: number;
1652
+ } | null;
1653
+ }[];
1654
+ apps: {
1655
+ id?: number;
1656
+ slug?: string;
1657
+ node_id?: string;
1658
+ owner?: {
1659
+ login?: string;
1660
+ id?: number;
1661
+ node_id?: string;
1662
+ url?: string;
1663
+ repos_url?: string;
1664
+ events_url?: string;
1665
+ hooks_url?: string;
1666
+ issues_url?: string;
1667
+ members_url?: string;
1668
+ public_members_url?: string;
1669
+ avatar_url?: string;
1670
+ description?: string;
1671
+ gravatar_id?: string;
1672
+ html_url?: string;
1673
+ followers_url?: string;
1674
+ following_url?: string;
1675
+ gists_url?: string;
1676
+ starred_url?: string;
1677
+ subscriptions_url?: string;
1678
+ organizations_url?: string;
1679
+ received_events_url?: string;
1680
+ type?: string;
1681
+ site_admin?: boolean;
1682
+ user_view_type?: string;
1683
+ };
1684
+ name?: string;
1685
+ client_id?: string;
1686
+ description?: string;
1687
+ external_url?: string;
1688
+ html_url?: string;
1689
+ created_at?: string;
1690
+ updated_at?: string;
1691
+ permissions?: {
1692
+ metadata?: string;
1693
+ contents?: string;
1694
+ issues?: string;
1695
+ single_file?: string;
1696
+ };
1697
+ events?: string[];
1698
+ }[];
1699
+ };
1700
+ required_linear_history?: {
1701
+ enabled?: boolean;
1702
+ };
1703
+ allow_force_pushes?: {
1704
+ enabled?: boolean;
1705
+ };
1706
+ allow_deletions?: {
1707
+ enabled?: boolean;
1708
+ };
1709
+ block_creations?: {
1710
+ enabled?: boolean;
1711
+ };
1712
+ required_conversation_resolution?: {
1713
+ enabled?: boolean;
1714
+ };
1715
+ name?: string;
1716
+ protection_url?: string;
1717
+ required_signatures?: {
1718
+ url: string;
1719
+ enabled: boolean;
1720
+ };
1721
+ lock_branch?: {
1722
+ enabled?: boolean;
1723
+ };
1724
+ allow_fork_syncing?: {
1725
+ enabled?: boolean;
1726
+ };
1727
+ };
52
1728
  protection_url?: string;
53
1729
  }>;
54
1730
  patch(body: unknown): Promise<{
@@ -58,7 +1734,426 @@ export declare function readyGitHubRepositoryBranches(token: string): {
58
1734
  url: string;
59
1735
  };
60
1736
  protected: boolean;
61
- protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
1737
+ protection?: {
1738
+ url?: string;
1739
+ enabled?: boolean;
1740
+ required_status_checks?: {
1741
+ url?: string;
1742
+ enforcement_level?: string;
1743
+ contexts: string[];
1744
+ checks: {
1745
+ context: string;
1746
+ app_id: number | null;
1747
+ }[];
1748
+ contexts_url?: string;
1749
+ strict?: boolean;
1750
+ };
1751
+ enforce_admins?: {
1752
+ url: string;
1753
+ enabled: boolean;
1754
+ };
1755
+ required_pull_request_reviews?: {
1756
+ url?: string;
1757
+ dismissal_restrictions?: {
1758
+ users?: {
1759
+ name?: string | null;
1760
+ email?: string | null;
1761
+ login: string;
1762
+ id: number;
1763
+ node_id: string;
1764
+ avatar_url: string;
1765
+ gravatar_id: string | null;
1766
+ url: string;
1767
+ html_url: string;
1768
+ followers_url: string;
1769
+ following_url: string;
1770
+ gists_url: string;
1771
+ starred_url: string;
1772
+ subscriptions_url: string;
1773
+ organizations_url: string;
1774
+ repos_url: string;
1775
+ events_url: string;
1776
+ received_events_url: string;
1777
+ type: string;
1778
+ site_admin: boolean;
1779
+ starred_at?: string;
1780
+ user_view_type?: string;
1781
+ }[];
1782
+ teams?: {
1783
+ id: number;
1784
+ node_id: string;
1785
+ name: string;
1786
+ slug: string;
1787
+ description: string | null;
1788
+ privacy?: string;
1789
+ notification_setting?: string;
1790
+ permission: string;
1791
+ permissions?: {
1792
+ pull: boolean;
1793
+ triage: boolean;
1794
+ push: boolean;
1795
+ maintain: boolean;
1796
+ admin: boolean;
1797
+ };
1798
+ url: string;
1799
+ html_url: string;
1800
+ members_url: string;
1801
+ repositories_url: string;
1802
+ type: "enterprise" | "organization";
1803
+ organization_id?: number;
1804
+ enterprise_id?: number;
1805
+ parent: {
1806
+ id: number;
1807
+ node_id: string;
1808
+ url: string;
1809
+ members_url: string;
1810
+ name: string;
1811
+ description: string | null;
1812
+ permission: string;
1813
+ privacy?: string;
1814
+ notification_setting?: string;
1815
+ html_url: string;
1816
+ repositories_url: string;
1817
+ slug: string;
1818
+ ldap_dn?: string;
1819
+ type: "enterprise" | "organization";
1820
+ organization_id?: number;
1821
+ enterprise_id?: number;
1822
+ } | null;
1823
+ }[];
1824
+ apps?: ({
1825
+ id: number;
1826
+ slug?: string;
1827
+ node_id: string;
1828
+ client_id?: string;
1829
+ owner: {
1830
+ name?: string | null;
1831
+ email?: string | null;
1832
+ login: string;
1833
+ id: number;
1834
+ node_id: string;
1835
+ avatar_url: string;
1836
+ gravatar_id: string | null;
1837
+ url: string;
1838
+ html_url: string;
1839
+ followers_url: string;
1840
+ following_url: string;
1841
+ gists_url: string;
1842
+ starred_url: string;
1843
+ subscriptions_url: string;
1844
+ organizations_url: string;
1845
+ repos_url: string;
1846
+ events_url: string;
1847
+ received_events_url: string;
1848
+ type: string;
1849
+ site_admin: boolean;
1850
+ starred_at?: string;
1851
+ user_view_type?: string;
1852
+ } | {
1853
+ description?: string | null;
1854
+ html_url: string;
1855
+ website_url?: string | null;
1856
+ id: number;
1857
+ node_id: string;
1858
+ name: string;
1859
+ slug: string;
1860
+ created_at: string | null;
1861
+ updated_at: string | null;
1862
+ avatar_url: string;
1863
+ };
1864
+ name: string;
1865
+ description: string | null;
1866
+ external_url: string;
1867
+ html_url: string;
1868
+ created_at: string;
1869
+ updated_at: string;
1870
+ permissions: {
1871
+ issues?: string;
1872
+ checks?: string;
1873
+ metadata?: string;
1874
+ contents?: string;
1875
+ deployments?: string;
1876
+ [key: string]: string | undefined;
1877
+ };
1878
+ events: string[];
1879
+ installations_count?: number;
1880
+ } | null)[];
1881
+ url?: string;
1882
+ users_url?: string;
1883
+ teams_url?: string;
1884
+ };
1885
+ bypass_pull_request_allowances?: {
1886
+ users?: {
1887
+ name?: string | null;
1888
+ email?: string | null;
1889
+ login: string;
1890
+ id: number;
1891
+ node_id: string;
1892
+ avatar_url: string;
1893
+ gravatar_id: string | null;
1894
+ url: string;
1895
+ html_url: string;
1896
+ followers_url: string;
1897
+ following_url: string;
1898
+ gists_url: string;
1899
+ starred_url: string;
1900
+ subscriptions_url: string;
1901
+ organizations_url: string;
1902
+ repos_url: string;
1903
+ events_url: string;
1904
+ received_events_url: string;
1905
+ type: string;
1906
+ site_admin: boolean;
1907
+ starred_at?: string;
1908
+ user_view_type?: string;
1909
+ }[];
1910
+ teams?: {
1911
+ id: number;
1912
+ node_id: string;
1913
+ name: string;
1914
+ slug: string;
1915
+ description: string | null;
1916
+ privacy?: string;
1917
+ notification_setting?: string;
1918
+ permission: string;
1919
+ permissions?: {
1920
+ pull: boolean;
1921
+ triage: boolean;
1922
+ push: boolean;
1923
+ maintain: boolean;
1924
+ admin: boolean;
1925
+ };
1926
+ url: string;
1927
+ html_url: string;
1928
+ members_url: string;
1929
+ repositories_url: string;
1930
+ type: "enterprise" | "organization";
1931
+ organization_id?: number;
1932
+ enterprise_id?: number;
1933
+ parent: {
1934
+ id: number;
1935
+ node_id: string;
1936
+ url: string;
1937
+ members_url: string;
1938
+ name: string;
1939
+ description: string | null;
1940
+ permission: string;
1941
+ privacy?: string;
1942
+ notification_setting?: string;
1943
+ html_url: string;
1944
+ repositories_url: string;
1945
+ slug: string;
1946
+ ldap_dn?: string;
1947
+ type: "enterprise" | "organization";
1948
+ organization_id?: number;
1949
+ enterprise_id?: number;
1950
+ } | null;
1951
+ }[];
1952
+ apps?: ({
1953
+ id: number;
1954
+ slug?: string;
1955
+ node_id: string;
1956
+ client_id?: string;
1957
+ owner: {
1958
+ name?: string | null;
1959
+ email?: string | null;
1960
+ login: string;
1961
+ id: number;
1962
+ node_id: string;
1963
+ avatar_url: string;
1964
+ gravatar_id: string | null;
1965
+ url: string;
1966
+ html_url: string;
1967
+ followers_url: string;
1968
+ following_url: string;
1969
+ gists_url: string;
1970
+ starred_url: string;
1971
+ subscriptions_url: string;
1972
+ organizations_url: string;
1973
+ repos_url: string;
1974
+ events_url: string;
1975
+ received_events_url: string;
1976
+ type: string;
1977
+ site_admin: boolean;
1978
+ starred_at?: string;
1979
+ user_view_type?: string;
1980
+ } | {
1981
+ description?: string | null;
1982
+ html_url: string;
1983
+ website_url?: string | null;
1984
+ id: number;
1985
+ node_id: string;
1986
+ name: string;
1987
+ slug: string;
1988
+ created_at: string | null;
1989
+ updated_at: string | null;
1990
+ avatar_url: string;
1991
+ };
1992
+ name: string;
1993
+ description: string | null;
1994
+ external_url: string;
1995
+ html_url: string;
1996
+ created_at: string;
1997
+ updated_at: string;
1998
+ permissions: {
1999
+ issues?: string;
2000
+ checks?: string;
2001
+ metadata?: string;
2002
+ contents?: string;
2003
+ deployments?: string;
2004
+ [key: string]: string | undefined;
2005
+ };
2006
+ events: string[];
2007
+ installations_count?: number;
2008
+ } | null)[];
2009
+ };
2010
+ dismiss_stale_reviews: boolean;
2011
+ require_code_owner_reviews: boolean;
2012
+ required_approving_review_count?: number;
2013
+ require_last_push_approval?: boolean;
2014
+ };
2015
+ restrictions?: {
2016
+ url: string;
2017
+ users_url: string;
2018
+ teams_url: string;
2019
+ apps_url: string;
2020
+ users: {
2021
+ login?: string;
2022
+ id?: number;
2023
+ node_id?: string;
2024
+ avatar_url?: string;
2025
+ gravatar_id?: string;
2026
+ url?: string;
2027
+ html_url?: string;
2028
+ followers_url?: string;
2029
+ following_url?: string;
2030
+ gists_url?: string;
2031
+ starred_url?: string;
2032
+ subscriptions_url?: string;
2033
+ organizations_url?: string;
2034
+ repos_url?: string;
2035
+ events_url?: string;
2036
+ received_events_url?: string;
2037
+ type?: string;
2038
+ site_admin?: boolean;
2039
+ user_view_type?: string;
2040
+ }[];
2041
+ teams: {
2042
+ id: number;
2043
+ node_id: string;
2044
+ name: string;
2045
+ slug: string;
2046
+ description: string | null;
2047
+ privacy?: string;
2048
+ notification_setting?: string;
2049
+ permission: string;
2050
+ permissions?: {
2051
+ pull: boolean;
2052
+ triage: boolean;
2053
+ push: boolean;
2054
+ maintain: boolean;
2055
+ admin: boolean;
2056
+ };
2057
+ url: string;
2058
+ html_url: string;
2059
+ members_url: string;
2060
+ repositories_url: string;
2061
+ type: "enterprise" | "organization";
2062
+ organization_id?: number;
2063
+ enterprise_id?: number;
2064
+ parent: {
2065
+ id: number;
2066
+ node_id: string;
2067
+ url: string;
2068
+ members_url: string;
2069
+ name: string;
2070
+ description: string | null;
2071
+ permission: string;
2072
+ privacy?: string;
2073
+ notification_setting?: string;
2074
+ html_url: string;
2075
+ repositories_url: string;
2076
+ slug: string;
2077
+ ldap_dn?: string;
2078
+ type: "enterprise" | "organization";
2079
+ organization_id?: number;
2080
+ enterprise_id?: number;
2081
+ } | null;
2082
+ }[];
2083
+ apps: {
2084
+ id?: number;
2085
+ slug?: string;
2086
+ node_id?: string;
2087
+ owner?: {
2088
+ login?: string;
2089
+ id?: number;
2090
+ node_id?: string;
2091
+ url?: string;
2092
+ repos_url?: string;
2093
+ events_url?: string;
2094
+ hooks_url?: string;
2095
+ issues_url?: string;
2096
+ members_url?: string;
2097
+ public_members_url?: string;
2098
+ avatar_url?: string;
2099
+ description?: string;
2100
+ gravatar_id?: string;
2101
+ html_url?: string;
2102
+ followers_url?: string;
2103
+ following_url?: string;
2104
+ gists_url?: string;
2105
+ starred_url?: string;
2106
+ subscriptions_url?: string;
2107
+ organizations_url?: string;
2108
+ received_events_url?: string;
2109
+ type?: string;
2110
+ site_admin?: boolean;
2111
+ user_view_type?: string;
2112
+ };
2113
+ name?: string;
2114
+ client_id?: string;
2115
+ description?: string;
2116
+ external_url?: string;
2117
+ html_url?: string;
2118
+ created_at?: string;
2119
+ updated_at?: string;
2120
+ permissions?: {
2121
+ metadata?: string;
2122
+ contents?: string;
2123
+ issues?: string;
2124
+ single_file?: string;
2125
+ };
2126
+ events?: string[];
2127
+ }[];
2128
+ };
2129
+ required_linear_history?: {
2130
+ enabled?: boolean;
2131
+ };
2132
+ allow_force_pushes?: {
2133
+ enabled?: boolean;
2134
+ };
2135
+ allow_deletions?: {
2136
+ enabled?: boolean;
2137
+ };
2138
+ block_creations?: {
2139
+ enabled?: boolean;
2140
+ };
2141
+ required_conversation_resolution?: {
2142
+ enabled?: boolean;
2143
+ };
2144
+ name?: string;
2145
+ protection_url?: string;
2146
+ required_signatures?: {
2147
+ url: string;
2148
+ enabled: boolean;
2149
+ };
2150
+ lock_branch?: {
2151
+ enabled?: boolean;
2152
+ };
2153
+ allow_fork_syncing?: {
2154
+ enabled?: boolean;
2155
+ };
2156
+ };
62
2157
  protection_url?: string;
63
2158
  }>;
64
2159
  delete(): Promise<void>;