-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathmetadata.py
More file actions
1713 lines (1713 loc) · 262 KB
/
metadata.py
File metadata and controls
1713 lines (1713 loc) · 262 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
funcs = [('/', 'get', 'meta/root', 'GitHub API Root', 'rest/meta/meta#github-api-root', [], [], ''),
('/advisories',
'get',
'security-advisories/list-global-advisories',
'List global security advisories',
'rest/security-advisories/global-advisories#list-global-security-advisories',
['ghsa_id', 'type', 'cve_id', 'ecosystem', 'severity', 'cwes', 'is_withdrawn', 'affects', 'published', 'updated', 'modified', 'epss_percentage', 'epss_percentile', 'before', 'after', 'direction', 'per_page', 'sort'],
[],
''),
('/advisories/{ghsa_id}', 'get', 'security-advisories/get-global-advisory', 'Get a global security advisory', 'rest/security-advisories/global-advisories#get-a-global-security-advisory', [], [], ''),
('/app', 'get', 'apps/get-authenticated', 'Get the authenticated app', 'rest/apps/apps#get-the-authenticated-app', [], [], ''),
('/app-manifests/{code}/conversions', 'post', 'apps/create-from-manifest', 'Create a GitHub App from a manifest', 'rest/apps/apps#create-a-github-app-from-a-manifest', [], [], ''),
('/app/hook/config', 'get', 'apps/get-webhook-config-for-app', 'Get a webhook configuration for an app', 'rest/apps/webhooks#get-a-webhook-configuration-for-an-app', [], [], ''),
('/app/hook/config', 'patch', 'apps/update-webhook-config-for-app', 'Update a webhook configuration for an app', 'rest/apps/webhooks#update-a-webhook-configuration-for-an-app', [], [['url', str], ['content_type', str], ['secret', str], ['insecure_ssl', object]], ''),
('/app/hook/deliveries', 'get', 'apps/list-webhook-deliveries', 'List deliveries for an app webhook', 'rest/apps/webhooks#list-deliveries-for-an-app-webhook', ['per_page', 'cursor'], [], ''),
('/app/hook/deliveries/{delivery_id}', 'get', 'apps/get-webhook-delivery', 'Get a delivery for an app webhook', 'rest/apps/webhooks#get-a-delivery-for-an-app-webhook', [], [], ''),
('/app/hook/deliveries/{delivery_id}/attempts', 'post', 'apps/redeliver-webhook-delivery', 'Redeliver a delivery for an app webhook', 'rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook', [], [], ''),
('/app/installation-requests', 'get', 'apps/list-installation-requests-for-authenticated-app', 'List installation requests for the authenticated app', 'rest/apps/apps#list-installation-requests-for-the-authenticated-app', ['per_page', 'page'], [], ''),
('/app/installations', 'get', 'apps/list-installations', 'List installations for the authenticated app', 'rest/apps/apps#list-installations-for-the-authenticated-app', ['per_page', 'page', 'since', 'outdated'], [], ''),
('/app/installations/{installation_id}', 'get', 'apps/get-installation', 'Get an installation for the authenticated app', 'rest/apps/apps#get-an-installation-for-the-authenticated-app', [], [], ''),
('/app/installations/{installation_id}', 'delete', 'apps/delete-installation', 'Delete an installation for the authenticated app', 'rest/apps/apps#delete-an-installation-for-the-authenticated-app', [], [], ''),
('/app/installations/{installation_id}/access_tokens', 'post', 'apps/create-installation-access-token', 'Create an installation access token for an app', 'rest/apps/apps#create-an-installation-access-token-for-an-app', [], [['repositories', list], ['repository_ids', list], ['permissions', dict]], ''),
('/app/installations/{installation_id}/suspended', 'put', 'apps/suspend-installation', 'Suspend an app installation', 'rest/apps/apps#suspend-an-app-installation', [], [], ''),
('/app/installations/{installation_id}/suspended', 'delete', 'apps/unsuspend-installation', 'Unsuspend an app installation', 'rest/apps/apps#unsuspend-an-app-installation', [], [], ''),
('/applications/{client_id}/grant', 'delete', 'apps/delete-authorization', 'Delete an app authorization', 'rest/apps/oauth-applications#delete-an-app-authorization', [], [['access_token', str]], ''),
('/applications/{client_id}/token', 'post', 'apps/check-token', 'Check a token', 'rest/apps/oauth-applications#check-a-token', [], [['access_token', str]], ''),
('/applications/{client_id}/token', 'patch', 'apps/reset-token', 'Reset a token', 'rest/apps/oauth-applications#reset-a-token', [], [['access_token', str]], ''),
('/applications/{client_id}/token', 'delete', 'apps/delete-token', 'Delete an app token', 'rest/apps/oauth-applications#delete-an-app-token', [], [['access_token', str]], ''),
('/applications/{client_id}/token/scoped', 'post', 'apps/scope-token', 'Create a scoped access token', 'rest/apps/apps#create-a-scoped-access-token', [], [['access_token', str], ['target', str], ['target_id', int], ['repositories', list], ['repository_ids', list], ['permissions', dict]], ''),
('/apps/{app_slug}', 'get', 'apps/get-by-slug', 'Get an app', 'rest/apps/apps#get-an-app', [], [], ''),
('/assignments/{assignment_id}', 'get', 'classroom/get-an-assignment', 'Get an assignment', 'rest/classroom/classroom#get-an-assignment', [], [], ''),
('/assignments/{assignment_id}/accepted_assignments', 'get', 'classroom/list-accepted-assignments-for-an-assignment', 'List accepted assignments for an assignment', 'rest/classroom/classroom#list-accepted-assignments-for-an-assignment', ['page', 'per_page'], [], ''),
('/assignments/{assignment_id}/grades', 'get', 'classroom/get-assignment-grades', 'Get assignment grades', 'rest/classroom/classroom#get-assignment-grades', [], [], ''),
('/classrooms', 'get', 'classroom/list-classrooms', 'List classrooms', 'rest/classroom/classroom#list-classrooms', ['page', 'per_page'], [], ''),
('/classrooms/{classroom_id}', 'get', 'classroom/get-a-classroom', 'Get a classroom', 'rest/classroom/classroom#get-a-classroom', [], [], ''),
('/classrooms/{classroom_id}/assignments', 'get', 'classroom/list-assignments-for-a-classroom', 'List assignments for a classroom', 'rest/classroom/classroom#list-assignments-for-a-classroom', ['page', 'per_page'], [], ''),
('/codes_of_conduct', 'get', 'codes-of-conduct/get-all-codes-of-conduct', 'Get all codes of conduct', 'rest/codes-of-conduct/codes-of-conduct#get-all-codes-of-conduct', [], [], ''),
('/codes_of_conduct/{key}', 'get', 'codes-of-conduct/get-conduct-code', 'Get a code of conduct', 'rest/codes-of-conduct/codes-of-conduct#get-a-code-of-conduct', [], [], ''),
('/credentials/revoke', 'post', 'credentials/revoke', 'Revoke a list of credentials', 'rest/credentials/revoke#revoke-a-list-of-credentials', [], [['credentials', list]], ''),
('/emojis', 'get', 'emojis/get', 'Get emojis', 'rest/emojis/emojis#get-emojis', [], [], ''),
('/enterprises/{enterprise}/actions/cache/retention-limit', 'get', 'actions/get-actions-cache-retention-limit-for-enterprise', 'Get GitHub Actions cache retention limit for an enterprise', 'rest/actions/cache#get-github-actions-cache-retention-limit-for-an-enterprise', [], [], ''),
('/enterprises/{enterprise}/actions/cache/retention-limit', 'put', 'actions/set-actions-cache-retention-limit-for-enterprise', 'Set GitHub Actions cache retention limit for an enterprise', 'rest/actions/cache#set-github-actions-cache-retention-limit-for-an-enterprise', [], [['max_cache_retention_days', int]], ''),
('/enterprises/{enterprise}/actions/cache/storage-limit', 'get', 'actions/get-actions-cache-storage-limit-for-enterprise', 'Get GitHub Actions cache storage limit for an enterprise', 'rest/actions/cache#get-github-actions-cache-storage-limit-for-an-enterprise', [], [], ''),
('/enterprises/{enterprise}/actions/cache/storage-limit', 'put', 'actions/set-actions-cache-storage-limit-for-enterprise', 'Set GitHub Actions cache storage limit for an enterprise', 'rest/actions/cache#set-github-actions-cache-storage-limit-for-an-enterprise', [], [['max_cache_size_gb', int]], ''),
('/enterprises/{enterprise}/code-security/configurations', 'get', 'code-security/get-configurations-for-enterprise', 'Get code security configurations for an enterprise', 'rest/code-security/configurations#get-code-security-configurations-for-an-enterprise', ['per_page', 'before', 'after'], [], ''),
('/enterprises/{enterprise}/code-security/configurations',
'post',
'code-security/create-configuration-for-enterprise',
'Create a code security configuration for an enterprise',
'rest/code-security/configurations#create-a-code-security-configuration-for-an-enterprise',
[],
[['name', str],
['description', str],
['advanced_security', str, 'disabled'],
['code_security', str],
['dependency_graph', str, 'enabled'],
['dependency_graph_autosubmit_action', str, 'disabled'],
['dependency_graph_autosubmit_action_options', dict],
['dependabot_alerts', str, 'disabled'],
['dependabot_security_updates', str, 'disabled'],
['code_scanning_options', dict],
['code_scanning_default_setup', str, 'disabled'],
['code_scanning_default_setup_options', dict],
['code_scanning_delegated_alert_dismissal', str, 'disabled'],
['secret_protection', str],
['secret_scanning', str, 'disabled'],
['secret_scanning_push_protection', str, 'disabled'],
['secret_scanning_validity_checks', str, 'disabled'],
['secret_scanning_non_provider_patterns', str, 'disabled'],
['secret_scanning_generic_secrets', str, 'disabled'],
['secret_scanning_delegated_alert_dismissal', str, 'disabled'],
['secret_scanning_extended_metadata', str, 'disabled'],
['private_vulnerability_reporting', str, 'disabled'],
['enforcement', str, 'enforced']],
''),
('/enterprises/{enterprise}/code-security/configurations/defaults', 'get', 'code-security/get-default-configurations-for-enterprise', 'Get default code security configurations for an enterprise', 'rest/code-security/configurations#get-default-code-security-configurations-for-an-enterprise', [], [], ''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}', 'get', 'code-security/get-single-configuration-for-enterprise', 'Retrieve a code security configuration of an enterprise', 'rest/code-security/configurations#retrieve-a-code-security-configuration-of-an-enterprise', [], [], ''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}',
'patch',
'code-security/update-enterprise-configuration',
'Update a custom code security configuration for an enterprise',
'rest/code-security/configurations#update-a-custom-code-security-configuration-for-an-enterprise',
[],
[['name', str],
['description', str],
['advanced_security', str],
['code_security', str],
['dependency_graph', str],
['dependency_graph_autosubmit_action', str],
['dependency_graph_autosubmit_action_options', dict],
['dependabot_alerts', str],
['dependabot_security_updates', str],
['code_scanning_default_setup', str],
['code_scanning_default_setup_options', dict],
['code_scanning_options', dict],
['code_scanning_delegated_alert_dismissal', str, 'disabled'],
['secret_protection', str],
['secret_scanning', str],
['secret_scanning_push_protection', str],
['secret_scanning_validity_checks', str],
['secret_scanning_non_provider_patterns', str],
['secret_scanning_generic_secrets', str, 'disabled'],
['secret_scanning_delegated_alert_dismissal', str, 'disabled'],
['secret_scanning_extended_metadata', str, 'disabled'],
['private_vulnerability_reporting', str],
['enforcement', str]],
''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}', 'delete', 'code-security/delete-configuration-for-enterprise', 'Delete a code security configuration for an enterprise', 'rest/code-security/configurations#delete-a-code-security-configuration-for-an-enterprise', [], [], ''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach', 'post', 'code-security/attach-enterprise-configuration', 'Attach an enterprise configuration to repositories', 'rest/code-security/configurations#attach-an-enterprise-configuration-to-repositories', [], [['scope', str]], ''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults',
'put',
'code-security/set-configuration-as-default-for-enterprise',
'Set a code security configuration as a default for an enterprise',
'rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-enterprise',
[],
[['default_for_new_repos', str]],
''),
('/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories',
'get',
'code-security/get-repositories-for-enterprise-configuration',
'Get repositories associated with an enterprise code security configuration',
'rest/code-security/configurations#get-repositories-associated-with-an-enterprise-code-security-configuration',
['per_page', 'before', 'after', 'status'],
[],
''),
('/enterprises/{enterprise}/dependabot/alerts',
'get',
'dependabot/list-alerts-for-enterprise',
'List Dependabot alerts for an enterprise',
'rest/dependabot/alerts#list-dependabot-alerts-for-an-enterprise',
['state', 'severity', 'ecosystem', 'package', 'epss_percentage', 'has', 'assignee', 'scope', 'sort', 'direction', 'before', 'after', 'per_page'],
[],
''),
('/enterprises/{enterprise}/teams', 'get', 'enterprise-teams/list', 'List enterprise teams', 'rest/enterprise-teams/enterprise-teams#list-enterprise-teams', ['per_page', 'page'], [], ''),
('/enterprises/{enterprise}/teams', 'post', 'enterprise-teams/create', 'Create an enterprise team', 'rest/enterprise-teams/enterprise-teams#create-an-enterprise-team', [], [['name', str], ['description', str], ['sync_to_organizations', str, 'disabled'], ['organization_selection_type', str, 'disabled'], ['group_id', str]], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships', 'get', 'enterprise-team-memberships/list', 'List members in an enterprise team', 'rest/enterprise-teams/enterprise-team-members#list-members-in-an-enterprise-team', ['per_page', 'page'], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships/add', 'post', 'enterprise-team-memberships/bulk-add', 'Bulk add team members', 'rest/enterprise-teams/enterprise-team-members#bulk-add-team-members', [], [['usernames', list]], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove', 'post', 'enterprise-team-memberships/bulk-remove', 'Bulk remove team members', 'rest/enterprise-teams/enterprise-team-members#bulk-remove-team-members', [], [['usernames', list]], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}', 'get', 'enterprise-team-memberships/get', 'Get enterprise team membership', 'rest/enterprise-teams/enterprise-team-members#get-enterprise-team-membership', [], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}', 'put', 'enterprise-team-memberships/add', 'Add team member', 'rest/enterprise-teams/enterprise-team-members#add-team-member', [], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}', 'delete', 'enterprise-team-memberships/remove', 'Remove team membership', 'rest/enterprise-teams/enterprise-team-members#remove-team-membership', [], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations', 'get', 'enterprise-team-organizations/get-assignments', 'Get organization assignments', 'rest/enterprise-teams/enterprise-team-organizations#get-organization-assignments', ['per_page', 'page'], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations/add', 'post', 'enterprise-team-organizations/bulk-add', 'Add organization assignments', 'rest/enterprise-teams/enterprise-team-organizations#add-organization-assignments', [], [['organization_slugs', list]], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove', 'post', 'enterprise-team-organizations/bulk-remove', 'Remove organization assignments', 'rest/enterprise-teams/enterprise-team-organizations#remove-organization-assignments', [], [['organization_slugs', list]], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}', 'get', 'enterprise-team-organizations/get-assignment', 'Get organization assignment', 'rest/enterprise-teams/enterprise-team-organizations#get-organization-assignment', [], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}', 'put', 'enterprise-team-organizations/add', 'Add an organization assignment', 'rest/enterprise-teams/enterprise-team-organizations#add-an-organization-assignment', [], [], ''),
('/enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}', 'delete', 'enterprise-team-organizations/delete', 'Delete an organization assignment', 'rest/enterprise-teams/enterprise-team-organizations#delete-an-organization-assignment', [], [], ''),
('/enterprises/{enterprise}/teams/{team_slug}', 'get', 'enterprise-teams/get', 'Get an enterprise team', 'rest/enterprise-teams/enterprise-teams#get-an-enterprise-team', [], [], ''),
('/enterprises/{enterprise}/teams/{team_slug}', 'patch', 'enterprise-teams/update', 'Update an enterprise team', 'rest/enterprise-teams/enterprise-teams#update-an-enterprise-team', [], [['name', str], ['description', str], ['sync_to_organizations', str, 'disabled'], ['organization_selection_type', str, 'disabled'], ['group_id', str]], ''),
('/enterprises/{enterprise}/teams/{team_slug}', 'delete', 'enterprise-teams/delete', 'Delete an enterprise team', 'rest/enterprise-teams/enterprise-teams#delete-an-enterprise-team', [], [], ''),
('/events', 'get', 'activity/list-public-events', 'List public events', 'rest/activity/events#list-public-events', ['per_page', 'page'], [], ''),
('/feeds', 'get', 'activity/get-feeds', 'Get feeds', 'rest/activity/feeds#get-feeds', [], [], ''),
('/gists', 'get', 'gists/list', 'List gists for the authenticated user', 'rest/gists/gists#list-gists-for-the-authenticated-user', ['since', 'per_page', 'page'], [], ''),
('/gists', 'post', 'gists/create', 'Create a gist', 'rest/gists/gists#create-a-gist', [], [['description', str], ['files', dict], ['public', object]], ''),
('/gists/public', 'get', 'gists/list-public', 'List public gists', 'rest/gists/gists#list-public-gists', ['since', 'per_page', 'page'], [], ''),
('/gists/starred', 'get', 'gists/list-starred', 'List starred gists', 'rest/gists/gists#list-starred-gists', ['since', 'per_page', 'page'], [], ''),
('/gists/{gist_id}', 'get', 'gists/get', 'Get a gist', 'rest/gists/gists#get-a-gist', [], [], ''),
('/gists/{gist_id}', 'patch', 'gists/update', 'Update a gist', 'rest/gists/gists#update-a-gist', [], [['description', str], ['files', dict]], ''),
('/gists/{gist_id}', 'delete', 'gists/delete', 'Delete a gist', 'rest/gists/gists#delete-a-gist', [], [], ''),
('/gists/{gist_id}/comments', 'get', 'gists/list-comments', 'List gist comments', 'rest/gists/comments#list-gist-comments', ['per_page', 'page'], [], ''),
('/gists/{gist_id}/comments', 'post', 'gists/create-comment', 'Create a gist comment', 'rest/gists/comments#create-a-gist-comment', [], [['body', str]], ''),
('/gists/{gist_id}/comments/{comment_id}', 'get', 'gists/get-comment', 'Get a gist comment', 'rest/gists/comments#get-a-gist-comment', [], [], ''),
('/gists/{gist_id}/comments/{comment_id}', 'patch', 'gists/update-comment', 'Update a gist comment', 'rest/gists/comments#update-a-gist-comment', [], [['body', str]], ''),
('/gists/{gist_id}/comments/{comment_id}', 'delete', 'gists/delete-comment', 'Delete a gist comment', 'rest/gists/comments#delete-a-gist-comment', [], [], ''),
('/gists/{gist_id}/commits', 'get', 'gists/list-commits', 'List gist commits', 'rest/gists/gists#list-gist-commits', ['per_page', 'page'], [], ''),
('/gists/{gist_id}/forks', 'get', 'gists/list-forks', 'List gist forks', 'rest/gists/gists#list-gist-forks', ['per_page', 'page'], [], ''),
('/gists/{gist_id}/forks', 'post', 'gists/fork', 'Fork a gist', 'rest/gists/gists#fork-a-gist', [], [], ''),
('/gists/{gist_id}/star', 'get', 'gists/check-is-starred', 'Check if a gist is starred', 'rest/gists/gists#check-if-a-gist-is-starred', [], [], ''),
('/gists/{gist_id}/star', 'put', 'gists/star', 'Star a gist', 'rest/gists/gists#star-a-gist', [], [], ''),
('/gists/{gist_id}/star', 'delete', 'gists/unstar', 'Unstar a gist', 'rest/gists/gists#unstar-a-gist', [], [], ''),
('/gists/{gist_id}/{sha}', 'get', 'gists/get-revision', 'Get a gist revision', 'rest/gists/gists#get-a-gist-revision', [], [], ''),
('/gitignore/templates', 'get', 'gitignore/get-all-templates', 'Get all gitignore templates', 'rest/gitignore/gitignore#get-all-gitignore-templates', [], [], ''),
('/gitignore/templates/{name}', 'get', 'gitignore/get-template', 'Get a gitignore template', 'rest/gitignore/gitignore#get-a-gitignore-template', [], [], ''),
('/installation/repositories', 'get', 'apps/list-repos-accessible-to-installation', 'List repositories accessible to the app installation', 'rest/apps/installations#list-repositories-accessible-to-the-app-installation', ['per_page', 'page'], [], ''),
('/installation/token', 'delete', 'apps/revoke-installation-access-token', 'Revoke an installation access token', 'rest/apps/installations#revoke-an-installation-access-token', [], [], ''),
('/issues', 'get', 'issues/list', 'List issues assigned to the authenticated user', 'rest/issues/issues#list-issues-assigned-to-the-authenticated-user', ['filter', 'state', 'labels', 'sort', 'direction', 'since', 'collab', 'orgs', 'owned', 'pulls', 'per_page', 'page'], [], ''),
('/licenses', 'get', 'licenses/get-all-commonly-used', 'Get all commonly used licenses', 'rest/licenses/licenses#get-all-commonly-used-licenses', ['featured', 'per_page', 'page'], [], ''),
('/licenses/{license}', 'get', 'licenses/get', 'Get a license', 'rest/licenses/licenses#get-a-license', [], [], ''),
('/markdown', 'post', 'markdown/render', 'Render a Markdown document', 'rest/markdown/markdown#render-a-markdown-document', [], [['text', str], ['mode', str, 'markdown'], ['context', str]], ''),
('/markdown/raw', 'post', 'markdown/render-raw', 'Render a Markdown document in raw mode', 'rest/markdown/markdown#render-a-markdown-document-in-raw-mode', [], [], ''),
('/marketplace_listing/accounts/{account_id}', 'get', 'apps/get-subscription-plan-for-account', 'Get a subscription plan for an account', 'rest/apps/marketplace#get-a-subscription-plan-for-an-account', [], [], ''),
('/marketplace_listing/plans', 'get', 'apps/list-plans', 'List plans', 'rest/apps/marketplace#list-plans', ['per_page', 'page'], [], ''),
('/marketplace_listing/plans/{plan_id}/accounts', 'get', 'apps/list-accounts-for-plan', 'List accounts for a plan', 'rest/apps/marketplace#list-accounts-for-a-plan', ['sort', 'direction', 'per_page', 'page'], [], ''),
('/marketplace_listing/stubbed/accounts/{account_id}', 'get', 'apps/get-subscription-plan-for-account-stubbed', 'Get a subscription plan for an account (stubbed)', 'rest/apps/marketplace#get-a-subscription-plan-for-an-account-stubbed', [], [], ''),
('/marketplace_listing/stubbed/plans', 'get', 'apps/list-plans-stubbed', 'List plans (stubbed)', 'rest/apps/marketplace#list-plans-stubbed', ['per_page', 'page'], [], ''),
('/marketplace_listing/stubbed/plans/{plan_id}/accounts', 'get', 'apps/list-accounts-for-plan-stubbed', 'List accounts for a plan (stubbed)', 'rest/apps/marketplace#list-accounts-for-a-plan-stubbed', ['sort', 'direction', 'per_page', 'page'], [], ''),
('/meta', 'get', 'meta/get', 'Get GitHub meta information', 'rest/meta/meta#get-apiname-meta-information', [], [], ''),
('/networks/{owner}/{repo}/events', 'get', 'activity/list-public-events-for-repo-network', 'List public events for a network of repositories', 'rest/activity/events#list-public-events-for-a-network-of-repositories', ['per_page', 'page'], [], ''),
('/notifications', 'get', 'activity/list-notifications-for-authenticated-user', 'List notifications for the authenticated user', 'rest/activity/notifications#list-notifications-for-the-authenticated-user', ['all', 'participating', 'since', 'before', 'page', 'per_page'], [], ''),
('/notifications', 'put', 'activity/mark-notifications-as-read', 'Mark notifications as read', 'rest/activity/notifications#mark-notifications-as-read', [], [['last_read_at', str], ['read', bool]], ''),
('/notifications/threads/{thread_id}', 'get', 'activity/get-thread', 'Get a thread', 'rest/activity/notifications#get-a-thread', [], [], ''),
('/notifications/threads/{thread_id}', 'patch', 'activity/mark-thread-as-read', 'Mark a thread as read', 'rest/activity/notifications#mark-a-thread-as-read', [], [], ''),
('/notifications/threads/{thread_id}', 'delete', 'activity/mark-thread-as-done', 'Mark a thread as done', 'rest/activity/notifications#mark-a-thread-as-done', [], [], ''),
('/notifications/threads/{thread_id}/subscription', 'get', 'activity/get-thread-subscription-for-authenticated-user', 'Get a thread subscription for the authenticated user', 'rest/activity/notifications#get-a-thread-subscription-for-the-authenticated-user', [], [], ''),
('/notifications/threads/{thread_id}/subscription', 'put', 'activity/set-thread-subscription', 'Set a thread subscription', 'rest/activity/notifications#set-a-thread-subscription', [], [['ignored', bool, False]], ''),
('/notifications/threads/{thread_id}/subscription', 'delete', 'activity/delete-thread-subscription', 'Delete a thread subscription', 'rest/activity/notifications#delete-a-thread-subscription', [], [], ''),
('/octocat', 'get', 'meta/get-octocat', 'Get Octocat', 'rest/meta/meta#get-octocat', ['s'], [], ''),
('/organizations', 'get', 'orgs/list', 'List organizations', 'rest/orgs/orgs#list-organizations', ['since', 'per_page'], [], ''),
('/organizations/{org}/actions/cache/retention-limit', 'get', 'actions/get-actions-cache-retention-limit-for-organization', 'Get GitHub Actions cache retention limit for an organization', 'rest/actions/cache#get-github-actions-cache-retention-limit-for-an-organization', [], [], ''),
('/organizations/{org}/actions/cache/retention-limit', 'put', 'actions/set-actions-cache-retention-limit-for-organization', 'Set GitHub Actions cache retention limit for an organization', 'rest/actions/cache#set-github-actions-cache-retention-limit-for-an-organization', [], [['max_cache_retention_days', int]], ''),
('/organizations/{org}/actions/cache/storage-limit', 'get', 'actions/get-actions-cache-storage-limit-for-organization', 'Get GitHub Actions cache storage limit for an organization', 'rest/actions/cache#get-github-actions-cache-storage-limit-for-an-organization', [], [], ''),
('/organizations/{org}/actions/cache/storage-limit', 'put', 'actions/set-actions-cache-storage-limit-for-organization', 'Set GitHub Actions cache storage limit for an organization', 'rest/actions/cache#set-github-actions-cache-storage-limit-for-an-organization', [], [['max_cache_size_gb', int]], ''),
('/organizations/{org}/dependabot/repository-access', 'get', 'dependabot/repository-access-for-org', 'Lists the repositories Dependabot can access in an organization', 'rest/dependabot/repository-access#lists-the-repositories-dependabot-can-access-in-an-organization', ['page', 'per_page'], [], ''),
('/organizations/{org}/dependabot/repository-access', 'patch', 'dependabot/update-repository-access-for-org', "Updates Dependabot's repository access list for an organization", 'rest/dependabot/repository-access#updates-dependabots-repository-access-list-for-an-organization', [], [['repository_ids_to_add', list], ['repository_ids_to_remove', list]], ''),
('/organizations/{org}/dependabot/repository-access/default-level', 'put', 'dependabot/set-repository-access-default-level', 'Set the default repository access level for Dependabot', 'rest/dependabot/repository-access#set-the-default-repository-access-level-for-dependabot', [], [['default_level', str]], ''),
('/organizations/{org}/settings/billing/budgets', 'get', 'billing/get-all-budgets-org', 'Get all budgets for an organization', 'rest/billing/budgets#get-all-budgets-for-an-organization', [], [], ''),
('/organizations/{org}/settings/billing/budgets/{budget_id}', 'get', 'billing/get-budget-org', 'Get a budget by ID for an organization', 'rest/billing/budgets#get-a-budget-by-id-for-an-organization', [], [], ''),
('/organizations/{org}/settings/billing/budgets/{budget_id}',
'patch',
'billing/update-budget-org',
'Update a budget for an organization',
'rest/billing/budgets#update-a-budget-for-an-organization',
[],
[['budget_amount', int], ['prevent_further_usage', bool], ['budget_alerting', dict], ['budget_scope', str], ['budget_entity_name', str], ['budget_type', str], ['budget_product_sku', str]],
''),
('/organizations/{org}/settings/billing/budgets/{budget_id}', 'delete', 'billing/delete-budget-org', 'Delete a budget for an organization', 'rest/billing/budgets#delete-a-budget-for-an-organization', [], [], ''),
('/organizations/{org}/settings/billing/premium_request/usage', 'get', 'billing/get-github-billing-premium-request-usage-report-org', 'Get billing premium request usage report for an organization', 'rest/billing/usage#get-billing-premium-request-usage-report-for-an-organization', ['year', 'month', 'day', 'user', 'model', 'product'], [], ''),
('/organizations/{org}/settings/billing/usage', 'get', 'billing/get-github-billing-usage-report-org', 'Get billing usage report for an organization', 'rest/billing/usage#get-billing-usage-report-for-an-organization', ['year', 'month', 'day'], [], ''),
('/organizations/{org}/settings/billing/usage/summary', 'get', 'billing/get-github-billing-usage-summary-report-org', 'Get billing usage summary for an organization', 'rest/billing/usage#get-billing-usage-summary-for-an-organization', ['year', 'month', 'day', 'repository', 'product', 'sku'], [], ''),
('/orgs/{org}', 'get', 'orgs/get', 'Get an organization', 'rest/orgs/orgs#get-an-organization', [], [], ''),
('/orgs/{org}',
'patch',
'orgs/update',
'Update an organization',
'rest/orgs/orgs#update-an-organization',
[],
[['billing_email', str],
['company', str],
['email', str],
['twitter_username', str],
['location', str],
['name', str],
['description', str],
['has_organization_projects', bool],
['has_repository_projects', bool],
['default_repository_permission', str, 'read'],
['members_can_create_repositories', bool, True],
['members_can_create_internal_repositories', bool],
['members_can_create_private_repositories', bool],
['members_can_create_public_repositories', bool],
['members_allowed_repository_creation_type', str],
['members_can_create_pages', bool, True],
['members_can_create_public_pages', bool, True],
['members_can_create_private_pages', bool, True],
['members_can_fork_private_repositories', bool, False],
['web_commit_signoff_required', bool, False],
['blog', str],
['advanced_security_enabled_for_new_repositories', bool],
['dependabot_alerts_enabled_for_new_repositories', bool],
['dependabot_security_updates_enabled_for_new_repositories', bool],
['dependency_graph_enabled_for_new_repositories', bool],
['secret_scanning_enabled_for_new_repositories', bool],
['secret_scanning_push_protection_enabled_for_new_repositories', bool],
['secret_scanning_push_protection_custom_link_enabled', bool],
['secret_scanning_push_protection_custom_link', str],
['deploy_keys_enabled_for_repositories', bool]],
''),
('/orgs/{org}', 'delete', 'orgs/delete', 'Delete an organization', 'rest/orgs/orgs#delete-an-organization', [], [], ''),
('/orgs/{org}/actions/cache/usage', 'get', 'actions/get-actions-cache-usage-for-org', 'Get GitHub Actions cache usage for an organization', 'rest/actions/cache#get-github-actions-cache-usage-for-an-organization', [], [], ''),
('/orgs/{org}/actions/cache/usage-by-repository', 'get', 'actions/get-actions-cache-usage-by-repo-for-org', 'List repositories with GitHub Actions cache usage for an organization', 'rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/hosted-runners', 'get', 'actions/list-hosted-runners-for-org', 'List GitHub-hosted runners for an organization', 'rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/hosted-runners',
'post',
'actions/create-hosted-runner-for-org',
'Create a GitHub-hosted runner for an organization',
'rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization',
[],
[['name', str], ['image', dict], ['size', str], ['runner_group_id', int], ['maximum_runners', int], ['enable_static_ip', bool], ['image_gen', bool, False]],
''),
('/orgs/{org}/actions/hosted-runners/images/custom', 'get', 'actions/list-custom-images-for-org', 'List custom images for an organization', 'rest/actions/hosted-runners#list-custom-images-for-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}', 'get', 'actions/get-custom-image-for-org', 'Get a custom image definition for GitHub Actions Hosted Runners', 'rest/actions/hosted-runners#get-a-custom-image-definition-for-github-actions-hosted-runners', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}', 'delete', 'actions/delete-custom-image-from-org', 'Delete a custom image from the organization', 'rest/actions/hosted-runners#delete-a-custom-image-from-the-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions', 'get', 'actions/list-custom-image-versions-for-org', 'List image versions of a custom image for an organization', 'rest/actions/hosted-runners#list-image-versions-of-a-custom-image-for-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}', 'get', 'actions/get-custom-image-version-for-org', 'Get an image version of a custom image for GitHub Actions Hosted Runners', 'rest/actions/hosted-runners#get-an-image-version-of-a-custom-image-for-github-actions-hosted-runners', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}', 'delete', 'actions/delete-custom-image-version-from-org', 'Delete an image version of custom image from the organization', 'rest/actions/hosted-runners#delete-an-image-version-of-custom-image-from-the-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/github-owned', 'get', 'actions/get-hosted-runners-github-owned-images-for-org', 'Get GitHub-owned images for GitHub-hosted runners in an organization', 'rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/images/partner', 'get', 'actions/get-hosted-runners-partner-images-for-org', 'Get partner images for GitHub-hosted runners in an organization', 'rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/limits', 'get', 'actions/get-hosted-runners-limits-for-org', 'Get limits on GitHub-hosted runners for an organization', 'rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/machine-sizes', 'get', 'actions/get-hosted-runners-machine-specs-for-org', 'Get GitHub-hosted runners machine specs for an organization', 'rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/platforms', 'get', 'actions/get-hosted-runners-platforms-for-org', 'Get platforms for GitHub-hosted runners in an organization', 'rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}', 'get', 'actions/get-hosted-runner-for-org', 'Get a GitHub-hosted runner for an organization', 'rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}',
'patch',
'actions/update-hosted-runner-for-org',
'Update a GitHub-hosted runner for an organization',
'rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization',
[],
[['name', str], ['runner_group_id', int], ['maximum_runners', int], ['enable_static_ip', bool], ['size', str], ['image_id', str], ['image_version', str]],
''),
('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}', 'delete', 'actions/delete-hosted-runner-for-org', 'Delete a GitHub-hosted runner for an organization', 'rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/oidc/customization/sub', 'get', 'oidc/get-oidc-custom-sub-template-for-org', 'Get the customization template for an OIDC subject claim for an organization', 'rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization', [], [], ''),
('/orgs/{org}/actions/oidc/customization/sub', 'put', 'oidc/update-oidc-custom-sub-template-for-org', 'Set the customization template for an OIDC subject claim for an organization', 'rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization', [], [['include_claim_keys', list]], ''),
('/orgs/{org}/actions/permissions', 'get', 'actions/get-github-actions-permissions-organization', 'Get GitHub Actions permissions for an organization', 'rest/actions/permissions#get-github-actions-permissions-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions', 'put', 'actions/set-github-actions-permissions-organization', 'Set GitHub Actions permissions for an organization', 'rest/actions/permissions#set-github-actions-permissions-for-an-organization', [], [['enabled_repositories', str], ['allowed_actions', str], ['sha_pinning_required', bool]], ''),
('/orgs/{org}/actions/permissions/artifact-and-log-retention', 'get', 'actions/get-artifact-and-log-retention-settings-organization', 'Get artifact and log retention settings for an organization', 'rest/actions/permissions#get-artifact-and-log-retention-settings-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/artifact-and-log-retention', 'put', 'actions/set-artifact-and-log-retention-settings-organization', 'Set artifact and log retention settings for an organization', 'rest/actions/permissions#set-artifact-and-log-retention-settings-for-an-organization', [], [['days', int]], ''),
('/orgs/{org}/actions/permissions/fork-pr-contributor-approval', 'get', 'actions/get-fork-pr-contributor-approval-permissions-organization', 'Get fork PR contributor approval permissions for an organization', 'rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/fork-pr-contributor-approval', 'put', 'actions/set-fork-pr-contributor-approval-permissions-organization', 'Set fork PR contributor approval permissions for an organization', 'rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-an-organization', [], [['approval_policy', str]], ''),
('/orgs/{org}/actions/permissions/fork-pr-workflows-private-repos', 'get', 'actions/get-private-repo-fork-pr-workflows-settings-organization', 'Get private repo fork PR workflow settings for an organization', 'rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/fork-pr-workflows-private-repos',
'put',
'actions/set-private-repo-fork-pr-workflows-settings-organization',
'Set private repo fork PR workflow settings for an organization',
'rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-an-organization',
[],
[['run_workflows_from_fork_pull_requests', bool], ['send_write_tokens_to_workflows', bool], ['send_secrets_and_variables', bool], ['require_approval_for_fork_pr_workflows', bool]],
''),
('/orgs/{org}/actions/permissions/repositories', 'get', 'actions/list-selected-repositories-enabled-github-actions-organization', 'List selected repositories enabled for GitHub Actions in an organization', 'rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/permissions/repositories', 'put', 'actions/set-selected-repositories-enabled-github-actions-organization', 'Set selected repositories enabled for GitHub Actions in an organization', 'rest/actions/permissions#set-selected-repositories-enabled-for-github-actions-in-an-organization', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/permissions/repositories/{repository_id}', 'put', 'actions/enable-selected-repository-github-actions-organization', 'Enable a selected repository for GitHub Actions in an organization', 'rest/actions/permissions#enable-a-selected-repository-for-github-actions-in-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/repositories/{repository_id}', 'delete', 'actions/disable-selected-repository-github-actions-organization', 'Disable a selected repository for GitHub Actions in an organization', 'rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/selected-actions', 'get', 'actions/get-allowed-actions-organization', 'Get allowed actions and reusable workflows for an organization', 'rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/selected-actions', 'put', 'actions/set-allowed-actions-organization', 'Set allowed actions and reusable workflows for an organization', 'rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization', [], [['github_owned_allowed', bool], ['verified_allowed', bool], ['patterns_allowed', list]], ''),
('/orgs/{org}/actions/permissions/self-hosted-runners', 'get', 'actions/get-self-hosted-runners-permissions-organization', 'Get self-hosted runners settings for an organization', 'rest/actions/permissions#get-self-hosted-runners-settings-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/self-hosted-runners', 'put', 'actions/set-self-hosted-runners-permissions-organization', 'Set self-hosted runners settings for an organization', 'rest/actions/permissions#set-self-hosted-runners-settings-for-an-organization', [], [['enabled_repositories', str]], ''),
('/orgs/{org}/actions/permissions/self-hosted-runners/repositories', 'get', 'actions/list-selected-repositories-self-hosted-runners-organization', 'List repositories allowed to use self-hosted runners in an organization', 'rest/actions/permissions#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/permissions/self-hosted-runners/repositories',
'put',
'actions/set-selected-repositories-self-hosted-runners-organization',
'Set repositories allowed to use self-hosted runners in an organization',
'rest/actions/permissions#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization',
[],
[['selected_repository_ids', list]],
''),
('/orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}',
'put',
'actions/enable-selected-repository-self-hosted-runners-organization',
'Add a repository to the list of repositories allowed to use self-hosted runners in an organization',
'rest/actions/permissions#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization',
[],
[],
''),
('/orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}',
'delete',
'actions/disable-selected-repository-self-hosted-runners-organization',
'Remove a repository from the list of repositories allowed to use self-hosted runners in an organization',
'rest/actions/permissions#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization',
[],
[],
''),
('/orgs/{org}/actions/permissions/workflow', 'get', 'actions/get-github-actions-default-workflow-permissions-organization', 'Get default workflow permissions for an organization', 'rest/actions/permissions#get-default-workflow-permissions-for-an-organization', [], [], ''),
('/orgs/{org}/actions/permissions/workflow', 'put', 'actions/set-github-actions-default-workflow-permissions-organization', 'Set default workflow permissions for an organization', 'rest/actions/permissions#set-default-workflow-permissions-for-an-organization', [], [['default_workflow_permissions', str], ['can_approve_pull_request_reviews', bool]], ''),
('/orgs/{org}/actions/runner-groups', 'get', 'actions/list-self-hosted-runner-groups-for-org', 'List self-hosted runner groups for an organization', 'rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization', ['per_page', 'page', 'visible_to_repository'], [], ''),
('/orgs/{org}/actions/runner-groups',
'post',
'actions/create-self-hosted-runner-group-for-org',
'Create a self-hosted runner group for an organization',
'rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization',
[],
[['name', str], ['visibility', str, 'all'], ['selected_repository_ids', list], ['runners', list], ['allows_public_repositories', bool, False], ['restricted_to_workflows', bool, False], ['selected_workflows', list], ['network_configuration_id', str]],
''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}', 'get', 'actions/get-self-hosted-runner-group-for-org', 'Get a self-hosted runner group for an organization', 'rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}',
'patch',
'actions/update-self-hosted-runner-group-for-org',
'Update a self-hosted runner group for an organization',
'rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization',
[],
[['name', str], ['visibility', str], ['allows_public_repositories', bool, False], ['restricted_to_workflows', bool, False], ['selected_workflows', list], ['network_configuration_id', str]],
''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}', 'delete', 'actions/delete-self-hosted-runner-group-from-org', 'Delete a self-hosted runner group from an organization', 'rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization', [], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners', 'get', 'actions/list-github-hosted-runners-in-group-for-org', 'List GitHub-hosted runners in a group for an organization', 'rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories', 'get', 'actions/list-repo-access-to-self-hosted-runner-group-in-org', 'List repository access to a self-hosted runner group in an organization', 'rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization', ['page', 'per_page'], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories',
'put',
'actions/set-repo-access-to-self-hosted-runner-group-in-org',
'Set repository access for a self-hosted runner group in an organization',
'rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization',
[],
[['selected_repository_ids', list]],
''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}', 'put', 'actions/add-repo-access-to-self-hosted-runner-group-in-org', 'Add repository access to a self-hosted runner group in an organization', 'rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization', [], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}',
'delete',
'actions/remove-repo-access-to-self-hosted-runner-group-in-org',
'Remove repository access to a self-hosted runner group in an organization',
'rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization',
[],
[],
''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners', 'get', 'actions/list-self-hosted-runners-in-group-for-org', 'List self-hosted runners in a group for an organization', 'rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners', 'put', 'actions/set-self-hosted-runners-in-group-for-org', 'Set self-hosted runners in a group for an organization', 'rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization', [], [['runners', list]], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}', 'put', 'actions/add-self-hosted-runner-to-group-for-org', 'Add a self-hosted runner to a group for an organization', 'rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}', 'delete', 'actions/remove-self-hosted-runner-from-group-for-org', 'Remove a self-hosted runner from a group for an organization', 'rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners', 'get', 'actions/list-self-hosted-runners-for-org', 'List self-hosted runners for an organization', 'rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-organization', ['name', 'per_page', 'page'], [], ''),
('/orgs/{org}/actions/runners/downloads', 'get', 'actions/list-runner-applications-for-org', 'List runner applications for an organization', 'rest/actions/self-hosted-runners#list-runner-applications-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/generate-jitconfig',
'post',
'actions/generate-runner-jitconfig-for-org',
'Create configuration for a just-in-time runner for an organization',
'rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization',
[],
[['name', str], ['runner_group_id', int], ['labels', list], ['work_folder', str, '_work']],
''),
('/orgs/{org}/actions/runners/registration-token', 'post', 'actions/create-registration-token-for-org', 'Create a registration token for an organization', 'rest/actions/self-hosted-runners#create-a-registration-token-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/remove-token', 'post', 'actions/create-remove-token-for-org', 'Create a remove token for an organization', 'rest/actions/self-hosted-runners#create-a-remove-token-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/{runner_id}', 'get', 'actions/get-self-hosted-runner-for-org', 'Get a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/{runner_id}', 'delete', 'actions/delete-self-hosted-runner-from-org', 'Delete a self-hosted runner from an organization', 'rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/{runner_id}/labels', 'get', 'actions/list-labels-for-self-hosted-runner-for-org', 'List labels for a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/{runner_id}/labels', 'post', 'actions/add-custom-labels-to-self-hosted-runner-for-org', 'Add custom labels to a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-an-organization', [], [['labels', list]], ''),
('/orgs/{org}/actions/runners/{runner_id}/labels', 'put', 'actions/set-custom-labels-for-self-hosted-runner-for-org', 'Set custom labels for a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-an-organization', [], [['labels', list]], ''),
('/orgs/{org}/actions/runners/{runner_id}/labels', 'delete', 'actions/remove-all-custom-labels-from-self-hosted-runner-for-org', 'Remove all custom labels from a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/runners/{runner_id}/labels/{name}', 'delete', 'actions/remove-custom-label-from-self-hosted-runner-for-org', 'Remove a custom label from a self-hosted runner for an organization', 'rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-an-organization', [], [], ''),
('/orgs/{org}/actions/secrets', 'get', 'actions/list-org-secrets', 'List organization secrets', 'rest/actions/secrets#list-organization-secrets', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/secrets/public-key', 'get', 'actions/get-org-public-key', 'Get an organization public key', 'rest/actions/secrets#get-an-organization-public-key', [], [], ''),
('/orgs/{org}/actions/secrets/{secret_name}', 'get', 'actions/get-org-secret', 'Get an organization secret', 'rest/actions/secrets#get-an-organization-secret', [], [], ''),
('/orgs/{org}/actions/secrets/{secret_name}', 'put', 'actions/create-or-update-org-secret', 'Create or update an organization secret', 'rest/actions/secrets#create-or-update-an-organization-secret', [], [['encrypted_value', str], ['key_id', str], ['visibility', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/secrets/{secret_name}', 'delete', 'actions/delete-org-secret', 'Delete an organization secret', 'rest/actions/secrets#delete-an-organization-secret', [], [], ''),
('/orgs/{org}/actions/secrets/{secret_name}/repositories', 'get', 'actions/list-selected-repos-for-org-secret', 'List selected repositories for an organization secret', 'rest/actions/secrets#list-selected-repositories-for-an-organization-secret', ['page', 'per_page'], [], ''),
('/orgs/{org}/actions/secrets/{secret_name}/repositories', 'put', 'actions/set-selected-repos-for-org-secret', 'Set selected repositories for an organization secret', 'rest/actions/secrets#set-selected-repositories-for-an-organization-secret', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}', 'put', 'actions/add-selected-repo-to-org-secret', 'Add selected repository to an organization secret', 'rest/actions/secrets#add-selected-repository-to-an-organization-secret', [], [], ''),
('/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}', 'delete', 'actions/remove-selected-repo-from-org-secret', 'Remove selected repository from an organization secret', 'rest/actions/secrets#remove-selected-repository-from-an-organization-secret', [], [], ''),
('/orgs/{org}/actions/variables', 'get', 'actions/list-org-variables', 'List organization variables', 'rest/actions/variables#list-organization-variables', ['per_page', 'page'], [], ''),
('/orgs/{org}/actions/variables', 'post', 'actions/create-org-variable', 'Create an organization variable', 'rest/actions/variables#create-an-organization-variable', [], [['name', str], ['value', str], ['visibility', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/variables/{name}', 'get', 'actions/get-org-variable', 'Get an organization variable', 'rest/actions/variables#get-an-organization-variable', [], [], ''),
('/orgs/{org}/actions/variables/{name}', 'patch', 'actions/update-org-variable', 'Update an organization variable', 'rest/actions/variables#update-an-organization-variable', [], [['name', str], ['value', str], ['visibility', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/variables/{name}', 'delete', 'actions/delete-org-variable', 'Delete an organization variable', 'rest/actions/variables#delete-an-organization-variable', [], [], ''),
('/orgs/{org}/actions/variables/{name}/repositories', 'get', 'actions/list-selected-repos-for-org-variable', 'List selected repositories for an organization variable', 'rest/actions/variables#list-selected-repositories-for-an-organization-variable', ['page', 'per_page'], [], ''),
('/orgs/{org}/actions/variables/{name}/repositories', 'put', 'actions/set-selected-repos-for-org-variable', 'Set selected repositories for an organization variable', 'rest/actions/variables#set-selected-repositories-for-an-organization-variable', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/actions/variables/{name}/repositories/{repository_id}', 'put', 'actions/add-selected-repo-to-org-variable', 'Add selected repository to an organization variable', 'rest/actions/variables#add-selected-repository-to-an-organization-variable', [], [], ''),
('/orgs/{org}/actions/variables/{name}/repositories/{repository_id}', 'delete', 'actions/remove-selected-repo-from-org-variable', 'Remove selected repository from an organization variable', 'rest/actions/variables#remove-selected-repository-from-an-organization-variable', [], [], ''),
('/orgs/{org}/artifacts/metadata/deployment-record',
'post',
'orgs/create-artifact-deployment-record',
'Create an artifact deployment record',
'rest/orgs/artifact-metadata#create-an-artifact-deployment-record',
[],
[['name', str], ['digest', str], ['version', str], ['status', str], ['logical_environment', str], ['physical_environment', str], ['cluster', str], ['deployment_name', str], ['tags', dict], ['runtime_risks', list], ['github_repository', str]],
''),
('/orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}', 'post', 'orgs/set-cluster-deployment-records', 'Set cluster deployment records', 'rest/orgs/artifact-metadata#set-cluster-deployment-records', [], [['logical_environment', str], ['physical_environment', str], ['deployments', list]], ''),
('/orgs/{org}/artifacts/metadata/storage-record',
'post',
'orgs/create-artifact-storage-record',
'Create artifact metadata storage record',
'rest/orgs/artifact-metadata#create-artifact-metadata-storage-record',
[],
[['name', str], ['digest', str], ['version', str], ['artifact_url', str], ['path', str], ['registry_url', str], ['repository', str], ['status', str, 'active'], ['github_repository', str]],
''),
('/orgs/{org}/artifacts/{subject_digest}/metadata/deployment-records', 'get', 'orgs/list-artifact-deployment-records', 'List artifact deployment records', 'rest/orgs/artifact-metadata#list-artifact-deployment-records', [], [], ''),
('/orgs/{org}/artifacts/{subject_digest}/metadata/storage-records', 'get', 'orgs/list-artifact-storage-records', 'List artifact storage records', 'rest/orgs/artifact-metadata#list-artifact-storage-records', [], [], ''),
('/orgs/{org}/attestations/bulk-list', 'post', 'orgs/list-attestations-bulk', 'List attestations by bulk subject digests', 'rest/orgs/attestations#list-attestations-by-bulk-subject-digests', ['per_page', 'before', 'after'], [['subject_digests', list], ['predicate_type', str]], ''),
('/orgs/{org}/attestations/delete-request', 'post', 'orgs/delete-attestations-bulk', 'Delete attestations in bulk', 'rest/orgs/attestations#delete-attestations-in-bulk', [], [['subject_digests', list]], ''),
('/orgs/{org}/attestations/digest/{subject_digest}', 'delete', 'orgs/delete-attestations-by-subject-digest', 'Delete attestations by subject digest', 'rest/orgs/attestations#delete-attestations-by-subject-digest', [], [], ''),
('/orgs/{org}/attestations/repositories', 'get', 'orgs/list-attestation-repositories', 'List attestation repositories', 'rest/orgs/attestations#list-attestation-repositories', ['per_page', 'before', 'after', 'predicate_type'], [], ''),
('/orgs/{org}/attestations/{attestation_id}', 'delete', 'orgs/delete-attestations-by-id', 'Delete attestations by ID', 'rest/orgs/attestations#delete-attestations-by-id', [], [], ''),
('/orgs/{org}/attestations/{subject_digest}', 'get', 'orgs/list-attestations', 'List attestations', 'rest/orgs/attestations#list-attestations', ['per_page', 'before', 'after', 'predicate_type'], [], ''),
('/orgs/{org}/blocks', 'get', 'orgs/list-blocked-users', 'List users blocked by an organization', 'rest/orgs/blocking#list-users-blocked-by-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/blocks/{username}', 'get', 'orgs/check-blocked-user', 'Check if a user is blocked by an organization', 'rest/orgs/blocking#check-if-a-user-is-blocked-by-an-organization', [], [], ''),
('/orgs/{org}/blocks/{username}', 'put', 'orgs/block-user', 'Block a user from an organization', 'rest/orgs/blocking#block-a-user-from-an-organization', [], [], ''),
('/orgs/{org}/blocks/{username}', 'delete', 'orgs/unblock-user', 'Unblock a user from an organization', 'rest/orgs/blocking#unblock-a-user-from-an-organization', [], [], ''),
('/orgs/{org}/campaigns', 'get', 'campaigns/list-org-campaigns', 'List campaigns for an organization', 'rest/campaigns/campaigns#list-campaigns-for-an-organization', ['page', 'per_page', 'direction', 'state', 'sort'], [], ''),
('/orgs/{org}/campaigns',
'post',
'campaigns/create-campaign',
'Create a campaign for an organization',
'rest/campaigns/campaigns#create-a-campaign-for-an-organization',
[],
[['name', str], ['description', str], ['managers', list], ['team_managers', list], ['ends_at', str], ['contact_link', str], ['code_scanning_alerts', list], ['generate_issues', bool, False]],
''),
('/orgs/{org}/campaigns/{campaign_number}', 'get', 'campaigns/get-campaign-summary', 'Get a campaign for an organization', 'rest/campaigns/campaigns#get-a-campaign-for-an-organization', [], [], ''),
('/orgs/{org}/campaigns/{campaign_number}', 'patch', 'campaigns/update-campaign', 'Update a campaign', 'rest/campaigns/campaigns#update-a-campaign', [], [['name', str], ['description', str], ['managers', list], ['team_managers', list], ['ends_at', str], ['contact_link', str], ['state', str]], ''),
('/orgs/{org}/campaigns/{campaign_number}', 'delete', 'campaigns/delete-campaign', 'Delete a campaign for an organization', 'rest/campaigns/campaigns#delete-a-campaign-for-an-organization', [], [], ''),
('/orgs/{org}/code-scanning/alerts', 'get', 'code-scanning/list-alerts-for-org', 'List code scanning alerts for an organization', 'rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization', ['tool_name', 'tool_guid', 'before', 'after', 'page', 'per_page', 'direction', 'state', 'sort', 'severity', 'assignees'], [], ''),
('/orgs/{org}/code-security/configurations', 'get', 'code-security/get-configurations-for-org', 'Get code security configurations for an organization', 'rest/code-security/configurations#get-code-security-configurations-for-an-organization', ['target_type', 'per_page', 'before', 'after'], [], ''),
('/orgs/{org}/code-security/configurations',
'post',
'code-security/create-configuration',
'Create a code security configuration',
'rest/code-security/configurations#create-a-code-security-configuration',
[],
[['name', str],
['description', str],
['advanced_security', str, 'disabled'],
['code_security', str],
['dependency_graph', str, 'enabled'],
['dependency_graph_autosubmit_action', str, 'disabled'],
['dependency_graph_autosubmit_action_options', dict],
['dependabot_alerts', str, 'disabled'],
['dependabot_security_updates', str, 'disabled'],
['dependabot_delegated_alert_dismissal', str, 'disabled'],
['code_scanning_options', dict],
['code_scanning_default_setup', str, 'disabled'],
['code_scanning_default_setup_options', dict],
['code_scanning_delegated_alert_dismissal', str, 'not_set'],
['secret_protection', str],
['secret_scanning', str, 'disabled'],
['secret_scanning_push_protection', str, 'disabled'],
['secret_scanning_delegated_bypass', str, 'disabled'],
['secret_scanning_delegated_bypass_options', dict],
['secret_scanning_validity_checks', str, 'disabled'],
['secret_scanning_non_provider_patterns', str, 'disabled'],
['secret_scanning_generic_secrets', str, 'disabled'],
['secret_scanning_delegated_alert_dismissal', str],
['secret_scanning_extended_metadata', str],
['private_vulnerability_reporting', str, 'disabled'],
['enforcement', str, 'enforced']],
''),
('/orgs/{org}/code-security/configurations/defaults', 'get', 'code-security/get-default-configurations', 'Get default code security configurations', 'rest/code-security/configurations#get-default-code-security-configurations', [], [], ''),
('/orgs/{org}/code-security/configurations/detach', 'delete', 'code-security/detach-configuration', 'Detach configurations from repositories', 'rest/code-security/configurations#detach-configurations-from-repositories', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/code-security/configurations/{configuration_id}', 'get', 'code-security/get-configuration', 'Get a code security configuration', 'rest/code-security/configurations#get-a-code-security-configuration', [], [], ''),
('/orgs/{org}/code-security/configurations/{configuration_id}',
'patch',
'code-security/update-configuration',
'Update a code security configuration',
'rest/code-security/configurations#update-a-code-security-configuration',
[],
[['name', str],
['description', str],
['advanced_security', str],
['code_security', str],
['dependency_graph', str],
['dependency_graph_autosubmit_action', str],
['dependency_graph_autosubmit_action_options', dict],
['dependabot_alerts', str],
['dependabot_security_updates', str],
['dependabot_delegated_alert_dismissal', str],
['code_scanning_default_setup', str],
['code_scanning_default_setup_options', dict],
['code_scanning_options', dict],
['code_scanning_delegated_alert_dismissal', str, 'disabled'],
['secret_protection', str],
['secret_scanning', str],
['secret_scanning_push_protection', str],
['secret_scanning_delegated_bypass', str],
['secret_scanning_delegated_bypass_options', dict],
['secret_scanning_validity_checks', str],
['secret_scanning_non_provider_patterns', str],
['secret_scanning_generic_secrets', str],
['secret_scanning_delegated_alert_dismissal', str],
['secret_scanning_extended_metadata', str],
['private_vulnerability_reporting', str],
['enforcement', str]],
''),
('/orgs/{org}/code-security/configurations/{configuration_id}', 'delete', 'code-security/delete-configuration', 'Delete a code security configuration', 'rest/code-security/configurations#delete-a-code-security-configuration', [], [], ''),
('/orgs/{org}/code-security/configurations/{configuration_id}/attach', 'post', 'code-security/attach-configuration', 'Attach a configuration to repositories', 'rest/code-security/configurations#attach-a-configuration-to-repositories', [], [['scope', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/code-security/configurations/{configuration_id}/defaults', 'put', 'code-security/set-configuration-as-default', 'Set a code security configuration as a default for an organization', 'rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization', [], [['default_for_new_repos', str]], ''),
('/orgs/{org}/code-security/configurations/{configuration_id}/repositories', 'get', 'code-security/get-repositories-for-configuration', 'Get repositories associated with a code security configuration', 'rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration', ['per_page', 'before', 'after', 'status'], [], ''),
('/orgs/{org}/codespaces', 'get', 'codespaces/list-in-organization', 'List codespaces for the organization', 'rest/codespaces/organizations#list-codespaces-for-the-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/codespaces/access', 'put', 'codespaces/set-codespaces-access', 'Manage access control for organization codespaces', 'rest/codespaces/organizations#manage-access-control-for-organization-codespaces', [], [['visibility', str], ['selected_usernames', list]], ''),
('/orgs/{org}/codespaces/access/selected_users', 'post', 'codespaces/set-codespaces-access-users', 'Add users to Codespaces access for an organization', 'rest/codespaces/organizations#add-users-to-codespaces-access-for-an-organization', [], [['selected_usernames', list]], ''),
('/orgs/{org}/codespaces/access/selected_users', 'delete', 'codespaces/delete-codespaces-access-users', 'Remove users from Codespaces access for an organization', 'rest/codespaces/organizations#remove-users-from-codespaces-access-for-an-organization', [], [['selected_usernames', list]], ''),
('/orgs/{org}/codespaces/secrets', 'get', 'codespaces/list-org-secrets', 'List organization secrets', 'rest/codespaces/organization-secrets#list-organization-secrets', ['per_page', 'page'], [], ''),
('/orgs/{org}/codespaces/secrets/public-key', 'get', 'codespaces/get-org-public-key', 'Get an organization public key', 'rest/codespaces/organization-secrets#get-an-organization-public-key', [], [], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}', 'get', 'codespaces/get-org-secret', 'Get an organization secret', 'rest/codespaces/organization-secrets#get-an-organization-secret', [], [], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}', 'put', 'codespaces/create-or-update-org-secret', 'Create or update an organization secret', 'rest/codespaces/organization-secrets#create-or-update-an-organization-secret', [], [['encrypted_value', str], ['key_id', str], ['visibility', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}', 'delete', 'codespaces/delete-org-secret', 'Delete an organization secret', 'rest/codespaces/organization-secrets#delete-an-organization-secret', [], [], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}/repositories', 'get', 'codespaces/list-selected-repos-for-org-secret', 'List selected repositories for an organization secret', 'rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret', ['page', 'per_page'], [], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}/repositories', 'put', 'codespaces/set-selected-repos-for-org-secret', 'Set selected repositories for an organization secret', 'rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}', 'put', 'codespaces/add-selected-repo-to-org-secret', 'Add selected repository to an organization secret', 'rest/codespaces/organization-secrets#add-selected-repository-to-an-organization-secret', [], [], ''),
('/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}', 'delete', 'codespaces/remove-selected-repo-from-org-secret', 'Remove selected repository from an organization secret', 'rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret', [], [], ''),
('/orgs/{org}/copilot/billing', 'get', 'copilot/get-copilot-organization-details', 'Get Copilot seat information and settings for an organization', 'rest/copilot/copilot-user-management#get-copilot-seat-information-and-settings-for-an-organization', [], [], ''),
('/orgs/{org}/copilot/billing/seats', 'get', 'copilot/list-copilot-seats', 'List all Copilot seat assignments for an organization', 'rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-organization', ['page', 'per_page'], [], ''),
('/orgs/{org}/copilot/billing/selected_teams', 'post', 'copilot/add-copilot-seats-for-teams', 'Add teams to the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#add-teams-to-the-copilot-subscription-for-an-organization', [], [['selected_teams', list]], ''),
('/orgs/{org}/copilot/billing/selected_teams', 'delete', 'copilot/cancel-copilot-seat-assignment-for-teams', 'Remove teams from the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization', [], [['selected_teams', list]], ''),
('/orgs/{org}/copilot/billing/selected_users', 'post', 'copilot/add-copilot-seats-for-users', 'Add users to the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization', [], [['selected_usernames', list]], ''),
('/orgs/{org}/copilot/billing/selected_users', 'delete', 'copilot/cancel-copilot-seat-assignment-for-users', 'Remove users from the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization', [], [['selected_usernames', list]], ''),
('/orgs/{org}/copilot/content_exclusion', 'get', 'copilot/copilot-content-exclusion-for-organization', 'Get Copilot content exclusion rules for an organization', 'rest/copilot/copilot-content-exclusion-management#get-copilot-content-exclusion-rules-for-an-organization', [], [], ''),
('/orgs/{org}/copilot/content_exclusion', 'put', 'copilot/set-copilot-content-exclusion-for-organization', 'Set Copilot content exclusion rules for an organization', 'rest/copilot/copilot-content-exclusion-management#set-copilot-content-exclusion-rules-for-an-organization', [], [], ''),
('/orgs/{org}/copilot/metrics', 'get', 'copilot/copilot-metrics-for-organization', 'Get Copilot metrics for an organization', 'rest/copilot/copilot-metrics#get-copilot-metrics-for-an-organization', ['since', 'until', 'page', 'per_page'], [], ''),
('/orgs/{org}/dependabot/alerts',
'get',
'dependabot/list-alerts-for-org',
'List Dependabot alerts for an organization',
'rest/dependabot/alerts#list-dependabot-alerts-for-an-organization',
['state', 'severity', 'ecosystem', 'package', 'epss_percentage', 'artifact_registry_url', 'artifact_registry', 'has', 'assignee', 'runtime_risk', 'scope', 'sort', 'direction', 'before', 'after', 'per_page'],
[],
''),
('/orgs/{org}/dependabot/secrets', 'get', 'dependabot/list-org-secrets', 'List organization secrets', 'rest/dependabot/secrets#list-organization-secrets', ['per_page', 'page'], [], ''),
('/orgs/{org}/dependabot/secrets/public-key', 'get', 'dependabot/get-org-public-key', 'Get an organization public key', 'rest/dependabot/secrets#get-an-organization-public-key', [], [], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}', 'get', 'dependabot/get-org-secret', 'Get an organization secret', 'rest/dependabot/secrets#get-an-organization-secret', [], [], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}', 'put', 'dependabot/create-or-update-org-secret', 'Create or update an organization secret', 'rest/dependabot/secrets#create-or-update-an-organization-secret', [], [['encrypted_value', str], ['key_id', str], ['visibility', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}', 'delete', 'dependabot/delete-org-secret', 'Delete an organization secret', 'rest/dependabot/secrets#delete-an-organization-secret', [], [], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}/repositories', 'get', 'dependabot/list-selected-repos-for-org-secret', 'List selected repositories for an organization secret', 'rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret', ['page', 'per_page'], [], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}/repositories', 'put', 'dependabot/set-selected-repos-for-org-secret', 'Set selected repositories for an organization secret', 'rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}', 'put', 'dependabot/add-selected-repo-to-org-secret', 'Add selected repository to an organization secret', 'rest/dependabot/secrets#add-selected-repository-to-an-organization-secret', [], [], ''),
('/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}', 'delete', 'dependabot/remove-selected-repo-from-org-secret', 'Remove selected repository from an organization secret', 'rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret', [], [], ''),
('/orgs/{org}/docker/conflicts', 'get', 'packages/list-docker-migration-conflicting-packages-for-organization', 'Get list of conflicting packages during Docker migration for organization', 'rest/packages/packages#get-list-of-conflicting-packages-during-docker-migration-for-organization', [], [], ''),
('/orgs/{org}/events', 'get', 'activity/list-public-org-events', 'List public organization events', 'rest/activity/events#list-public-organization-events', ['per_page', 'page'], [], ''),
('/orgs/{org}/failed_invitations', 'get', 'orgs/list-failed-invitations', 'List failed organization invitations', 'rest/orgs/members#list-failed-organization-invitations', ['per_page', 'page'], [], ''),
('/orgs/{org}/hooks', 'get', 'orgs/list-webhooks', 'List organization webhooks', 'rest/orgs/webhooks#list-organization-webhooks', ['per_page', 'page'], [], ''),
('/orgs/{org}/hooks', 'post', 'orgs/create-webhook', 'Create an organization webhook', 'rest/orgs/webhooks#create-an-organization-webhook', [], [['name', str], ['config', dict], ['events', list, ['push']], ['active', bool, True]], ''),
('/orgs/{org}/hooks/{hook_id}', 'get', 'orgs/get-webhook', 'Get an organization webhook', 'rest/orgs/webhooks#get-an-organization-webhook', [], [], ''),
('/orgs/{org}/hooks/{hook_id}', 'patch', 'orgs/update-webhook', 'Update an organization webhook', 'rest/orgs/webhooks#update-an-organization-webhook', [], [['config', dict], ['events', list, ['push']], ['active', bool, True], ['name', str]], ''),
('/orgs/{org}/hooks/{hook_id}', 'delete', 'orgs/delete-webhook', 'Delete an organization webhook', 'rest/orgs/webhooks#delete-an-organization-webhook', [], [], ''),
('/orgs/{org}/hooks/{hook_id}/config', 'get', 'orgs/get-webhook-config-for-org', 'Get a webhook configuration for an organization', 'rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization', [], [], ''),
('/orgs/{org}/hooks/{hook_id}/config', 'patch', 'orgs/update-webhook-config-for-org', 'Update a webhook configuration for an organization', 'rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization', [], [['url', str], ['content_type', str], ['secret', str], ['insecure_ssl', object]], ''),
('/orgs/{org}/hooks/{hook_id}/deliveries', 'get', 'orgs/list-webhook-deliveries', 'List deliveries for an organization webhook', 'rest/orgs/webhooks#list-deliveries-for-an-organization-webhook', ['per_page', 'cursor'], [], ''),
('/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}', 'get', 'orgs/get-webhook-delivery', 'Get a webhook delivery for an organization webhook', 'rest/orgs/webhooks#get-a-webhook-delivery-for-an-organization-webhook', [], [], ''),
('/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', 'post', 'orgs/redeliver-webhook-delivery', 'Redeliver a delivery for an organization webhook', 'rest/orgs/webhooks#redeliver-a-delivery-for-an-organization-webhook', [], [], ''),
('/orgs/{org}/hooks/{hook_id}/pings', 'post', 'orgs/ping-webhook', 'Ping an organization webhook', 'rest/orgs/webhooks#ping-an-organization-webhook', [], [], ''),
('/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}', 'get', 'api-insights/get-route-stats-by-actor', 'Get route stats by actor', 'rest/orgs/api-insights#get-route-stats-by-actor', ['min_timestamp', 'max_timestamp', 'page', 'per_page', 'direction', 'sort', 'api_route_substring'], [], ''),
('/orgs/{org}/insights/api/subject-stats', 'get', 'api-insights/get-subject-stats', 'Get subject stats', 'rest/orgs/api-insights#get-subject-stats', ['min_timestamp', 'max_timestamp', 'page', 'per_page', 'direction', 'sort', 'subject_name_substring'], [], ''),
('/orgs/{org}/insights/api/summary-stats', 'get', 'api-insights/get-summary-stats', 'Get summary stats', 'rest/orgs/api-insights#get-summary-stats', ['min_timestamp', 'max_timestamp'], [], ''),
('/orgs/{org}/insights/api/summary-stats/users/{user_id}', 'get', 'api-insights/get-summary-stats-by-user', 'Get summary stats by user', 'rest/orgs/api-insights#get-summary-stats-by-user', ['min_timestamp', 'max_timestamp'], [], ''),
('/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}', 'get', 'api-insights/get-summary-stats-by-actor', 'Get summary stats by actor', 'rest/orgs/api-insights#get-summary-stats-by-actor', ['min_timestamp', 'max_timestamp'], [], ''),
('/orgs/{org}/insights/api/time-stats', 'get', 'api-insights/get-time-stats', 'Get time stats', 'rest/orgs/api-insights#get-time-stats', ['min_timestamp', 'max_timestamp', 'timestamp_increment'], [], ''),
('/orgs/{org}/insights/api/time-stats/users/{user_id}', 'get', 'api-insights/get-time-stats-by-user', 'Get time stats by user', 'rest/orgs/api-insights#get-time-stats-by-user', ['min_timestamp', 'max_timestamp', 'timestamp_increment'], [], ''),
('/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}', 'get', 'api-insights/get-time-stats-by-actor', 'Get time stats by actor', 'rest/orgs/api-insights#get-time-stats-by-actor', ['min_timestamp', 'max_timestamp', 'timestamp_increment'], [], ''),
('/orgs/{org}/insights/api/user-stats/{user_id}', 'get', 'api-insights/get-user-stats', 'Get user stats', 'rest/orgs/api-insights#get-user-stats', ['min_timestamp', 'max_timestamp', 'page', 'per_page', 'direction', 'sort', 'actor_name_substring'], [], ''),
('/orgs/{org}/installation', 'get', 'apps/get-org-installation', 'Get an organization installation for the authenticated app', 'rest/apps/apps#get-an-organization-installation-for-the-authenticated-app', [], [], ''),
('/orgs/{org}/installations', 'get', 'orgs/list-app-installations', 'List app installations for an organization', 'rest/orgs/orgs#list-app-installations-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/interaction-limits', 'get', 'interactions/get-restrictions-for-org', 'Get interaction restrictions for an organization', 'rest/interactions/orgs#get-interaction-restrictions-for-an-organization', [], [], ''),
('/orgs/{org}/interaction-limits', 'put', 'interactions/set-restrictions-for-org', 'Set interaction restrictions for an organization', 'rest/interactions/orgs#set-interaction-restrictions-for-an-organization', [], [['limit', str], ['expiry', str]], ''),
('/orgs/{org}/interaction-limits', 'delete', 'interactions/remove-restrictions-for-org', 'Remove interaction restrictions for an organization', 'rest/interactions/orgs#remove-interaction-restrictions-for-an-organization', [], [], ''),
('/orgs/{org}/invitations', 'get', 'orgs/list-pending-invitations', 'List pending organization invitations', 'rest/orgs/members#list-pending-organization-invitations', ['per_page', 'page', 'role', 'invitation_source'], [], ''),
('/orgs/{org}/invitations', 'post', 'orgs/create-invitation', 'Create an organization invitation', 'rest/orgs/members#create-an-organization-invitation', [], [['invitee_id', int], ['email', str], ['role', str, 'direct_member'], ['team_ids', list]], ''),
('/orgs/{org}/invitations/{invitation_id}', 'delete', 'orgs/cancel-invitation', 'Cancel an organization invitation', 'rest/orgs/members#cancel-an-organization-invitation', [], [], ''),
('/orgs/{org}/invitations/{invitation_id}/teams', 'get', 'orgs/list-invitation-teams', 'List organization invitation teams', 'rest/orgs/members#list-organization-invitation-teams', ['per_page', 'page'], [], ''),
('/orgs/{org}/issue-types', 'get', 'orgs/list-issue-types', 'List issue types for an organization', 'rest/orgs/issue-types#list-issue-types-for-an-organization', [], [], ''),
('/orgs/{org}/issue-types', 'post', 'orgs/create-issue-type', 'Create issue type for an organization', 'rest/orgs/issue-types#create-issue-type-for-an-organization', [], [['name', str], ['is_enabled', bool], ['description', str], ['color', str]], ''),
('/orgs/{org}/issue-types/{issue_type_id}', 'put', 'orgs/update-issue-type', 'Update issue type for an organization', 'rest/orgs/issue-types#update-issue-type-for-an-organization', [], [['name', str], ['is_enabled', bool], ['description', str], ['color', str]], ''),
('/orgs/{org}/issue-types/{issue_type_id}', 'delete', 'orgs/delete-issue-type', 'Delete issue type for an organization', 'rest/orgs/issue-types#delete-issue-type-for-an-organization', [], [], ''),
('/orgs/{org}/issues', 'get', 'issues/list-for-org', 'List organization issues assigned to the authenticated user', 'rest/issues/issues#list-organization-issues-assigned-to-the-authenticated-user', ['filter', 'state', 'labels', 'type', 'sort', 'direction', 'since', 'per_page', 'page'], [], ''),
('/orgs/{org}/members', 'get', 'orgs/list-members', 'List organization members', 'rest/orgs/members#list-organization-members', ['filter', 'role', 'per_page', 'page'], [], ''),
('/orgs/{org}/members/{username}', 'get', 'orgs/check-membership-for-user', 'Check organization membership for a user', 'rest/orgs/members#check-organization-membership-for-a-user', [], [], ''),
('/orgs/{org}/members/{username}', 'delete', 'orgs/remove-member', 'Remove an organization member', 'rest/orgs/members#remove-an-organization-member', [], [], ''),
('/orgs/{org}/members/{username}/codespaces', 'get', 'codespaces/get-codespaces-for-user-in-org', 'List codespaces for a user in organization', 'rest/codespaces/organizations#list-codespaces-for-a-user-in-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/members/{username}/codespaces/{codespace_name}', 'delete', 'codespaces/delete-from-organization', 'Delete a codespace from the organization', 'rest/codespaces/organizations#delete-a-codespace-from-the-organization', [], [], ''),
('/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop', 'post', 'codespaces/stop-in-organization', 'Stop a codespace for an organization user', 'rest/codespaces/organizations#stop-a-codespace-for-an-organization-user', [], [], ''),
('/orgs/{org}/members/{username}/copilot', 'get', 'copilot/get-copilot-seat-details-for-user', 'Get Copilot seat assignment details for a user', 'rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-a-user', [], [], ''),
('/orgs/{org}/memberships/{username}', 'get', 'orgs/get-membership-for-user', 'Get organization membership for a user', 'rest/orgs/members#get-organization-membership-for-a-user', [], [], ''),
('/orgs/{org}/memberships/{username}', 'put', 'orgs/set-membership-for-user', 'Set organization membership for a user', 'rest/orgs/members#set-organization-membership-for-a-user', [], [['role', str, 'member']], ''),
('/orgs/{org}/memberships/{username}', 'delete', 'orgs/remove-membership-for-user', 'Remove organization membership for a user', 'rest/orgs/members#remove-organization-membership-for-a-user', [], [], ''),
('/orgs/{org}/migrations', 'get', 'migrations/list-for-org', 'List organization migrations', 'rest/migrations/orgs#list-organization-migrations', ['per_page', 'page', 'exclude'], [], ''),
('/orgs/{org}/migrations',
'post',
'migrations/start-for-org',
'Start an organization migration',
'rest/migrations/orgs#start-an-organization-migration',
[],
[['repositories', list], ['lock_repositories', bool, False], ['exclude_metadata', bool, False], ['exclude_git_data', bool, False], ['exclude_attachments', bool, False], ['exclude_releases', bool, False], ['exclude_owner_projects', bool, False], ['org_metadata_only', bool, False], ['exclude', list]],
''),
('/orgs/{org}/migrations/{migration_id}', 'get', 'migrations/get-status-for-org', 'Get an organization migration status', 'rest/migrations/orgs#get-an-organization-migration-status', ['exclude'], [], ''),
('/orgs/{org}/migrations/{migration_id}/archive', 'get', 'migrations/download-archive-for-org', 'Download an organization migration archive', 'rest/migrations/orgs#download-an-organization-migration-archive', [], [], ''),
('/orgs/{org}/migrations/{migration_id}/archive', 'delete', 'migrations/delete-archive-for-org', 'Delete an organization migration archive', 'rest/migrations/orgs#delete-an-organization-migration-archive', [], [], ''),
('/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock', 'delete', 'migrations/unlock-repo-for-org', 'Unlock an organization repository', 'rest/migrations/orgs#unlock-an-organization-repository', [], [], ''),
('/orgs/{org}/migrations/{migration_id}/repositories', 'get', 'migrations/list-repos-for-org', 'List repositories in an organization migration', 'rest/migrations/orgs#list-repositories-in-an-organization-migration', ['per_page', 'page'], [], ''),
('/orgs/{org}/organization-roles', 'get', 'orgs/list-org-roles', 'Get all organization roles for an organization', 'rest/orgs/organization-roles#get-all-organization-roles-for-an-organization', [], [], ''),
('/orgs/{org}/organization-roles/teams/{team_slug}', 'delete', 'orgs/revoke-all-org-roles-team', 'Remove all organization roles for a team', 'rest/orgs/organization-roles#remove-all-organization-roles-for-a-team', [], [], ''),
('/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}', 'put', 'orgs/assign-team-to-org-role', 'Assign an organization role to a team', 'rest/orgs/organization-roles#assign-an-organization-role-to-a-team', [], [], ''),
('/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}', 'delete', 'orgs/revoke-org-role-team', 'Remove an organization role from a team', 'rest/orgs/organization-roles#remove-an-organization-role-from-a-team', [], [], ''),
('/orgs/{org}/organization-roles/users/{username}', 'delete', 'orgs/revoke-all-org-roles-user', 'Remove all organization roles for a user', 'rest/orgs/organization-roles#remove-all-organization-roles-for-a-user', [], [], ''),
('/orgs/{org}/organization-roles/users/{username}/{role_id}', 'put', 'orgs/assign-user-to-org-role', 'Assign an organization role to a user', 'rest/orgs/organization-roles#assign-an-organization-role-to-a-user', [], [], ''),
('/orgs/{org}/organization-roles/users/{username}/{role_id}', 'delete', 'orgs/revoke-org-role-user', 'Remove an organization role from a user', 'rest/orgs/organization-roles#remove-an-organization-role-from-a-user', [], [], ''),
('/orgs/{org}/organization-roles/{role_id}', 'get', 'orgs/get-org-role', 'Get an organization role', 'rest/orgs/organization-roles#get-an-organization-role', [], [], ''),
('/orgs/{org}/organization-roles/{role_id}/teams', 'get', 'orgs/list-org-role-teams', 'List teams that are assigned to an organization role', 'rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role', ['per_page', 'page'], [], ''),
('/orgs/{org}/organization-roles/{role_id}/users', 'get', 'orgs/list-org-role-users', 'List users that are assigned to an organization role', 'rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role', ['per_page', 'page'], [], ''),
('/orgs/{org}/outside_collaborators', 'get', 'orgs/list-outside-collaborators', 'List outside collaborators for an organization', 'rest/orgs/outside-collaborators#list-outside-collaborators-for-an-organization', ['filter', 'per_page', 'page'], [], ''),
('/orgs/{org}/outside_collaborators/{username}', 'put', 'orgs/convert-member-to-outside-collaborator', 'Convert an organization member to outside collaborator', 'rest/orgs/outside-collaborators#convert-an-organization-member-to-outside-collaborator', [], [['async', bool, False]], ''),
('/orgs/{org}/outside_collaborators/{username}', 'delete', 'orgs/remove-outside-collaborator', 'Remove outside collaborator from an organization', 'rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization', [], [], ''),
('/orgs/{org}/packages', 'get', 'packages/list-packages-for-organization', 'List packages for an organization', 'rest/packages/packages#list-packages-for-an-organization', ['package_type', 'visibility', 'page', 'per_page'], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}', 'get', 'packages/get-package-for-organization', 'Get a package for an organization', 'rest/packages/packages#get-a-package-for-an-organization', [], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}', 'delete', 'packages/delete-package-for-org', 'Delete a package for an organization', 'rest/packages/packages#delete-a-package-for-an-organization', [], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}/restore', 'post', 'packages/restore-package-for-org', 'Restore a package for an organization', 'rest/packages/packages#restore-a-package-for-an-organization', ['token'], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}/versions', 'get', 'packages/get-all-package-versions-for-package-owned-by-org', 'List package versions for a package owned by an organization', 'rest/packages/packages#list-package-versions-for-a-package-owned-by-an-organization', ['page', 'per_page', 'state'], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}', 'get', 'packages/get-package-version-for-organization', 'Get a package version for an organization', 'rest/packages/packages#get-a-package-version-for-an-organization', [], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}', 'delete', 'packages/delete-package-version-for-org', 'Delete package version for an organization', 'rest/packages/packages#delete-package-version-for-an-organization', [], [], ''),
('/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore', 'post', 'packages/restore-package-version-for-org', 'Restore package version for an organization', 'rest/packages/packages#restore-package-version-for-an-organization', [], [], ''),
('/orgs/{org}/personal-access-token-requests',
'get',
'orgs/list-pat-grant-requests',
'List requests to access organization resources with fine-grained personal access tokens',
'rest/orgs/personal-access-tokens#list-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens',
['per_page', 'page', 'sort', 'direction', 'owner', 'repository', 'permission', 'last_used_before', 'last_used_after', 'token_id'],
[],
''),
('/orgs/{org}/personal-access-token-requests',
'post',
'orgs/review-pat-grant-requests-in-bulk',
'Review requests to access organization resources with fine-grained personal access tokens',
'rest/orgs/personal-access-tokens#review-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens',
[],
[['pat_request_ids', list], ['action', str], ['reason', str]],
''),
('/orgs/{org}/personal-access-token-requests/{pat_request_id}',
'post',
'orgs/review-pat-grant-request',
'Review a request to access organization resources with a fine-grained personal access token',
'rest/orgs/personal-access-tokens#review-a-request-to-access-organization-resources-with-a-fine-grained-personal-access-token',
[],
[['action', str], ['reason', str]],
''),
('/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories',
'get',
'orgs/list-pat-grant-request-repositories',
'List repositories requested to be accessed by a fine-grained personal access token',
'rest/orgs/personal-access-tokens#list-repositories-requested-to-be-accessed-by-a-fine-grained-personal-access-token',
['per_page', 'page'],
[],
''),
('/orgs/{org}/personal-access-tokens',
'get',
'orgs/list-pat-grants',
'List fine-grained personal access tokens with access to organization resources',
'rest/orgs/personal-access-tokens#list-fine-grained-personal-access-tokens-with-access-to-organization-resources',
['per_page', 'page', 'sort', 'direction', 'owner', 'repository', 'permission', 'last_used_before', 'last_used_after', 'token_id'],
[],
''),
('/orgs/{org}/personal-access-tokens', 'post', 'orgs/update-pat-accesses', 'Update the access to organization resources via fine-grained personal access tokens', 'rest/orgs/personal-access-tokens#update-the-access-to-organization-resources-via-fine-grained-personal-access-tokens', [], [['action', str], ['pat_ids', list]], ''),
('/orgs/{org}/personal-access-tokens/{pat_id}', 'post', 'orgs/update-pat-access', 'Update the access a fine-grained personal access token has to organization resources', 'rest/orgs/personal-access-tokens#update-the-access-a-fine-grained-personal-access-token-has-to-organization-resources', [], [['action', str]], ''),
('/orgs/{org}/personal-access-tokens/{pat_id}/repositories', 'get', 'orgs/list-pat-grant-repositories', 'List repositories a fine-grained personal access token has access to', 'rest/orgs/personal-access-tokens#list-repositories-a-fine-grained-personal-access-token-has-access-to', ['per_page', 'page'], [], ''),
('/orgs/{org}/private-registries', 'get', 'private-registries/list-org-private-registries', 'List private registries for an organization', 'rest/private-registries/organization-configurations#list-private-registries-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/private-registries',
'post',
'private-registries/create-org-private-registry',
'Create a private registry for an organization',
'rest/private-registries/organization-configurations#create-a-private-registry-for-an-organization',
[],
[['registry_type', str], ['url', str], ['username', str], ['replaces_base', bool, False], ['encrypted_value', str], ['key_id', str], ['visibility', str], ['selected_repository_ids', list]],
''),
('/orgs/{org}/private-registries/public-key', 'get', 'private-registries/get-org-public-key', 'Get private registries public key for an organization', 'rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization', [], [], ''),
('/orgs/{org}/private-registries/{secret_name}', 'get', 'private-registries/get-org-private-registry', 'Get a private registry for an organization', 'rest/private-registries/organization-configurations#get-a-private-registry-for-an-organization', [], [], ''),
('/orgs/{org}/private-registries/{secret_name}',
'patch',
'private-registries/update-org-private-registry',
'Update a private registry for an organization',
'rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization',
[],
[['registry_type', str], ['url', str], ['username', str], ['replaces_base', bool, False], ['encrypted_value', str], ['key_id', str], ['visibility', str], ['selected_repository_ids', list]],
''),
('/orgs/{org}/private-registries/{secret_name}', 'delete', 'private-registries/delete-org-private-registry', 'Delete a private registry for an organization', 'rest/private-registries/organization-configurations#delete-a-private-registry-for-an-organization', [], [], ''),
('/orgs/{org}/projectsV2', 'get', 'projects/list-for-org', 'List projects for organization', 'rest/projects/projects#list-projects-for-organization', ['q', 'before', 'after', 'per_page'], [], ''),
('/orgs/{org}/projectsV2/{project_number}', 'get', 'projects/get-for-org', 'Get project for organization', 'rest/projects/projects#get-project-for-organization', [], [], ''),
('/orgs/{org}/projectsV2/{project_number}/drafts', 'post', 'projects/create-draft-item-for-org', 'Create draft item for organization owned project', 'rest/projects/drafts#create-draft-item-for-organization-owned-project', [], [['title', str], ['body', str]], ''),
('/orgs/{org}/projectsV2/{project_number}/fields', 'get', 'projects/list-fields-for-org', 'List project fields for organization', 'rest/projects/fields#list-project-fields-for-organization', ['per_page', 'before', 'after'], [], ''),
('/orgs/{org}/projectsV2/{project_number}/fields', 'post', 'projects/add-field-for-org', 'Add a field to an organization-owned project.', 'rest/projects/fields#add-a-field-to-an-organization-owned-project', [], [['issue_field_id', int]], ''),
('/orgs/{org}/projectsV2/{project_number}/fields/{field_id}', 'get', 'projects/get-field-for-org', 'Get project field for organization', 'rest/projects/fields#get-project-field-for-organization', [], [], ''),
('/orgs/{org}/projectsV2/{project_number}/items', 'get', 'projects/list-items-for-org', 'List items for an organization owned project', 'rest/projects/items#list-items-for-an-organization-owned-project', ['q', 'fields', 'before', 'after', 'per_page'], [], ''),
('/orgs/{org}/projectsV2/{project_number}/items', 'post', 'projects/add-item-for-org', 'Add item to organization owned project', 'rest/projects/items#add-item-to-organization-owned-project', [], [['type', str], ['id', int], ['owner', str], ['repo', str], ['number', int]], ''),
('/orgs/{org}/projectsV2/{project_number}/items/{item_id}', 'get', 'projects/get-org-item', 'Get an item for an organization owned project', 'rest/projects/items#get-an-item-for-an-organization-owned-project', ['fields'], [], ''),
('/orgs/{org}/projectsV2/{project_number}/items/{item_id}', 'patch', 'projects/update-item-for-org', 'Update project item for organization', 'rest/projects/items#update-project-item-for-organization', [], [['fields', list]], ''),
('/orgs/{org}/projectsV2/{project_number}/items/{item_id}', 'delete', 'projects/delete-item-for-org', 'Delete project item for organization', 'rest/projects/items#delete-project-item-for-organization', [], [], ''),
('/orgs/{org}/projectsV2/{project_number}/views', 'post', 'projects/create-view-for-org', 'Create a view for an organization-owned project', 'rest/projects/views#create-a-view-for-an-organization-owned-project', [], [['name', str], ['layout', str], ['filter', str], ['visible_fields', list]], ''),
('/orgs/{org}/projectsV2/{project_number}/views/{view_number}/items', 'get', 'projects/list-view-items-for-org', 'List items for an organization project view', 'rest/projects/items#list-items-for-an-organization-project-view', ['fields', 'before', 'after', 'per_page'], [], ''),
('/orgs/{org}/properties/schema', 'get', 'orgs/custom-properties-for-repos-get-organization-definitions', 'Get all custom properties for an organization', 'rest/orgs/custom-properties#get-all-custom-properties-for-an-organization', [], [], ''),
('/orgs/{org}/properties/schema', 'patch', 'orgs/custom-properties-for-repos-create-or-update-organization-definitions', 'Create or update custom properties for an organization', 'rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization', [], [['properties', list]], ''),
('/orgs/{org}/properties/schema/{custom_property_name}', 'get', 'orgs/custom-properties-for-repos-get-organization-definition', 'Get a custom property for an organization', 'rest/orgs/custom-properties#get-a-custom-property-for-an-organization', [], [], ''),
('/orgs/{org}/properties/schema/{custom_property_name}',
'put',
'orgs/custom-properties-for-repos-create-or-update-organization-definition',
'Create or update a custom property for an organization',
'rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization',
[],
[['value_type', str], ['required', bool], ['default_value', object], ['description', str], ['allowed_values', list], ['values_editable_by', str], ['require_explicit_values', bool]],
''),
('/orgs/{org}/properties/schema/{custom_property_name}', 'delete', 'orgs/custom-properties-for-repos-delete-organization-definition', 'Remove a custom property for an organization', 'rest/orgs/custom-properties#remove-a-custom-property-for-an-organization', [], [], ''),
('/orgs/{org}/properties/values', 'get', 'orgs/custom-properties-for-repos-get-organization-values', 'List custom property values for organization repositories', 'rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories', ['per_page', 'page', 'repository_query'], [], ''),
('/orgs/{org}/properties/values', 'patch', 'orgs/custom-properties-for-repos-create-or-update-organization-values', 'Create or update custom property values for organization repositories', 'rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories', [], [['repository_names', list], ['properties', list]], ''),
('/orgs/{org}/public_members', 'get', 'orgs/list-public-members', 'List public organization members', 'rest/orgs/members#list-public-organization-members', ['per_page', 'page'], [], ''),
('/orgs/{org}/public_members/{username}', 'get', 'orgs/check-public-membership-for-user', 'Check public organization membership for a user', 'rest/orgs/members#check-public-organization-membership-for-a-user', [], [], ''),
('/orgs/{org}/public_members/{username}', 'put', 'orgs/set-public-membership-for-authenticated-user', 'Set public organization membership for the authenticated user', 'rest/orgs/members#set-public-organization-membership-for-the-authenticated-user', [], [], ''),
('/orgs/{org}/public_members/{username}', 'delete', 'orgs/remove-public-membership-for-authenticated-user', 'Remove public organization membership for the authenticated user', 'rest/orgs/members#remove-public-organization-membership-for-the-authenticated-user', [], [], ''),
('/orgs/{org}/repos', 'get', 'repos/list-for-org', 'List organization repositories', 'rest/repos/repos#list-organization-repositories', ['type', 'sort', 'direction', 'per_page', 'page'], [], ''),
('/orgs/{org}/repos',
'post',
'repos/create-in-org',
'Create an organization repository',
'rest/repos/repos#create-an-organization-repository',
[],
[['name', str],
['description', str],
['homepage', str],
['private', bool, False],
['visibility', str],
['has_issues', bool, True],
['has_projects', bool, True],
['has_wiki', bool, True],
['has_downloads', bool, True],
['is_template', bool, False],
['team_id', int],
['auto_init', bool, False],
['gitignore_template', str],
['license_template', str],
['allow_squash_merge', bool, True],
['allow_merge_commit', bool, True],
['allow_rebase_merge', bool, True],
['allow_auto_merge', bool, False],
['delete_branch_on_merge', bool, False],
['use_squash_pr_title_as_default', bool, False],
['squash_merge_commit_title', str],
['squash_merge_commit_message', str],
['merge_commit_title', str],
['merge_commit_message', str],
['custom_properties', dict]],
''),
('/orgs/{org}/rulesets', 'get', 'repos/get-org-rulesets', 'Get all organization repository rulesets', 'rest/orgs/rules#get-all-organization-repository-rulesets', ['per_page', 'page', 'targets'], [], ''),
('/orgs/{org}/rulesets', 'post', 'repos/create-org-ruleset', 'Create an organization repository ruleset', 'rest/orgs/rules#create-an-organization-repository-ruleset', [], [['name', str], ['target', str, 'branch'], ['enforcement', str], ['bypass_actors', list], ['conditions', dict], ['rules', list]], ''),
('/orgs/{org}/rulesets/rule-suites', 'get', 'repos/get-org-rule-suites', 'List organization rule suites', 'rest/orgs/rule-suites#list-organization-rule-suites', ['ref', 'repository_name', 'time_period', 'actor_name', 'rule_suite_result', 'per_page', 'page'], [], ''),
('/orgs/{org}/rulesets/rule-suites/{rule_suite_id}', 'get', 'repos/get-org-rule-suite', 'Get an organization rule suite', 'rest/orgs/rule-suites#get-an-organization-rule-suite', [], [], ''),
('/orgs/{org}/rulesets/{ruleset_id}', 'get', 'repos/get-org-ruleset', 'Get an organization repository ruleset', 'rest/orgs/rules#get-an-organization-repository-ruleset', [], [], ''),
('/orgs/{org}/rulesets/{ruleset_id}', 'put', 'repos/update-org-ruleset', 'Update an organization repository ruleset', 'rest/orgs/rules#update-an-organization-repository-ruleset', [], [['name', str], ['target', str], ['enforcement', str], ['bypass_actors', list], ['conditions', dict], ['rules', list]], ''),
('/orgs/{org}/rulesets/{ruleset_id}', 'delete', 'repos/delete-org-ruleset', 'Delete an organization repository ruleset', 'rest/orgs/rules#delete-an-organization-repository-ruleset', [], [], ''),
('/orgs/{org}/rulesets/{ruleset_id}/history', 'get', 'orgs/get-org-ruleset-history', 'Get organization ruleset history', 'rest/orgs/rules#get-organization-ruleset-history', ['per_page', 'page'], [], ''),
('/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}', 'get', 'orgs/get-org-ruleset-version', 'Get organization ruleset version', 'rest/orgs/rules#get-organization-ruleset-version', [], [], ''),
('/orgs/{org}/secret-scanning/alerts',
'get',
'secret-scanning/list-alerts-for-org',
'List secret scanning alerts for an organization',
'rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization',
['state', 'secret_type', 'resolution', 'assignee', 'sort', 'direction', 'page', 'per_page', 'before', 'after', 'validity', 'is_publicly_leaked', 'is_multi_repo', 'hide_secret'],
[],
''),
('/orgs/{org}/secret-scanning/pattern-configurations', 'get', 'secret-scanning/list-org-pattern-configs', 'List organization pattern configurations', 'rest/secret-scanning/push-protection#list-organization-pattern-configurations', [], [], ''),
('/orgs/{org}/secret-scanning/pattern-configurations', 'patch', 'secret-scanning/update-org-pattern-configs', 'Update organization pattern configurations', 'rest/secret-scanning/push-protection#update-organization-pattern-configurations', [], [['pattern_config_version', str], ['provider_pattern_settings', list], ['custom_pattern_settings', list]], ''),
('/orgs/{org}/security-advisories', 'get', 'security-advisories/list-org-repository-advisories', 'List repository security advisories for an organization', 'rest/security-advisories/repository-advisories#list-repository-security-advisories-for-an-organization', ['direction', 'sort', 'before', 'after', 'per_page', 'state'], [], ''),
('/orgs/{org}/security-managers', 'get', 'orgs/list-security-manager-teams', 'List security manager teams', 'rest/orgs/security-managers#list-security-manager-teams', [], [], ''),
('/orgs/{org}/security-managers/teams/{team_slug}', 'put', 'orgs/add-security-manager-team', 'Add a security manager team', 'rest/orgs/security-managers#add-a-security-manager-team', [], [], ''),
('/orgs/{org}/security-managers/teams/{team_slug}', 'delete', 'orgs/remove-security-manager-team', 'Remove a security manager team', 'rest/orgs/security-managers#remove-a-security-manager-team', [], [], ''),
('/orgs/{org}/settings/immutable-releases', 'get', 'orgs/get-immutable-releases-settings', 'Get immutable releases settings for an organization', 'rest/orgs/orgs#get-immutable-releases-settings-for-an-organization', [], [], ''),
('/orgs/{org}/settings/immutable-releases', 'put', 'orgs/set-immutable-releases-settings', 'Set immutable releases settings for an organization', 'rest/orgs/orgs#set-immutable-releases-settings-for-an-organization', [], [['enforced_repositories', str], ['selected_repository_ids', list]], ''),
('/orgs/{org}/settings/immutable-releases/repositories', 'get', 'orgs/get-immutable-releases-settings-repositories', 'List selected repositories for immutable releases enforcement', 'rest/orgs/orgs#list-selected-repositories-for-immutable-releases-enforcement', ['page', 'per_page'], [], ''),
('/orgs/{org}/settings/immutable-releases/repositories', 'put', 'orgs/set-immutable-releases-settings-repositories', 'Set selected repositories for immutable releases enforcement', 'rest/orgs/orgs#set-selected-repositories-for-immutable-releases-enforcement', [], [['selected_repository_ids', list]], ''),
('/orgs/{org}/settings/immutable-releases/repositories/{repository_id}', 'put', 'orgs/enable-selected-repository-immutable-releases-organization', 'Enable a selected repository for immutable releases in an organization', 'rest/orgs/orgs#enable-a-selected-repository-for-immutable-releases-in-an-organization', [], [], ''),
('/orgs/{org}/settings/immutable-releases/repositories/{repository_id}', 'delete', 'orgs/disable-selected-repository-immutable-releases-organization', 'Disable a selected repository for immutable releases in an organization', 'rest/orgs/orgs#disable-a-selected-repository-for-immutable-releases-in-an-organization', [], [], ''),
('/orgs/{org}/settings/network-configurations', 'get', 'hosted-compute/list-network-configurations-for-org', 'List hosted compute network configurations for an organization', 'rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization', ['per_page', 'page'], [], ''),
('/orgs/{org}/settings/network-configurations',
'post',
'hosted-compute/create-network-configuration-for-org',
'Create a hosted compute network configuration for an organization',
'rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization',
[],
[['name', str], ['compute_service', str], ['network_settings_ids', list]],
''),
('/orgs/{org}/settings/network-configurations/{network_configuration_id}', 'get', 'hosted-compute/get-network-configuration-for-org', 'Get a hosted compute network configuration for an organization', 'rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization', [], [], ''),
('/orgs/{org}/settings/network-configurations/{network_configuration_id}',
'patch',
'hosted-compute/update-network-configuration-for-org',
'Update a hosted compute network configuration for an organization',
'rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization',
[],
[['name', str], ['compute_service', str], ['network_settings_ids', list]],
''),
('/orgs/{org}/settings/network-configurations/{network_configuration_id}', 'delete', 'hosted-compute/delete-network-configuration-from-org', 'Delete a hosted compute network configuration from an organization', 'rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization', [], [], ''),
('/orgs/{org}/settings/network-settings/{network_settings_id}', 'get', 'hosted-compute/get-network-settings-for-org', 'Get a hosted compute network settings resource for an organization', 'rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization', [], [], ''),
('/orgs/{org}/team/{team_slug}/copilot/metrics', 'get', 'copilot/copilot-metrics-for-team', 'Get Copilot metrics for a team', 'rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team', ['since', 'until', 'page', 'per_page'], [], ''),
('/orgs/{org}/teams', 'get', 'teams/list', 'List teams', 'rest/teams/teams#list-teams', ['per_page', 'page'], [], ''),
('/orgs/{org}/teams', 'post', 'teams/create', 'Create a team', 'rest/teams/teams#create-a-team', [], [['name', str], ['description', str], ['maintainers', list], ['repo_names', list], ['privacy', str], ['notification_setting', str], ['permission', str, 'pull'], ['parent_team_id', int]], ''),
('/orgs/{org}/teams/{team_slug}', 'get', 'teams/get-by-name', 'Get a team by name', 'rest/teams/teams#get-a-team-by-name', [], [], ''),
('/orgs/{org}/teams/{team_slug}', 'patch', 'teams/update-in-org', 'Update a team', 'rest/teams/teams#update-a-team', [], [['name', str], ['description', str], ['privacy', str], ['notification_setting', str], ['permission', str, 'pull'], ['parent_team_id', int]], ''),
('/orgs/{org}/teams/{team_slug}', 'delete', 'teams/delete-in-org', 'Delete a team', 'rest/teams/teams#delete-a-team', [], [], ''),
('/orgs/{org}/teams/{team_slug}/invitations', 'get', 'teams/list-pending-invitations-in-org', 'List pending team invitations', 'rest/teams/members#list-pending-team-invitations', ['per_page', 'page'], [], ''),
('/orgs/{org}/teams/{team_slug}/members', 'get', 'teams/list-members-in-org', 'List team members', 'rest/teams/members#list-team-members', ['role', 'per_page', 'page'], [], ''),
('/orgs/{org}/teams/{team_slug}/memberships/{username}', 'get', 'teams/get-membership-for-user-in-org', 'Get team membership for a user', 'rest/teams/members#get-team-membership-for-a-user', [], [], ''),
('/orgs/{org}/teams/{team_slug}/memberships/{username}', 'put', 'teams/add-or-update-membership-for-user-in-org', 'Add or update team membership for a user', 'rest/teams/members#add-or-update-team-membership-for-a-user', [], [['role', str, 'member']], ''),
('/orgs/{org}/teams/{team_slug}/memberships/{username}', 'delete', 'teams/remove-membership-for-user-in-org', 'Remove team membership for a user', 'rest/teams/members#remove-team-membership-for-a-user', [], [], ''),
('/orgs/{org}/teams/{team_slug}/repos', 'get', 'teams/list-repos-in-org', 'List team repositories', 'rest/teams/teams#list-team-repositories', ['per_page', 'page'], [], ''),
('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'get', 'teams/check-permissions-for-repo-in-org', 'Check team permissions for a repository', 'rest/teams/teams#check-team-permissions-for-a-repository', [], [], ''),
('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'put', 'teams/add-or-update-repo-permissions-in-org', 'Add or update team repository permissions', 'rest/teams/teams#add-or-update-team-repository-permissions', [], [['permission', str]], ''),
('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'delete', 'teams/remove-repo-in-org', 'Remove a repository from a team', 'rest/teams/teams#remove-a-repository-from-a-team', [], [], ''),
('/orgs/{org}/teams/{team_slug}/teams', 'get', 'teams/list-child-in-org', 'List child teams', 'rest/teams/teams#list-child-teams', ['per_page', 'page'], [], ''),
('/orgs/{org}/{security_product}/{enablement}', 'post', 'orgs/enable-or-disable-security-product-on-all-org-repos', 'Enable or disable a security feature for an organization', 'rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization', [], [['query_suite', str]], ''),
('/rate_limit', 'get', 'rate-limit/get', 'Get rate limit status for the authenticated user', 'rest/rate-limit/rate-limit#get-rate-limit-status-for-the-authenticated-user', [], [], ''),
('/repos/{owner}/{repo}', 'get', 'repos/get', 'Get a repository', 'rest/repos/repos#get-a-repository', [], [], ''),
('/repos/{owner}/{repo}',
'patch',
'repos/update',
'Update a repository',
'rest/repos/repos#update-a-repository',
[],
[['name', str],
['description', str],
['homepage', str],
['private', bool, False],
['visibility', str],
['security_and_analysis', dict],
['has_issues', bool, True],
['has_projects', bool, True],
['has_wiki', bool, True],
['is_template', bool, False],
['default_branch', str],
['allow_squash_merge', bool, True],
['allow_merge_commit', bool, True],
['allow_rebase_merge', bool, True],
['allow_auto_merge', bool, False],
['delete_branch_on_merge', bool, False],
['allow_update_branch', bool, False],
['use_squash_pr_title_as_default', bool, False],
['squash_merge_commit_title', str],
['squash_merge_commit_message', str],
['merge_commit_title', str],
['merge_commit_message', str],
['archived', bool, False],
['allow_forking', bool, False],
['web_commit_signoff_required', bool, False]],
''),
('/repos/{owner}/{repo}', 'delete', 'repos/delete', 'Delete a repository', 'rest/repos/repos#delete-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/artifacts', 'get', 'actions/list-artifacts-for-repo', 'List artifacts for a repository', 'rest/actions/artifacts#list-artifacts-for-a-repository', ['per_page', 'page', 'name'], [], ''),
('/repos/{owner}/{repo}/actions/artifacts/{artifact_id}', 'get', 'actions/get-artifact', 'Get an artifact', 'rest/actions/artifacts#get-an-artifact', [], [], ''),
('/repos/{owner}/{repo}/actions/artifacts/{artifact_id}', 'delete', 'actions/delete-artifact', 'Delete an artifact', 'rest/actions/artifacts#delete-an-artifact', [], [], ''),
('/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}', 'get', 'actions/download-artifact', 'Download an artifact', 'rest/actions/artifacts#download-an-artifact', [], [], ''),
('/repos/{owner}/{repo}/actions/cache/retention-limit', 'get', 'actions/get-actions-cache-retention-limit-for-repository', 'Get GitHub Actions cache retention limit for a repository', 'rest/actions/cache#get-github-actions-cache-retention-limit-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/cache/retention-limit', 'put', 'actions/set-actions-cache-retention-limit-for-repository', 'Set GitHub Actions cache retention limit for a repository', 'rest/actions/cache#set-github-actions-cache-retention-limit-for-a-repository', [], [['max_cache_retention_days', int]], ''),
('/repos/{owner}/{repo}/actions/cache/storage-limit', 'get', 'actions/get-actions-cache-storage-limit-for-repository', 'Get GitHub Actions cache storage limit for a repository', 'rest/actions/cache#get-github-actions-cache-storage-limit-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/cache/storage-limit', 'put', 'actions/set-actions-cache-storage-limit-for-repository', 'Set GitHub Actions cache storage limit for a repository', 'rest/actions/cache#set-github-actions-cache-storage-limit-for-a-repository', [], [['max_cache_size_gb', int]], ''),
('/repos/{owner}/{repo}/actions/cache/usage', 'get', 'actions/get-actions-cache-usage', 'Get GitHub Actions cache usage for a repository', 'rest/actions/cache#get-github-actions-cache-usage-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/caches', 'get', 'actions/get-actions-cache-list', 'List GitHub Actions caches for a repository', 'rest/actions/cache#list-github-actions-caches-for-a-repository', ['per_page', 'page', 'ref', 'key', 'sort', 'direction'], [], ''),
('/repos/{owner}/{repo}/actions/caches', 'delete', 'actions/delete-actions-cache-by-key', 'Delete GitHub Actions caches for a repository (using a cache key)', 'rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key', ['key', 'ref'], [], ''),
('/repos/{owner}/{repo}/actions/caches/{cache_id}', 'delete', 'actions/delete-actions-cache-by-id', 'Delete a GitHub Actions cache for a repository (using a cache ID)', 'rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id', [], [], ''),
('/repos/{owner}/{repo}/actions/jobs/{job_id}', 'get', 'actions/get-job-for-workflow-run', 'Get a job for a workflow run', 'rest/actions/workflow-jobs#get-a-job-for-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/jobs/{job_id}/logs', 'get', 'actions/download-job-logs-for-workflow-run', 'Download job logs for a workflow run', 'rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun', 'post', 'actions/re-run-job-for-workflow-run', 'Re-run a job from a workflow run', 'rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run', [], [['enable_debug_logging', bool, False]], ''),
('/repos/{owner}/{repo}/actions/oidc/customization/sub', 'get', 'actions/get-custom-oidc-sub-claim-for-repo', 'Get the customization template for an OIDC subject claim for a repository', 'rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/oidc/customization/sub', 'put', 'actions/set-custom-oidc-sub-claim-for-repo', 'Set the customization template for an OIDC subject claim for a repository', 'rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository', [], [['use_default', bool], ['include_claim_keys', list]], ''),
('/repos/{owner}/{repo}/actions/organization-secrets', 'get', 'actions/list-repo-organization-secrets', 'List repository organization secrets', 'rest/actions/secrets#list-repository-organization-secrets', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/organization-variables', 'get', 'actions/list-repo-organization-variables', 'List repository organization variables', 'rest/actions/variables#list-repository-organization-variables', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/permissions', 'get', 'actions/get-github-actions-permissions-repository', 'Get GitHub Actions permissions for a repository', 'rest/actions/permissions#get-github-actions-permissions-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions', 'put', 'actions/set-github-actions-permissions-repository', 'Set GitHub Actions permissions for a repository', 'rest/actions/permissions#set-github-actions-permissions-for-a-repository', [], [['enabled', bool], ['allowed_actions', str], ['sha_pinning_required', bool]], ''),
('/repos/{owner}/{repo}/actions/permissions/access', 'get', 'actions/get-workflow-access-to-repository', 'Get the level of access for workflows outside of the repository', 'rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/access', 'put', 'actions/set-workflow-access-to-repository', 'Set the level of access for workflows outside of the repository', 'rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository', [], [['access_level', str]], ''),
('/repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention', 'get', 'actions/get-artifact-and-log-retention-settings-repository', 'Get artifact and log retention settings for a repository', 'rest/actions/permissions#get-artifact-and-log-retention-settings-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention', 'put', 'actions/set-artifact-and-log-retention-settings-repository', 'Set artifact and log retention settings for a repository', 'rest/actions/permissions#set-artifact-and-log-retention-settings-for-a-repository', [], [['days', int]], ''),
('/repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval', 'get', 'actions/get-fork-pr-contributor-approval-permissions-repository', 'Get fork PR contributor approval permissions for a repository', 'rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval', 'put', 'actions/set-fork-pr-contributor-approval-permissions-repository', 'Set fork PR contributor approval permissions for a repository', 'rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-a-repository', [], [['approval_policy', str]], ''),
('/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos', 'get', 'actions/get-private-repo-fork-pr-workflows-settings-repository', 'Get private repo fork PR workflow settings for a repository', 'rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos',
'put',
'actions/set-private-repo-fork-pr-workflows-settings-repository',
'Set private repo fork PR workflow settings for a repository',
'rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-a-repository',
[],
[['run_workflows_from_fork_pull_requests', bool], ['send_write_tokens_to_workflows', bool], ['send_secrets_and_variables', bool], ['require_approval_for_fork_pr_workflows', bool]],
''),
('/repos/{owner}/{repo}/actions/permissions/selected-actions', 'get', 'actions/get-allowed-actions-repository', 'Get allowed actions and reusable workflows for a repository', 'rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/selected-actions',
'put',
'actions/set-allowed-actions-repository',
'Set allowed actions and reusable workflows for a repository',
'rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository',
[],
[['github_owned_allowed', bool], ['verified_allowed', bool], ['patterns_allowed', list]],
''),
('/repos/{owner}/{repo}/actions/permissions/workflow', 'get', 'actions/get-github-actions-default-workflow-permissions-repository', 'Get default workflow permissions for a repository', 'rest/actions/permissions#get-default-workflow-permissions-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/permissions/workflow', 'put', 'actions/set-github-actions-default-workflow-permissions-repository', 'Set default workflow permissions for a repository', 'rest/actions/permissions#set-default-workflow-permissions-for-a-repository', [], [['default_workflow_permissions', str], ['can_approve_pull_request_reviews', bool]], ''),
('/repos/{owner}/{repo}/actions/runners', 'get', 'actions/list-self-hosted-runners-for-repo', 'List self-hosted runners for a repository', 'rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository', ['name', 'per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/runners/downloads', 'get', 'actions/list-runner-applications-for-repo', 'List runner applications for a repository', 'rest/actions/self-hosted-runners#list-runner-applications-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/generate-jitconfig',
'post',
'actions/generate-runner-jitconfig-for-repo',
'Create configuration for a just-in-time runner for a repository',
'rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository',
[],
[['name', str], ['runner_group_id', int], ['labels', list], ['work_folder', str, '_work']],
''),
('/repos/{owner}/{repo}/actions/runners/registration-token', 'post', 'actions/create-registration-token-for-repo', 'Create a registration token for a repository', 'rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/remove-token', 'post', 'actions/create-remove-token-for-repo', 'Create a remove token for a repository', 'rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}', 'get', 'actions/get-self-hosted-runner-for-repo', 'Get a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}', 'delete', 'actions/delete-self-hosted-runner-from-repo', 'Delete a self-hosted runner from a repository', 'rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', 'get', 'actions/list-labels-for-self-hosted-runner-for-repo', 'List labels for a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', 'post', 'actions/add-custom-labels-to-self-hosted-runner-for-repo', 'Add custom labels to a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository', [], [['labels', list]], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', 'put', 'actions/set-custom-labels-for-self-hosted-runner-for-repo', 'Set custom labels for a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository', [], [['labels', list]], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', 'delete', 'actions/remove-all-custom-labels-from-self-hosted-runner-for-repo', 'Remove all custom labels from a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}', 'delete', 'actions/remove-custom-label-from-self-hosted-runner-for-repo', 'Remove a custom label from a self-hosted runner for a repository', 'rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/actions/runs', 'get', 'actions/list-workflow-runs-for-repo', 'List workflow runs for a repository', 'rest/actions/workflow-runs#list-workflow-runs-for-a-repository', ['actor', 'branch', 'event', 'status', 'per_page', 'page', 'created', 'exclude_pull_requests', 'check_suite_id', 'head_sha'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}', 'get', 'actions/get-workflow-run', 'Get a workflow run', 'rest/actions/workflow-runs#get-a-workflow-run', ['exclude_pull_requests'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}', 'delete', 'actions/delete-workflow-run', 'Delete a workflow run', 'rest/actions/workflow-runs#delete-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/approvals', 'get', 'actions/get-reviews-for-run', 'Get the review history for a workflow run', 'rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/approve', 'post', 'actions/approve-workflow-run', 'Approve a workflow run for a fork pull request', 'rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', 'get', 'actions/list-workflow-run-artifacts', 'List workflow run artifacts', 'rest/actions/artifacts#list-workflow-run-artifacts', ['per_page', 'page', 'name'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}', 'get', 'actions/get-workflow-run-attempt', 'Get a workflow run attempt', 'rest/actions/workflow-runs#get-a-workflow-run-attempt', ['exclude_pull_requests'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs', 'get', 'actions/list-jobs-for-workflow-run-attempt', 'List jobs for a workflow run attempt', 'rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs', 'get', 'actions/download-workflow-run-attempt-logs', 'Download workflow run attempt logs', 'rest/actions/workflow-runs#download-workflow-run-attempt-logs', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/cancel', 'post', 'actions/cancel-workflow-run', 'Cancel a workflow run', 'rest/actions/workflow-runs#cancel-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule', 'post', 'actions/review-custom-gates-for-run', 'Review custom deployment protection rules for a workflow run', 'rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel', 'post', 'actions/force-cancel-workflow-run', 'Force cancel a workflow run', 'rest/actions/workflow-runs#force-cancel-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/jobs', 'get', 'actions/list-jobs-for-workflow-run', 'List jobs for a workflow run', 'rest/actions/workflow-jobs#list-jobs-for-a-workflow-run', ['filter', 'per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/logs', 'get', 'actions/download-workflow-run-logs', 'Download workflow run logs', 'rest/actions/workflow-runs#download-workflow-run-logs', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/logs', 'delete', 'actions/delete-workflow-run-logs', 'Delete workflow run logs', 'rest/actions/workflow-runs#delete-workflow-run-logs', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments', 'get', 'actions/get-pending-deployments-for-run', 'Get pending deployments for a workflow run', 'rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run', [], [], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments', 'post', 'actions/review-pending-deployments-for-run', 'Review pending deployments for a workflow run', 'rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run', [], [['environment_ids', list], ['state', str], ['comment', str]], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/rerun', 'post', 'actions/re-run-workflow', 'Re-run a workflow', 'rest/actions/workflow-runs#re-run-a-workflow', [], [['enable_debug_logging', bool, False]], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs', 'post', 'actions/re-run-workflow-failed-jobs', 'Re-run failed jobs from a workflow run', 'rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run', [], [['enable_debug_logging', bool, False]], ''),
('/repos/{owner}/{repo}/actions/runs/{run_id}/timing', 'get', 'actions/get-workflow-run-usage', 'Get workflow run usage', 'rest/actions/workflow-runs#get-workflow-run-usage', [], [], ''),
('/repos/{owner}/{repo}/actions/secrets', 'get', 'actions/list-repo-secrets', 'List repository secrets', 'rest/actions/secrets#list-repository-secrets', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/secrets/public-key', 'get', 'actions/get-repo-public-key', 'Get a repository public key', 'rest/actions/secrets#get-a-repository-public-key', [], [], ''),
('/repos/{owner}/{repo}/actions/secrets/{secret_name}', 'get', 'actions/get-repo-secret', 'Get a repository secret', 'rest/actions/secrets#get-a-repository-secret', [], [], ''),
('/repos/{owner}/{repo}/actions/secrets/{secret_name}', 'put', 'actions/create-or-update-repo-secret', 'Create or update a repository secret', 'rest/actions/secrets#create-or-update-a-repository-secret', [], [['encrypted_value', str], ['key_id', str]], ''),
('/repos/{owner}/{repo}/actions/secrets/{secret_name}', 'delete', 'actions/delete-repo-secret', 'Delete a repository secret', 'rest/actions/secrets#delete-a-repository-secret', [], [], ''),
('/repos/{owner}/{repo}/actions/variables', 'get', 'actions/list-repo-variables', 'List repository variables', 'rest/actions/variables#list-repository-variables', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/variables', 'post', 'actions/create-repo-variable', 'Create a repository variable', 'rest/actions/variables#create-a-repository-variable', [], [['name', str], ['value', str]], ''),
('/repos/{owner}/{repo}/actions/variables/{name}', 'get', 'actions/get-repo-variable', 'Get a repository variable', 'rest/actions/variables#get-a-repository-variable', [], [], ''),
('/repos/{owner}/{repo}/actions/variables/{name}', 'patch', 'actions/update-repo-variable', 'Update a repository variable', 'rest/actions/variables#update-a-repository-variable', [], [['name', str], ['value', str]], ''),
('/repos/{owner}/{repo}/actions/variables/{name}', 'delete', 'actions/delete-repo-variable', 'Delete a repository variable', 'rest/actions/variables#delete-a-repository-variable', [], [], ''),
('/repos/{owner}/{repo}/actions/workflows', 'get', 'actions/list-repo-workflows', 'List repository workflows', 'rest/actions/workflows#list-repository-workflows', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}', 'get', 'actions/get-workflow', 'Get a workflow', 'rest/actions/workflows#get-a-workflow', [], [], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable', 'put', 'actions/disable-workflow', 'Disable a workflow', 'rest/actions/workflows#disable-a-workflow', [], [], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', 'post', 'actions/create-workflow-dispatch', 'Create a workflow dispatch event', 'rest/actions/workflows#create-a-workflow-dispatch-event', [], [['ref', str], ['inputs', dict], ['return_run_details', bool]], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable', 'put', 'actions/enable-workflow', 'Enable a workflow', 'rest/actions/workflows#enable-a-workflow', [], [], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', 'get', 'actions/list-workflow-runs', 'List workflow runs for a workflow', 'rest/actions/workflow-runs#list-workflow-runs-for-a-workflow', ['actor', 'branch', 'event', 'status', 'per_page', 'page', 'created', 'exclude_pull_requests', 'check_suite_id', 'head_sha'], [], ''),
('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing', 'get', 'actions/get-workflow-usage', 'Get workflow usage', 'rest/actions/workflows#get-workflow-usage', [], [], ''),
('/repos/{owner}/{repo}/activity', 'get', 'repos/list-activities', 'List repository activities', 'rest/repos/repos#list-repository-activities', ['direction', 'per_page', 'before', 'after', 'ref', 'actor', 'time_period', 'activity_type'], [], ''),
('/repos/{owner}/{repo}/assignees', 'get', 'issues/list-assignees', 'List assignees', 'rest/issues/assignees#list-assignees', ['per_page', 'page'], [], ''),
('/repos/{owner}/{repo}/assignees/{assignee}', 'get', 'issues/check-user-can-be-assigned', 'Check if a user can be assigned', 'rest/issues/assignees#check-if-a-user-can-be-assigned', [], [], ''),
('/repos/{owner}/{repo}/attestations', 'post', 'repos/create-attestation', 'Create an attestation', 'rest/repos/attestations#create-an-attestation', [], [['bundle', dict]], ''),
('/repos/{owner}/{repo}/attestations/{subject_digest}', 'get', 'repos/list-attestations', 'List attestations', 'rest/repos/attestations#list-attestations', ['per_page', 'before', 'after', 'predicate_type'], [], ''),
('/repos/{owner}/{repo}/autolinks', 'get', 'repos/list-autolinks', 'Get all autolinks of a repository', 'rest/repos/autolinks#get-all-autolinks-of-a-repository', [], [], ''),
('/repos/{owner}/{repo}/autolinks', 'post', 'repos/create-autolink', 'Create an autolink reference for a repository', 'rest/repos/autolinks#create-an-autolink-reference-for-a-repository', [], [['key_prefix', str], ['url_template', str], ['is_alphanumeric', bool, True]], ''),
('/repos/{owner}/{repo}/autolinks/{autolink_id}', 'get', 'repos/get-autolink', 'Get an autolink reference of a repository', 'rest/repos/autolinks#get-an-autolink-reference-of-a-repository', [], [], ''),
('/repos/{owner}/{repo}/autolinks/{autolink_id}', 'delete', 'repos/delete-autolink', 'Delete an autolink reference from a repository', 'rest/repos/autolinks#delete-an-autolink-reference-from-a-repository', [], [], ''),
('/repos/{owner}/{repo}/automated-security-fixes', 'get', 'repos/check-automated-security-fixes', 'Check if Dependabot security updates are enabled for a repository', 'rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository', [], [], ''),
('/repos/{owner}/{repo}/automated-security-fixes', 'put', 'repos/enable-automated-security-fixes', 'Enable Dependabot security updates', 'rest/repos/repos#enable-dependabot-security-updates', [], [], ''),