-
Notifications
You must be signed in to change notification settings - Fork 92
/
enum.go
2738 lines (2281 loc) · 184 KB
/
enum.go
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
// Code generated by gen.go; DO NOT EDIT.
package githubv4
// ActorType represents the actor's type.
type ActorType string
// The actor's type.
const (
ActorTypeUser ActorType = "USER" // Indicates a user actor.
ActorTypeTeam ActorType = "TEAM" // Indicates a team actor.
)
// AuditLogOrderField represents properties by which Audit Log connections can be ordered.
type AuditLogOrderField string
// Properties by which Audit Log connections can be ordered.
const (
AuditLogOrderFieldCreatedAt AuditLogOrderField = "CREATED_AT" // Order audit log entries by timestamp.
)
// CheckAnnotationLevel represents represents an annotation's information level.
type CheckAnnotationLevel string
// Represents an annotation's information level.
const (
CheckAnnotationLevelFailure CheckAnnotationLevel = "FAILURE" // An annotation indicating an inescapable error.
CheckAnnotationLevelNotice CheckAnnotationLevel = "NOTICE" // An annotation indicating some information.
CheckAnnotationLevelWarning CheckAnnotationLevel = "WARNING" // An annotation indicating an ignorable error.
)
// CheckConclusionState represents the possible states for a check suite or run conclusion.
type CheckConclusionState string
// The possible states for a check suite or run conclusion.
const (
CheckConclusionStateActionRequired CheckConclusionState = "ACTION_REQUIRED" // The check suite or run requires action.
CheckConclusionStateTimedOut CheckConclusionState = "TIMED_OUT" // The check suite or run has timed out.
CheckConclusionStateCancelled CheckConclusionState = "CANCELLED" // The check suite or run has been cancelled.
CheckConclusionStateFailure CheckConclusionState = "FAILURE" // The check suite or run has failed.
CheckConclusionStateSuccess CheckConclusionState = "SUCCESS" // The check suite or run has succeeded.
CheckConclusionStateNeutral CheckConclusionState = "NEUTRAL" // The check suite or run was neutral.
CheckConclusionStateSkipped CheckConclusionState = "SKIPPED" // The check suite or run was skipped.
CheckConclusionStateStartupFailure CheckConclusionState = "STARTUP_FAILURE" // The check suite or run has failed at startup.
CheckConclusionStateStale CheckConclusionState = "STALE" // The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion.
)
// CheckRunState represents the possible states of a check run in a status rollup.
type CheckRunState string
// The possible states of a check run in a status rollup.
const (
CheckRunStateActionRequired CheckRunState = "ACTION_REQUIRED" // The check run requires action.
CheckRunStateCancelled CheckRunState = "CANCELLED" // The check run has been cancelled.
CheckRunStateCompleted CheckRunState = "COMPLETED" // The check run has been completed.
CheckRunStateFailure CheckRunState = "FAILURE" // The check run has failed.
CheckRunStateInProgress CheckRunState = "IN_PROGRESS" // The check run is in progress.
CheckRunStateNeutral CheckRunState = "NEUTRAL" // The check run was neutral.
CheckRunStatePending CheckRunState = "PENDING" // The check run is in pending state.
CheckRunStateQueued CheckRunState = "QUEUED" // The check run has been queued.
CheckRunStateSkipped CheckRunState = "SKIPPED" // The check run was skipped.
CheckRunStateStale CheckRunState = "STALE" // The check run was marked stale by GitHub. Only GitHub can use this conclusion.
CheckRunStateStartupFailure CheckRunState = "STARTUP_FAILURE" // The check run has failed at startup.
CheckRunStateSuccess CheckRunState = "SUCCESS" // The check run has succeeded.
CheckRunStateTimedOut CheckRunState = "TIMED_OUT" // The check run has timed out.
CheckRunStateWaiting CheckRunState = "WAITING" // The check run is in waiting state.
)
// CheckRunType represents the possible types of check runs.
type CheckRunType string
// The possible types of check runs.
const (
CheckRunTypeAll CheckRunType = "ALL" // Every check run available.
CheckRunTypeLatest CheckRunType = "LATEST" // The latest check run.
)
// CheckStatusState represents the possible states for a check suite or run status.
type CheckStatusState string
// The possible states for a check suite or run status.
const (
CheckStatusStateRequested CheckStatusState = "REQUESTED" // The check suite or run has been requested.
CheckStatusStateQueued CheckStatusState = "QUEUED" // The check suite or run has been queued.
CheckStatusStateInProgress CheckStatusState = "IN_PROGRESS" // The check suite or run is in progress.
CheckStatusStateCompleted CheckStatusState = "COMPLETED" // The check suite or run has been completed.
CheckStatusStateWaiting CheckStatusState = "WAITING" // The check suite or run is in waiting state.
CheckStatusStatePending CheckStatusState = "PENDING" // The check suite or run is in pending state.
)
// CollaboratorAffiliation represents collaborators affiliation level with a subject.
type CollaboratorAffiliation string
// Collaborators affiliation level with a subject.
const (
CollaboratorAffiliationOutside CollaboratorAffiliation = "OUTSIDE" // All outside collaborators of an organization-owned subject.
CollaboratorAffiliationDirect CollaboratorAffiliation = "DIRECT" // All collaborators with permissions to an organization-owned subject, regardless of organization membership status.
CollaboratorAffiliationAll CollaboratorAffiliation = "ALL" // All collaborators the authenticated user can see.
)
// CommentAuthorAssociation represents a comment author association with repository.
type CommentAuthorAssociation string
// A comment author association with repository.
const (
CommentAuthorAssociationMember CommentAuthorAssociation = "MEMBER" // Author is a member of the organization that owns the repository.
CommentAuthorAssociationOwner CommentAuthorAssociation = "OWNER" // Author is the owner of the repository.
CommentAuthorAssociationMannequin CommentAuthorAssociation = "MANNEQUIN" // Author is a placeholder for an unclaimed user.
CommentAuthorAssociationCollaborator CommentAuthorAssociation = "COLLABORATOR" // Author has been invited to collaborate on the repository.
CommentAuthorAssociationContributor CommentAuthorAssociation = "CONTRIBUTOR" // Author has previously committed to the repository.
CommentAuthorAssociationFirstTimeContributor CommentAuthorAssociation = "FIRST_TIME_CONTRIBUTOR" // Author has not previously committed to the repository.
CommentAuthorAssociationFirstTimer CommentAuthorAssociation = "FIRST_TIMER" // Author has not previously committed to GitHub.
CommentAuthorAssociationNone CommentAuthorAssociation = "NONE" // Author has no association with the repository.
)
// CommentCannotUpdateReason represents the possible errors that will prevent a user from updating a comment.
type CommentCannotUpdateReason string
// The possible errors that will prevent a user from updating a comment.
const (
CommentCannotUpdateReasonArchived CommentCannotUpdateReason = "ARCHIVED" // Unable to create comment because repository is archived.
CommentCannotUpdateReasonInsufficientAccess CommentCannotUpdateReason = "INSUFFICIENT_ACCESS" // You must be the author or have write access to this repository to update this comment.
CommentCannotUpdateReasonLocked CommentCannotUpdateReason = "LOCKED" // Unable to create comment because issue is locked.
CommentCannotUpdateReasonLoginRequired CommentCannotUpdateReason = "LOGIN_REQUIRED" // You must be logged in to update this comment.
CommentCannotUpdateReasonMaintenance CommentCannotUpdateReason = "MAINTENANCE" // Repository is under maintenance.
CommentCannotUpdateReasonVerifiedEmailRequired CommentCannotUpdateReason = "VERIFIED_EMAIL_REQUIRED" // At least one email address must be verified to update this comment.
CommentCannotUpdateReasonDenied CommentCannotUpdateReason = "DENIED" // You cannot update this comment.
)
// CommitContributionOrderField represents properties by which commit contribution connections can be ordered.
type CommitContributionOrderField string
// Properties by which commit contribution connections can be ordered.
const (
CommitContributionOrderFieldOccurredAt CommitContributionOrderField = "OCCURRED_AT" // Order commit contributions by when they were made.
CommitContributionOrderFieldCommitCount CommitContributionOrderField = "COMMIT_COUNT" // Order commit contributions by how many commits they represent.
)
// ComparisonStatus represents the status of a git comparison between two refs.
type ComparisonStatus string
// The status of a git comparison between two refs.
const (
ComparisonStatusDiverged ComparisonStatus = "DIVERGED" // The head ref is both ahead and behind of the base ref, indicating git history has diverged.
ComparisonStatusAhead ComparisonStatus = "AHEAD" // The head ref is ahead of the base ref.
ComparisonStatusBehind ComparisonStatus = "BEHIND" // The head ref is behind the base ref.
ComparisonStatusIdentical ComparisonStatus = "IDENTICAL" // The head ref and base ref are identical.
)
// ContributionLevel represents varying levels of contributions from none to many.
type ContributionLevel string
// Varying levels of contributions from none to many.
const (
ContributionLevelNone ContributionLevel = "NONE" // No contributions occurred.
ContributionLevelFirstQuartile ContributionLevel = "FIRST_QUARTILE" // Lowest 25% of days of contributions.
ContributionLevelSecondQuartile ContributionLevel = "SECOND_QUARTILE" // Second lowest 25% of days of contributions. More contributions than the first quartile.
ContributionLevelThirdQuartile ContributionLevel = "THIRD_QUARTILE" // Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile.
ContributionLevelFourthQuartile ContributionLevel = "FOURTH_QUARTILE" // Highest 25% of days of contributions. More contributions than the third quartile.
)
// DefaultRepositoryPermissionField represents the possible base permissions for repositories.
type DefaultRepositoryPermissionField string
// The possible base permissions for repositories.
const (
DefaultRepositoryPermissionFieldNone DefaultRepositoryPermissionField = "NONE" // No access.
DefaultRepositoryPermissionFieldRead DefaultRepositoryPermissionField = "READ" // Can read repos by default.
DefaultRepositoryPermissionFieldWrite DefaultRepositoryPermissionField = "WRITE" // Can read and write repos by default.
DefaultRepositoryPermissionFieldAdmin DefaultRepositoryPermissionField = "ADMIN" // Can read, write, and administrate repos by default.
)
// DependencyGraphEcosystem represents the possible ecosystems of a dependency graph package.
type DependencyGraphEcosystem string
// The possible ecosystems of a dependency graph package.
const (
DependencyGraphEcosystemRubygems DependencyGraphEcosystem = "RUBYGEMS" // Ruby gems hosted at RubyGems.org.
DependencyGraphEcosystemNpm DependencyGraphEcosystem = "NPM" // JavaScript packages hosted at npmjs.com.
DependencyGraphEcosystemPip DependencyGraphEcosystem = "PIP" // Python packages hosted at PyPI.org.
DependencyGraphEcosystemMaven DependencyGraphEcosystem = "MAVEN" // Java artifacts hosted at the Maven central repository.
DependencyGraphEcosystemNuget DependencyGraphEcosystem = "NUGET" // .NET packages hosted at the NuGet Gallery.
DependencyGraphEcosystemComposer DependencyGraphEcosystem = "COMPOSER" // PHP packages hosted at packagist.org.
DependencyGraphEcosystemGo DependencyGraphEcosystem = "GO" // Go modules.
DependencyGraphEcosystemActions DependencyGraphEcosystem = "ACTIONS" // GitHub Actions.
DependencyGraphEcosystemRust DependencyGraphEcosystem = "RUST" // Rust crates.
DependencyGraphEcosystemPub DependencyGraphEcosystem = "PUB" // Dart packages hosted at pub.dev.
DependencyGraphEcosystemSwift DependencyGraphEcosystem = "SWIFT" // Swift packages.
)
// DeploymentOrderField represents properties by which deployment connections can be ordered.
type DeploymentOrderField string
// Properties by which deployment connections can be ordered.
const (
DeploymentOrderFieldCreatedAt DeploymentOrderField = "CREATED_AT" // Order collection by creation time.
)
// DeploymentProtectionRuleType represents the possible protection rule types.
type DeploymentProtectionRuleType string
// The possible protection rule types.
const (
DeploymentProtectionRuleTypeRequiredReviewers DeploymentProtectionRuleType = "REQUIRED_REVIEWERS" // Required reviewers.
DeploymentProtectionRuleTypeWaitTimer DeploymentProtectionRuleType = "WAIT_TIMER" // Wait timer.
DeploymentProtectionRuleTypeBranchPolicy DeploymentProtectionRuleType = "BRANCH_POLICY" // Branch policy.
)
// DeploymentReviewState represents the possible states for a deployment review.
type DeploymentReviewState string
// The possible states for a deployment review.
const (
DeploymentReviewStateApproved DeploymentReviewState = "APPROVED" // The deployment was approved.
DeploymentReviewStateRejected DeploymentReviewState = "REJECTED" // The deployment was rejected.
)
// DeploymentState represents the possible states in which a deployment can be.
type DeploymentState string
// The possible states in which a deployment can be.
const (
DeploymentStateAbandoned DeploymentState = "ABANDONED" // The pending deployment was not updated after 30 minutes.
DeploymentStateActive DeploymentState = "ACTIVE" // The deployment is currently active.
DeploymentStateDestroyed DeploymentState = "DESTROYED" // An inactive transient deployment.
DeploymentStateError DeploymentState = "ERROR" // The deployment experienced an error.
DeploymentStateFailure DeploymentState = "FAILURE" // The deployment has failed.
DeploymentStateInactive DeploymentState = "INACTIVE" // The deployment is inactive.
DeploymentStatePending DeploymentState = "PENDING" // The deployment is pending.
DeploymentStateSuccess DeploymentState = "SUCCESS" // The deployment was successful.
DeploymentStateQueued DeploymentState = "QUEUED" // The deployment has queued.
DeploymentStateInProgress DeploymentState = "IN_PROGRESS" // The deployment is in progress.
DeploymentStateWaiting DeploymentState = "WAITING" // The deployment is waiting.
)
// DeploymentStatusState represents the possible states for a deployment status.
type DeploymentStatusState string
// The possible states for a deployment status.
const (
DeploymentStatusStatePending DeploymentStatusState = "PENDING" // The deployment is pending.
DeploymentStatusStateSuccess DeploymentStatusState = "SUCCESS" // The deployment was successful.
DeploymentStatusStateFailure DeploymentStatusState = "FAILURE" // The deployment has failed.
DeploymentStatusStateInactive DeploymentStatusState = "INACTIVE" // The deployment is inactive.
DeploymentStatusStateError DeploymentStatusState = "ERROR" // The deployment experienced an error.
DeploymentStatusStateQueued DeploymentStatusState = "QUEUED" // The deployment is queued.
DeploymentStatusStateInProgress DeploymentStatusState = "IN_PROGRESS" // The deployment is in progress.
DeploymentStatusStateWaiting DeploymentStatusState = "WAITING" // The deployment is waiting.
)
// DiffSide represents the possible sides of a diff.
type DiffSide string
// The possible sides of a diff.
const (
DiffSideLeft DiffSide = "LEFT" // The left side of the diff.
DiffSideRight DiffSide = "RIGHT" // The right side of the diff.
)
// DiscussionCloseReason represents the possible reasons for closing a discussion.
type DiscussionCloseReason string
// The possible reasons for closing a discussion.
const (
DiscussionCloseReasonResolved DiscussionCloseReason = "RESOLVED" // The discussion has been resolved.
DiscussionCloseReasonOutdated DiscussionCloseReason = "OUTDATED" // The discussion is no longer relevant.
DiscussionCloseReasonDuplicate DiscussionCloseReason = "DUPLICATE" // The discussion is a duplicate of another.
)
// DiscussionOrderField represents properties by which discussion connections can be ordered.
type DiscussionOrderField string
// Properties by which discussion connections can be ordered.
const (
DiscussionOrderFieldCreatedAt DiscussionOrderField = "CREATED_AT" // Order discussions by creation time.
DiscussionOrderFieldUpdatedAt DiscussionOrderField = "UPDATED_AT" // Order discussions by most recent modification time.
)
// DiscussionPollOptionOrderField represents properties by which discussion poll option connections can be ordered.
type DiscussionPollOptionOrderField string
// Properties by which discussion poll option connections can be ordered.
const (
DiscussionPollOptionOrderFieldAuthoredOrder DiscussionPollOptionOrderField = "AUTHORED_ORDER" // Order poll options by the order that the poll author specified when creating the poll.
DiscussionPollOptionOrderFieldVoteCount DiscussionPollOptionOrderField = "VOTE_COUNT" // Order poll options by the number of votes it has.
)
// DiscussionState represents the possible states of a discussion.
type DiscussionState string
// The possible states of a discussion.
const (
DiscussionStateOpen DiscussionState = "OPEN" // A discussion that is open.
DiscussionStateClosed DiscussionState = "CLOSED" // A discussion that has been closed.
)
// DiscussionStateReason represents the possible state reasons of a discussion.
type DiscussionStateReason string
// The possible state reasons of a discussion.
const (
DiscussionStateReasonResolved DiscussionStateReason = "RESOLVED" // The discussion has been resolved.
DiscussionStateReasonOutdated DiscussionStateReason = "OUTDATED" // The discussion is no longer relevant.
DiscussionStateReasonDuplicate DiscussionStateReason = "DUPLICATE" // The discussion is a duplicate of another.
DiscussionStateReasonReopened DiscussionStateReason = "REOPENED" // The discussion was reopened.
)
// DismissReason represents the possible reasons that a Dependabot alert was dismissed.
type DismissReason string
// The possible reasons that a Dependabot alert was dismissed.
const (
DismissReasonFixStarted DismissReason = "FIX_STARTED" // A fix has already been started.
DismissReasonNoBandwidth DismissReason = "NO_BANDWIDTH" // No bandwidth to fix this.
DismissReasonTolerableRisk DismissReason = "TOLERABLE_RISK" // Risk is tolerable to this project.
DismissReasonInaccurate DismissReason = "INACCURATE" // This alert is inaccurate or incorrect.
DismissReasonNotUsed DismissReason = "NOT_USED" // Vulnerable code is not actually used.
)
// EnterpriseAdministratorInvitationOrderField represents properties by which enterprise administrator invitation connections can be ordered.
type EnterpriseAdministratorInvitationOrderField string
// Properties by which enterprise administrator invitation connections can be ordered.
const (
EnterpriseAdministratorInvitationOrderFieldCreatedAt EnterpriseAdministratorInvitationOrderField = "CREATED_AT" // Order enterprise administrator member invitations by creation time.
)
// EnterpriseAdministratorRole represents the possible administrator roles in an enterprise account.
type EnterpriseAdministratorRole string
// The possible administrator roles in an enterprise account.
const (
EnterpriseAdministratorRoleOwner EnterpriseAdministratorRole = "OWNER" // Represents an owner of the enterprise account.
EnterpriseAdministratorRoleBillingManager EnterpriseAdministratorRole = "BILLING_MANAGER" // Represents a billing manager of the enterprise account.
)
// EnterpriseAllowPrivateRepositoryForkingPolicyValue represents the possible values for the enterprise allow private repository forking policy value.
type EnterpriseAllowPrivateRepositoryForkingPolicyValue string
// The possible values for the enterprise allow private repository forking policy value.
const (
EnterpriseAllowPrivateRepositoryForkingPolicyValueEnterpriseOrganizations EnterpriseAllowPrivateRepositoryForkingPolicyValue = "ENTERPRISE_ORGANIZATIONS" // Members can fork a repository to an organization within this enterprise.
EnterpriseAllowPrivateRepositoryForkingPolicyValueSameOrganization EnterpriseAllowPrivateRepositoryForkingPolicyValue = "SAME_ORGANIZATION" // Members can fork a repository only within the same organization (intra-org).
EnterpriseAllowPrivateRepositoryForkingPolicyValueSameOrganizationUserAccounts EnterpriseAllowPrivateRepositoryForkingPolicyValue = "SAME_ORGANIZATION_USER_ACCOUNTS" // Members can fork a repository to their user account or within the same organization.
EnterpriseAllowPrivateRepositoryForkingPolicyValueEnterpriseOrganizationsUserAccounts EnterpriseAllowPrivateRepositoryForkingPolicyValue = "ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS" // Members can fork a repository to their enterprise-managed user account or an organization inside this enterprise.
EnterpriseAllowPrivateRepositoryForkingPolicyValueUserAccounts EnterpriseAllowPrivateRepositoryForkingPolicyValue = "USER_ACCOUNTS" // Members can fork a repository to their user account.
EnterpriseAllowPrivateRepositoryForkingPolicyValueEverywhere EnterpriseAllowPrivateRepositoryForkingPolicyValue = "EVERYWHERE" // Members can fork a repository to their user account or an organization, either inside or outside of this enterprise.
)
// EnterpriseDefaultRepositoryPermissionSettingValue represents the possible values for the enterprise base repository permission setting.
type EnterpriseDefaultRepositoryPermissionSettingValue string
// The possible values for the enterprise base repository permission setting.
const (
EnterpriseDefaultRepositoryPermissionSettingValueNoPolicy EnterpriseDefaultRepositoryPermissionSettingValue = "NO_POLICY" // Organizations in the enterprise choose base repository permissions for their members.
EnterpriseDefaultRepositoryPermissionSettingValueAdmin EnterpriseDefaultRepositoryPermissionSettingValue = "ADMIN" // Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories.
EnterpriseDefaultRepositoryPermissionSettingValueWrite EnterpriseDefaultRepositoryPermissionSettingValue = "WRITE" // Organization members will be able to clone, pull, and push all organization repositories.
EnterpriseDefaultRepositoryPermissionSettingValueRead EnterpriseDefaultRepositoryPermissionSettingValue = "READ" // Organization members will be able to clone and pull all organization repositories.
EnterpriseDefaultRepositoryPermissionSettingValueNone EnterpriseDefaultRepositoryPermissionSettingValue = "NONE" // Organization members will only be able to clone and pull public repositories.
)
// EnterpriseEnabledDisabledSettingValue represents the possible values for an enabled/disabled enterprise setting.
type EnterpriseEnabledDisabledSettingValue string
// The possible values for an enabled/disabled enterprise setting.
const (
EnterpriseEnabledDisabledSettingValueEnabled EnterpriseEnabledDisabledSettingValue = "ENABLED" // The setting is enabled for organizations in the enterprise.
EnterpriseEnabledDisabledSettingValueDisabled EnterpriseEnabledDisabledSettingValue = "DISABLED" // The setting is disabled for organizations in the enterprise.
EnterpriseEnabledDisabledSettingValueNoPolicy EnterpriseEnabledDisabledSettingValue = "NO_POLICY" // There is no policy set for organizations in the enterprise.
)
// EnterpriseEnabledSettingValue represents the possible values for an enabled/no policy enterprise setting.
type EnterpriseEnabledSettingValue string
// The possible values for an enabled/no policy enterprise setting.
const (
EnterpriseEnabledSettingValueEnabled EnterpriseEnabledSettingValue = "ENABLED" // The setting is enabled for organizations in the enterprise.
EnterpriseEnabledSettingValueNoPolicy EnterpriseEnabledSettingValue = "NO_POLICY" // There is no policy set for organizations in the enterprise.
)
// EnterpriseMemberInvitationOrderField represents properties by which enterprise member invitation connections can be ordered.
type EnterpriseMemberInvitationOrderField string
// Properties by which enterprise member invitation connections can be ordered.
const (
EnterpriseMemberInvitationOrderFieldCreatedAt EnterpriseMemberInvitationOrderField = "CREATED_AT" // Order enterprise member invitations by creation time.
)
// EnterpriseMemberOrderField represents properties by which enterprise member connections can be ordered.
type EnterpriseMemberOrderField string
// Properties by which enterprise member connections can be ordered.
const (
EnterpriseMemberOrderFieldLogin EnterpriseMemberOrderField = "LOGIN" // Order enterprise members by login.
EnterpriseMemberOrderFieldCreatedAt EnterpriseMemberOrderField = "CREATED_AT" // Order enterprise members by creation time.
)
// EnterpriseMembersCanCreateRepositoriesSettingValue represents the possible values for the enterprise members can create repositories setting.
type EnterpriseMembersCanCreateRepositoriesSettingValue string
// The possible values for the enterprise members can create repositories setting.
const (
EnterpriseMembersCanCreateRepositoriesSettingValueNoPolicy EnterpriseMembersCanCreateRepositoriesSettingValue = "NO_POLICY" // Organization owners choose whether to allow members to create repositories.
EnterpriseMembersCanCreateRepositoriesSettingValueAll EnterpriseMembersCanCreateRepositoriesSettingValue = "ALL" // Members will be able to create public and private repositories.
EnterpriseMembersCanCreateRepositoriesSettingValuePublic EnterpriseMembersCanCreateRepositoriesSettingValue = "PUBLIC" // Members will be able to create only public repositories.
EnterpriseMembersCanCreateRepositoriesSettingValuePrivate EnterpriseMembersCanCreateRepositoriesSettingValue = "PRIVATE" // Members will be able to create only private repositories.
EnterpriseMembersCanCreateRepositoriesSettingValueDisabled EnterpriseMembersCanCreateRepositoriesSettingValue = "DISABLED" // Members will not be able to create public or private repositories.
)
// EnterpriseMembersCanMakePurchasesSettingValue represents the possible values for the members can make purchases setting.
type EnterpriseMembersCanMakePurchasesSettingValue string
// The possible values for the members can make purchases setting.
const (
EnterpriseMembersCanMakePurchasesSettingValueEnabled EnterpriseMembersCanMakePurchasesSettingValue = "ENABLED" // The setting is enabled for organizations in the enterprise.
EnterpriseMembersCanMakePurchasesSettingValueDisabled EnterpriseMembersCanMakePurchasesSettingValue = "DISABLED" // The setting is disabled for organizations in the enterprise.
)
// EnterpriseMembershipType represents the possible values we have for filtering Platform::Objects::User#enterprises.
type EnterpriseMembershipType string
// The possible values we have for filtering Platform::Objects::User#enterprises.
const (
EnterpriseMembershipTypeAll EnterpriseMembershipType = "ALL" // Returns all enterprises in which the user is a member, admin, or billing manager.
EnterpriseMembershipTypeAdmin EnterpriseMembershipType = "ADMIN" // Returns all enterprises in which the user is an admin.
EnterpriseMembershipTypeBillingManager EnterpriseMembershipType = "BILLING_MANAGER" // Returns all enterprises in which the user is a billing manager.
EnterpriseMembershipTypeOrgMembership EnterpriseMembershipType = "ORG_MEMBERSHIP" // Returns all enterprises in which the user is a member of an org that is owned by the enterprise.
)
// EnterpriseOrderField represents properties by which enterprise connections can be ordered.
type EnterpriseOrderField string
// Properties by which enterprise connections can be ordered.
const (
EnterpriseOrderFieldName EnterpriseOrderField = "NAME" // Order enterprises by name.
)
// EnterpriseServerInstallationOrderField represents properties by which Enterprise Server installation connections can be ordered.
type EnterpriseServerInstallationOrderField string
// Properties by which Enterprise Server installation connections can be ordered.
const (
EnterpriseServerInstallationOrderFieldHostName EnterpriseServerInstallationOrderField = "HOST_NAME" // Order Enterprise Server installations by host name.
EnterpriseServerInstallationOrderFieldCustomerName EnterpriseServerInstallationOrderField = "CUSTOMER_NAME" // Order Enterprise Server installations by customer name.
EnterpriseServerInstallationOrderFieldCreatedAt EnterpriseServerInstallationOrderField = "CREATED_AT" // Order Enterprise Server installations by creation time.
)
// EnterpriseServerUserAccountEmailOrderField represents properties by which Enterprise Server user account email connections can be ordered.
type EnterpriseServerUserAccountEmailOrderField string
// Properties by which Enterprise Server user account email connections can be ordered.
const (
EnterpriseServerUserAccountEmailOrderFieldEmail EnterpriseServerUserAccountEmailOrderField = "EMAIL" // Order emails by email.
)
// EnterpriseServerUserAccountOrderField represents properties by which Enterprise Server user account connections can be ordered.
type EnterpriseServerUserAccountOrderField string
// Properties by which Enterprise Server user account connections can be ordered.
const (
EnterpriseServerUserAccountOrderFieldLogin EnterpriseServerUserAccountOrderField = "LOGIN" // Order user accounts by login.
EnterpriseServerUserAccountOrderFieldRemoteCreatedAt EnterpriseServerUserAccountOrderField = "REMOTE_CREATED_AT" // Order user accounts by creation time on the Enterprise Server installation.
)
// EnterpriseServerUserAccountsUploadOrderField represents properties by which Enterprise Server user accounts upload connections can be ordered.
type EnterpriseServerUserAccountsUploadOrderField string
// Properties by which Enterprise Server user accounts upload connections can be ordered.
const (
EnterpriseServerUserAccountsUploadOrderFieldCreatedAt EnterpriseServerUserAccountsUploadOrderField = "CREATED_AT" // Order user accounts uploads by creation time.
)
// EnterpriseServerUserAccountsUploadSyncState represents synchronization state of the Enterprise Server user accounts upload.
type EnterpriseServerUserAccountsUploadSyncState string
// Synchronization state of the Enterprise Server user accounts upload.
const (
EnterpriseServerUserAccountsUploadSyncStatePending EnterpriseServerUserAccountsUploadSyncState = "PENDING" // The synchronization of the upload is pending.
EnterpriseServerUserAccountsUploadSyncStateSuccess EnterpriseServerUserAccountsUploadSyncState = "SUCCESS" // The synchronization of the upload succeeded.
EnterpriseServerUserAccountsUploadSyncStateFailure EnterpriseServerUserAccountsUploadSyncState = "FAILURE" // The synchronization of the upload failed.
)
// EnterpriseUserAccountMembershipRole represents the possible roles for enterprise membership.
type EnterpriseUserAccountMembershipRole string
// The possible roles for enterprise membership.
const (
EnterpriseUserAccountMembershipRoleMember EnterpriseUserAccountMembershipRole = "MEMBER" // The user is a member of an organization in the enterprise.
EnterpriseUserAccountMembershipRoleOwner EnterpriseUserAccountMembershipRole = "OWNER" // The user is an owner of an organization in the enterprise.
EnterpriseUserAccountMembershipRoleUnaffiliated EnterpriseUserAccountMembershipRole = "UNAFFILIATED" // The user is not an owner of the enterprise, and not a member or owner of any organizations in the enterprise; only for EMU-enabled enterprises.
)
// EnterpriseUserDeployment represents the possible GitHub Enterprise deployments where this user can exist.
type EnterpriseUserDeployment string
// The possible GitHub Enterprise deployments where this user can exist.
const (
EnterpriseUserDeploymentCloud EnterpriseUserDeployment = "CLOUD" // The user is part of a GitHub Enterprise Cloud deployment.
EnterpriseUserDeploymentServer EnterpriseUserDeployment = "SERVER" // The user is part of a GitHub Enterprise Server deployment.
)
// EnvironmentOrderField represents properties by which environments connections can be ordered.
type EnvironmentOrderField string
// Properties by which environments connections can be ordered.
const (
EnvironmentOrderFieldName EnvironmentOrderField = "NAME" // Order environments by name.
)
// EnvironmentPinnedFilterField represents properties by which environments connections can be ordered.
type EnvironmentPinnedFilterField string
// Properties by which environments connections can be ordered.
const (
EnvironmentPinnedFilterFieldAll EnvironmentPinnedFilterField = "ALL" // All environments will be returned.
EnvironmentPinnedFilterFieldOnly EnvironmentPinnedFilterField = "ONLY" // Only pinned environment will be returned.
EnvironmentPinnedFilterFieldNone EnvironmentPinnedFilterField = "NONE" // Environments exclude pinned will be returned.
)
// FileViewedState represents the possible viewed states of a file .
type FileViewedState string
// The possible viewed states of a file .
const (
FileViewedStateDismissed FileViewedState = "DISMISSED" // The file has new changes since last viewed.
FileViewedStateViewed FileViewedState = "VIEWED" // The file has been marked as viewed.
FileViewedStateUnviewed FileViewedState = "UNVIEWED" // The file has not been marked as viewed.
)
// FundingPlatform represents the possible funding platforms for repository funding links.
type FundingPlatform string
// The possible funding platforms for repository funding links.
const (
FundingPlatformGitHub FundingPlatform = "GITHUB" // GitHub funding platform.
FundingPlatformPatreon FundingPlatform = "PATREON" // Patreon funding platform.
FundingPlatformOpenCollective FundingPlatform = "OPEN_COLLECTIVE" // Open Collective funding platform.
FundingPlatformKoFi FundingPlatform = "KO_FI" // Ko-fi funding platform.
FundingPlatformTidelift FundingPlatform = "TIDELIFT" // Tidelift funding platform.
FundingPlatformCommunityBridge FundingPlatform = "COMMUNITY_BRIDGE" // Community Bridge funding platform.
FundingPlatformLiberapay FundingPlatform = "LIBERAPAY" // Liberapay funding platform.
FundingPlatformIssueHunt FundingPlatform = "ISSUEHUNT" // IssueHunt funding platform.
FundingPlatformLFXCrowdfunding FundingPlatform = "LFX_CROWDFUNDING" // LFX Crowdfunding funding platform.
FundingPlatformPolar FundingPlatform = "POLAR" // Polar funding platform.
FundingPlatformBuyMeACoffee FundingPlatform = "BUY_ME_A_COFFEE" // Buy Me a Coffee funding platform.
FundingPlatformCustom FundingPlatform = "CUSTOM" // Custom funding platform.
)
// GistOrderField represents properties by which gist connections can be ordered.
type GistOrderField string
// Properties by which gist connections can be ordered.
const (
GistOrderFieldCreatedAt GistOrderField = "CREATED_AT" // Order gists by creation time.
GistOrderFieldUpdatedAt GistOrderField = "UPDATED_AT" // Order gists by update time.
GistOrderFieldPushedAt GistOrderField = "PUSHED_AT" // Order gists by push time.
)
// GistPrivacy represents the privacy of a Gist.
type GistPrivacy string
// The privacy of a Gist.
const (
GistPrivacyPublic GistPrivacy = "PUBLIC" // Public.
GistPrivacySecret GistPrivacy = "SECRET" // Secret.
GistPrivacyAll GistPrivacy = "ALL" // Gists that are public and secret.
)
// GitSignatureState represents the state of a Git signature.
type GitSignatureState string
// The state of a Git signature.
const (
GitSignatureStateValid GitSignatureState = "VALID" // Valid signature and verified by GitHub.
GitSignatureStateInvalid GitSignatureState = "INVALID" // Invalid signature.
GitSignatureStateMalformedSig GitSignatureState = "MALFORMED_SIG" // Malformed signature.
GitSignatureStateUnknownKey GitSignatureState = "UNKNOWN_KEY" // Key used for signing not known to GitHub.
GitSignatureStateBadEmail GitSignatureState = "BAD_EMAIL" // Invalid email used for signing.
GitSignatureStateUnverifiedEmail GitSignatureState = "UNVERIFIED_EMAIL" // Email used for signing unverified on GitHub.
GitSignatureStateNoUser GitSignatureState = "NO_USER" // Email used for signing not known to GitHub.
GitSignatureStateUnknownSigType GitSignatureState = "UNKNOWN_SIG_TYPE" // Unknown signature type.
GitSignatureStateUnsigned GitSignatureState = "UNSIGNED" // Unsigned.
GitSignatureStateGpgverifyUnavailable GitSignatureState = "GPGVERIFY_UNAVAILABLE" // Internal error - the GPG verification service is unavailable at the moment.
GitSignatureStateGpgverifyError GitSignatureState = "GPGVERIFY_ERROR" // Internal error - the GPG verification service misbehaved.
GitSignatureStateNotSigningKey GitSignatureState = "NOT_SIGNING_KEY" // The usage flags for the key that signed this don't allow signing.
GitSignatureStateExpiredKey GitSignatureState = "EXPIRED_KEY" // Signing key expired.
GitSignatureStateOcspPending GitSignatureState = "OCSP_PENDING" // Valid signature, pending certificate revocation checking.
GitSignatureStateOcspError GitSignatureState = "OCSP_ERROR" // Valid signature, though certificate revocation check failed.
GitSignatureStateBadCert GitSignatureState = "BAD_CERT" // The signing certificate or its chain could not be verified.
GitSignatureStateOcspRevoked GitSignatureState = "OCSP_REVOKED" // One or more certificates in chain has been revoked.
)
// IdentityProviderConfigurationState represents the possible states in which authentication can be configured with an identity provider.
type IdentityProviderConfigurationState string
// The possible states in which authentication can be configured with an identity provider.
const (
IdentityProviderConfigurationStateEnforced IdentityProviderConfigurationState = "ENFORCED" // Authentication with an identity provider is configured and enforced.
IdentityProviderConfigurationStateConfigured IdentityProviderConfigurationState = "CONFIGURED" // Authentication with an identity provider is configured but not enforced.
IdentityProviderConfigurationStateUnconfigured IdentityProviderConfigurationState = "UNCONFIGURED" // Authentication with an identity provider is not configured.
)
// IpAllowListEnabledSettingValue represents the possible values for the IP allow list enabled setting.
type IpAllowListEnabledSettingValue string
// The possible values for the IP allow list enabled setting.
const (
IpAllowListEnabledSettingValueEnabled IpAllowListEnabledSettingValue = "ENABLED" // The setting is enabled for the owner.
IpAllowListEnabledSettingValueDisabled IpAllowListEnabledSettingValue = "DISABLED" // The setting is disabled for the owner.
)
// IpAllowListEntryOrderField represents properties by which IP allow list entry connections can be ordered.
type IpAllowListEntryOrderField string
// Properties by which IP allow list entry connections can be ordered.
const (
IpAllowListEntryOrderFieldCreatedAt IpAllowListEntryOrderField = "CREATED_AT" // Order IP allow list entries by creation time.
IpAllowListEntryOrderFieldAllowListValue IpAllowListEntryOrderField = "ALLOW_LIST_VALUE" // Order IP allow list entries by the allow list value.
)
// IpAllowListForInstalledAppsEnabledSettingValue represents the possible values for the IP allow list configuration for installed GitHub Apps setting.
type IpAllowListForInstalledAppsEnabledSettingValue string
// The possible values for the IP allow list configuration for installed GitHub Apps setting.
const (
IpAllowListForInstalledAppsEnabledSettingValueEnabled IpAllowListForInstalledAppsEnabledSettingValue = "ENABLED" // The setting is enabled for the owner.
IpAllowListForInstalledAppsEnabledSettingValueDisabled IpAllowListForInstalledAppsEnabledSettingValue = "DISABLED" // The setting is disabled for the owner.
)
// IssueClosedStateReason represents the possible state reasons of a closed issue.
type IssueClosedStateReason string
// The possible state reasons of a closed issue.
const (
IssueClosedStateReasonCompleted IssueClosedStateReason = "COMPLETED" // An issue that has been closed as completed.
IssueClosedStateReasonNotPlanned IssueClosedStateReason = "NOT_PLANNED" // An issue that has been closed as not planned.
)
// IssueCommentOrderField represents properties by which issue comment connections can be ordered.
type IssueCommentOrderField string
// Properties by which issue comment connections can be ordered.
const (
IssueCommentOrderFieldUpdatedAt IssueCommentOrderField = "UPDATED_AT" // Order issue comments by update time.
)
// IssueOrderField represents properties by which issue connections can be ordered.
type IssueOrderField string
// Properties by which issue connections can be ordered.
const (
IssueOrderFieldCreatedAt IssueOrderField = "CREATED_AT" // Order issues by creation time.
IssueOrderFieldUpdatedAt IssueOrderField = "UPDATED_AT" // Order issues by update time.
IssueOrderFieldComments IssueOrderField = "COMMENTS" // Order issues by comment count.
)
// IssueState represents the possible states of an issue.
type IssueState string
// The possible states of an issue.
const (
IssueStateOpen IssueState = "OPEN" // An issue that is still open.
IssueStateClosed IssueState = "CLOSED" // An issue that has been closed.
)
// IssueStateReason represents the possible state reasons of an issue.
type IssueStateReason string
// The possible state reasons of an issue.
const (
IssueStateReasonReopened IssueStateReason = "REOPENED" // An issue that has been reopened.
IssueStateReasonNotPlanned IssueStateReason = "NOT_PLANNED" // An issue that has been closed as not planned.
IssueStateReasonCompleted IssueStateReason = "COMPLETED" // An issue that has been closed as completed.
)
// IssueTimelineItemsItemType represents the possible item types found in a timeline.
type IssueTimelineItemsItemType string
// The possible item types found in a timeline.
const (
IssueTimelineItemsItemTypeIssueComment IssueTimelineItemsItemType = "ISSUE_COMMENT" // Represents a comment on an Issue.
IssueTimelineItemsItemTypeCrossReferencedEvent IssueTimelineItemsItemType = "CROSS_REFERENCED_EVENT" // Represents a mention made by one issue or pull request to another.
IssueTimelineItemsItemTypeAddedToProjectEvent IssueTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" // Represents a 'added_to_project' event on a given issue or pull request.
IssueTimelineItemsItemTypeAssignedEvent IssueTimelineItemsItemType = "ASSIGNED_EVENT" // Represents an 'assigned' event on any assignable object.
IssueTimelineItemsItemTypeClosedEvent IssueTimelineItemsItemType = "CLOSED_EVENT" // Represents a 'closed' event on any `Closable`.
IssueTimelineItemsItemTypeCommentDeletedEvent IssueTimelineItemsItemType = "COMMENT_DELETED_EVENT" // Represents a 'comment_deleted' event on a given issue or pull request.
IssueTimelineItemsItemTypeConnectedEvent IssueTimelineItemsItemType = "CONNECTED_EVENT" // Represents a 'connected' event on a given issue or pull request.
IssueTimelineItemsItemTypeConvertedNoteToIssueEvent IssueTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" // Represents a 'converted_note_to_issue' event on a given issue or pull request.
IssueTimelineItemsItemTypeConvertedToDiscussionEvent IssueTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" // Represents a 'converted_to_discussion' event on a given issue.
IssueTimelineItemsItemTypeDemilestonedEvent IssueTimelineItemsItemType = "DEMILESTONED_EVENT" // Represents a 'demilestoned' event on a given issue or pull request.
IssueTimelineItemsItemTypeDisconnectedEvent IssueTimelineItemsItemType = "DISCONNECTED_EVENT" // Represents a 'disconnected' event on a given issue or pull request.
IssueTimelineItemsItemTypeLabeledEvent IssueTimelineItemsItemType = "LABELED_EVENT" // Represents a 'labeled' event on a given issue or pull request.
IssueTimelineItemsItemTypeLockedEvent IssueTimelineItemsItemType = "LOCKED_EVENT" // Represents a 'locked' event on a given issue or pull request.
IssueTimelineItemsItemTypeMarkedAsDuplicateEvent IssueTimelineItemsItemType = "MARKED_AS_DUPLICATE_EVENT" // Represents a 'marked_as_duplicate' event on a given issue or pull request.
IssueTimelineItemsItemTypeMentionedEvent IssueTimelineItemsItemType = "MENTIONED_EVENT" // Represents a 'mentioned' event on a given issue or pull request.
IssueTimelineItemsItemTypeMilestonedEvent IssueTimelineItemsItemType = "MILESTONED_EVENT" // Represents a 'milestoned' event on a given issue or pull request.
IssueTimelineItemsItemTypeMovedColumnsInProjectEvent IssueTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" // Represents a 'moved_columns_in_project' event on a given issue or pull request.
IssueTimelineItemsItemTypePinnedEvent IssueTimelineItemsItemType = "PINNED_EVENT" // Represents a 'pinned' event on a given issue or pull request.
IssueTimelineItemsItemTypeReferencedEvent IssueTimelineItemsItemType = "REFERENCED_EVENT" // Represents a 'referenced' event on a given `ReferencedSubject`.
IssueTimelineItemsItemTypeRemovedFromProjectEvent IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" // Represents a 'removed_from_project' event on a given issue or pull request.
IssueTimelineItemsItemTypeRenamedTitleEvent IssueTimelineItemsItemType = "RENAMED_TITLE_EVENT" // Represents a 'renamed' event on a given issue or pull request.
IssueTimelineItemsItemTypeReopenedEvent IssueTimelineItemsItemType = "REOPENED_EVENT" // Represents a 'reopened' event on any `Closable`.
IssueTimelineItemsItemTypeSubscribedEvent IssueTimelineItemsItemType = "SUBSCRIBED_EVENT" // Represents a 'subscribed' event on a given `Subscribable`.
IssueTimelineItemsItemTypeTransferredEvent IssueTimelineItemsItemType = "TRANSFERRED_EVENT" // Represents a 'transferred' event on a given issue or pull request.
IssueTimelineItemsItemTypeUnassignedEvent IssueTimelineItemsItemType = "UNASSIGNED_EVENT" // Represents an 'unassigned' event on any assignable object.
IssueTimelineItemsItemTypeUnlabeledEvent IssueTimelineItemsItemType = "UNLABELED_EVENT" // Represents an 'unlabeled' event on a given issue or pull request.
IssueTimelineItemsItemTypeUnlockedEvent IssueTimelineItemsItemType = "UNLOCKED_EVENT" // Represents an 'unlocked' event on a given issue or pull request.
IssueTimelineItemsItemTypeUserBlockedEvent IssueTimelineItemsItemType = "USER_BLOCKED_EVENT" // Represents a 'user_blocked' event on a given user.
IssueTimelineItemsItemTypeUnmarkedAsDuplicateEvent IssueTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" // Represents an 'unmarked_as_duplicate' event on a given issue or pull request.
IssueTimelineItemsItemTypeUnpinnedEvent IssueTimelineItemsItemType = "UNPINNED_EVENT" // Represents an 'unpinned' event on a given issue or pull request.
IssueTimelineItemsItemTypeUnsubscribedEvent IssueTimelineItemsItemType = "UNSUBSCRIBED_EVENT" // Represents an 'unsubscribed' event on a given `Subscribable`.
)
// LabelOrderField represents properties by which label connections can be ordered.
type LabelOrderField string
// Properties by which label connections can be ordered.
const (
LabelOrderFieldName LabelOrderField = "NAME" // Order labels by name.
LabelOrderFieldCreatedAt LabelOrderField = "CREATED_AT" // Order labels by creation time.
)
// LanguageOrderField represents properties by which language connections can be ordered.
type LanguageOrderField string
// Properties by which language connections can be ordered.
const (
LanguageOrderFieldSize LanguageOrderField = "SIZE" // Order languages by the size of all files containing the language.
)
// LockReason represents the possible reasons that an issue or pull request was locked.
type LockReason string
// The possible reasons that an issue or pull request was locked.
const (
LockReasonOffTopic LockReason = "OFF_TOPIC" // The issue or pull request was locked because the conversation was off-topic.
LockReasonTooHeated LockReason = "TOO_HEATED" // The issue or pull request was locked because the conversation was too heated.
LockReasonResolved LockReason = "RESOLVED" // The issue or pull request was locked because the conversation was resolved.
LockReasonSpam LockReason = "SPAM" // The issue or pull request was locked because the conversation was spam.
)
// MannequinOrderField represents properties by which mannequins can be ordered.
type MannequinOrderField string
// Properties by which mannequins can be ordered.
const (
MannequinOrderFieldLogin MannequinOrderField = "LOGIN" // Order mannequins alphabetically by their source login.
MannequinOrderFieldCreatedAt MannequinOrderField = "CREATED_AT" // Order mannequins why when they were created.
)
// MergeCommitMessage represents the possible default commit messages for merges.
type MergeCommitMessage string
// The possible default commit messages for merges.
const (
MergeCommitMessagePrTitle MergeCommitMessage = "PR_TITLE" // Default to the pull request's title.
MergeCommitMessagePrBody MergeCommitMessage = "PR_BODY" // Default to the pull request's body.
MergeCommitMessageBlank MergeCommitMessage = "BLANK" // Default to a blank commit message.
)
// MergeCommitTitle represents the possible default commit titles for merges.
type MergeCommitTitle string
// The possible default commit titles for merges.
const (
MergeCommitTitlePrTitle MergeCommitTitle = "PR_TITLE" // Default to the pull request's title.
MergeCommitTitleMergeMessage MergeCommitTitle = "MERGE_MESSAGE" // Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
)
// MergeQueueEntryState represents the possible states for a merge queue entry.
type MergeQueueEntryState string
// The possible states for a merge queue entry.
const (
MergeQueueEntryStateQueued MergeQueueEntryState = "QUEUED" // The entry is currently queued.
MergeQueueEntryStateAwaitingChecks MergeQueueEntryState = "AWAITING_CHECKS" // The entry is currently waiting for checks to pass.
MergeQueueEntryStateMergeable MergeQueueEntryState = "MERGEABLE" // The entry is currently mergeable.
MergeQueueEntryStateUnmergeable MergeQueueEntryState = "UNMERGEABLE" // The entry is currently unmergeable.
MergeQueueEntryStateLocked MergeQueueEntryState = "LOCKED" // The entry is currently locked.
)
// MergeQueueGroupingStrategy represents when set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
type MergeQueueGroupingStrategy string
// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
const (
MergeQueueGroupingStrategyAllgreen MergeQueueGroupingStrategy = "ALLGREEN" // The merge commit created by merge queue for each PR in the group must pass all required checks to merge.
MergeQueueGroupingStrategyHeadgreen MergeQueueGroupingStrategy = "HEADGREEN" // Only the commit at the head of the merge group must pass its required checks to merge.
)
// MergeQueueMergeMethod represents method to use when merging changes from queued pull requests.
type MergeQueueMergeMethod string
// Method to use when merging changes from queued pull requests.
const (
MergeQueueMergeMethodMerge MergeQueueMergeMethod = "MERGE" // Merge commit.
MergeQueueMergeMethodSquash MergeQueueMergeMethod = "SQUASH" // Squash and merge.
MergeQueueMergeMethodRebase MergeQueueMergeMethod = "REBASE" // Rebase and merge.
)
// MergeQueueMergingStrategy represents the possible merging strategies for a merge queue.
type MergeQueueMergingStrategy string
// The possible merging strategies for a merge queue.
const (
MergeQueueMergingStrategyAllgreen MergeQueueMergingStrategy = "ALLGREEN" // Entries only allowed to merge if they are passing.
MergeQueueMergingStrategyHeadgreen MergeQueueMergingStrategy = "HEADGREEN" // Failing Entires are allowed to merge if they are with a passing entry.
)
// MergeStateStatus represents detailed status information about a pull request merge.
type MergeStateStatus string
// Detailed status information about a pull request merge.
const (
MergeStateStatusDirty MergeStateStatus = "DIRTY" // The merge commit cannot be cleanly created.
MergeStateStatusUnknown MergeStateStatus = "UNKNOWN" // The state cannot currently be determined.
MergeStateStatusBlocked MergeStateStatus = "BLOCKED" // The merge is blocked.
MergeStateStatusBehind MergeStateStatus = "BEHIND" // The head ref is out of date.
MergeStateStatusDraft MergeStateStatus = "DRAFT" // The merge is blocked due to the pull request being a draft.
MergeStateStatusUnstable MergeStateStatus = "UNSTABLE" // Mergeable with non-passing commit status.
MergeStateStatusHasHooks MergeStateStatus = "HAS_HOOKS" // Mergeable with passing commit status and pre-receive hooks.
MergeStateStatusClean MergeStateStatus = "CLEAN" // Mergeable and passing commit status.
)
// MergeableState represents whether or not a PullRequest can be merged.
type MergeableState string
// Whether or not a PullRequest can be merged.
const (
MergeableStateMergeable MergeableState = "MERGEABLE" // The pull request can be merged.
MergeableStateConflicting MergeableState = "CONFLICTING" // The pull request cannot be merged due to merge conflicts.
MergeableStateUnknown MergeableState = "UNKNOWN" // The mergeability of the pull request is still being calculated.
)
// MigrationSourceType represents represents the different GitHub Enterprise Importer (GEI) migration sources.
type MigrationSourceType string
// Represents the different GitHub Enterprise Importer (GEI) migration sources.
const (
MigrationSourceTypeAzureDevOps MigrationSourceType = "AZURE_DEVOPS" // An Azure DevOps migration source.
MigrationSourceTypeBitbucketServer MigrationSourceType = "BITBUCKET_SERVER" // A Bitbucket Server migration source.
MigrationSourceTypeGitHubArchive MigrationSourceType = "GITHUB_ARCHIVE" // A GitHub Migration API source.
)
// MigrationState represents the GitHub Enterprise Importer (GEI) migration state.
type MigrationState string
// The GitHub Enterprise Importer (GEI) migration state.
const (
MigrationStateNotStarted MigrationState = "NOT_STARTED" // The migration has not started.
MigrationStateQueued MigrationState = "QUEUED" // The migration has been queued.
MigrationStateInProgress MigrationState = "IN_PROGRESS" // The migration is in progress.
MigrationStateSucceeded MigrationState = "SUCCEEDED" // The migration has succeeded.
MigrationStateFailed MigrationState = "FAILED" // The migration has failed.
MigrationStatePendingValidation MigrationState = "PENDING_VALIDATION" // The migration needs to have its credentials validated.
MigrationStateFailedValidation MigrationState = "FAILED_VALIDATION" // The migration has invalid credentials.
)
// MilestoneOrderField represents properties by which milestone connections can be ordered.
type MilestoneOrderField string
// Properties by which milestone connections can be ordered.
const (
MilestoneOrderFieldDueDate MilestoneOrderField = "DUE_DATE" // Order milestones by when they are due.
MilestoneOrderFieldCreatedAt MilestoneOrderField = "CREATED_AT" // Order milestones by when they were created.
MilestoneOrderFieldUpdatedAt MilestoneOrderField = "UPDATED_AT" // Order milestones by when they were last updated.
MilestoneOrderFieldNumber MilestoneOrderField = "NUMBER" // Order milestones by their number.
)
// MilestoneState represents the possible states of a milestone.
type MilestoneState string
// The possible states of a milestone.
const (
MilestoneStateOpen MilestoneState = "OPEN" // A milestone that is still open.
MilestoneStateClosed MilestoneState = "CLOSED" // A milestone that has been closed.
)
// NotificationRestrictionSettingValue represents the possible values for the notification restriction setting.
type NotificationRestrictionSettingValue string
// The possible values for the notification restriction setting.
const (
NotificationRestrictionSettingValueEnabled NotificationRestrictionSettingValue = "ENABLED" // The setting is enabled for the owner.
NotificationRestrictionSettingValueDisabled NotificationRestrictionSettingValue = "DISABLED" // The setting is disabled for the owner.
)
// OIDCProviderType represents the OIDC identity provider type.
type OIDCProviderType string
// The OIDC identity provider type.
const (
OIDCProviderTypeAad OIDCProviderType = "AAD" // Azure Active Directory.
)
// OauthApplicationCreateAuditEntryState represents the state of an OAuth application when it was created.
type OauthApplicationCreateAuditEntryState string
// The state of an OAuth application when it was created.
const (
OauthApplicationCreateAuditEntryStateActive OauthApplicationCreateAuditEntryState = "ACTIVE" // The OAuth application was active and allowed to have OAuth Accesses.
OauthApplicationCreateAuditEntryStateSuspended OauthApplicationCreateAuditEntryState = "SUSPENDED" // The OAuth application was suspended from generating OAuth Accesses due to abuse or security concerns.
OauthApplicationCreateAuditEntryStatePendingDeletion OauthApplicationCreateAuditEntryState = "PENDING_DELETION" // The OAuth application was in the process of being deleted.
)
// OperationType represents the corresponding operation type for the action.
type OperationType string
// The corresponding operation type for the action.
const (
OperationTypeAccess OperationType = "ACCESS" // An existing resource was accessed.
OperationTypeAuthentication OperationType = "AUTHENTICATION" // A resource performed an authentication event.
OperationTypeCreate OperationType = "CREATE" // A new resource was created.
OperationTypeModify OperationType = "MODIFY" // An existing resource was modified.
OperationTypeRemove OperationType = "REMOVE" // An existing resource was removed.
OperationTypeRestore OperationType = "RESTORE" // An existing resource was restored.
OperationTypeTransfer OperationType = "TRANSFER" // An existing resource was transferred between multiple resources.
)
// OrderDirection represents possible directions in which to order a list of items when provided an `orderBy` argument.
type OrderDirection string
// Possible directions in which to order a list of items when provided an `orderBy` argument.
const (
OrderDirectionAsc OrderDirection = "ASC" // Specifies an ascending order for a given `orderBy` argument.
OrderDirectionDesc OrderDirection = "DESC" // Specifies a descending order for a given `orderBy` argument.
)
// OrgAddMemberAuditEntryPermission represents the permissions available to members on an Organization.
type OrgAddMemberAuditEntryPermission string
// The permissions available to members on an Organization.
const (
OrgAddMemberAuditEntryPermissionRead OrgAddMemberAuditEntryPermission = "READ" // Can read and clone repositories.
OrgAddMemberAuditEntryPermissionAdmin OrgAddMemberAuditEntryPermission = "ADMIN" // Can read, clone, push, and add collaborators to repositories.
)
// OrgCreateAuditEntryBillingPlan represents the billing plans available for organizations.
type OrgCreateAuditEntryBillingPlan string
// The billing plans available for organizations.
const (
OrgCreateAuditEntryBillingPlanFree OrgCreateAuditEntryBillingPlan = "FREE" // Free Plan.
OrgCreateAuditEntryBillingPlanBusiness OrgCreateAuditEntryBillingPlan = "BUSINESS" // Team Plan.
OrgCreateAuditEntryBillingPlanBusinessPlus OrgCreateAuditEntryBillingPlan = "BUSINESS_PLUS" // Enterprise Cloud Plan.
OrgCreateAuditEntryBillingPlanUnlimited OrgCreateAuditEntryBillingPlan = "UNLIMITED" // Legacy Unlimited Plan.
OrgCreateAuditEntryBillingPlanTieredPerSeat OrgCreateAuditEntryBillingPlan = "TIERED_PER_SEAT" // Tiered Per Seat Plan.
)
// OrgEnterpriseOwnerOrderField represents properties by which enterprise owners can be ordered.
type OrgEnterpriseOwnerOrderField string
// Properties by which enterprise owners can be ordered.
const (
OrgEnterpriseOwnerOrderFieldLogin OrgEnterpriseOwnerOrderField = "LOGIN" // Order enterprise owners by login.
)
// OrgRemoveBillingManagerAuditEntryReason represents the reason a billing manager was removed from an Organization.
type OrgRemoveBillingManagerAuditEntryReason string
// The reason a billing manager was removed from an Organization.
const (
OrgRemoveBillingManagerAuditEntryReasonTwoFactorRequirementNonCompliance OrgRemoveBillingManagerAuditEntryReason = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE" // The organization required 2FA of its billing managers and this user did not have 2FA enabled.
OrgRemoveBillingManagerAuditEntryReasonSamlExternalIdentityMissing OrgRemoveBillingManagerAuditEntryReason = "SAML_EXTERNAL_IDENTITY_MISSING" // SAML external identity missing.
OrgRemoveBillingManagerAuditEntryReasonSamlSsoEnforcementRequiresExternalIdentity OrgRemoveBillingManagerAuditEntryReason = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY" // SAML SSO enforcement requires an external identity.
)
// OrgRemoveMemberAuditEntryMembershipType represents the type of membership a user has with an Organization.
type OrgRemoveMemberAuditEntryMembershipType string
// The type of membership a user has with an Organization.
const (
OrgRemoveMemberAuditEntryMembershipTypeSuspended OrgRemoveMemberAuditEntryMembershipType = "SUSPENDED" // A suspended member.
OrgRemoveMemberAuditEntryMembershipTypeDirectMember OrgRemoveMemberAuditEntryMembershipType = "DIRECT_MEMBER" // A direct member is a user that is a member of the Organization.
OrgRemoveMemberAuditEntryMembershipTypeAdmin OrgRemoveMemberAuditEntryMembershipType = "ADMIN" // Organization owners have full access and can change several settings, including the names of repositories that belong to the Organization and Owners team membership. In addition, organization owners can delete the organization and all of its repositories.
OrgRemoveMemberAuditEntryMembershipTypeBillingManager OrgRemoveMemberAuditEntryMembershipType = "BILLING_MANAGER" // A billing manager is a user who manages the billing settings for the Organization, such as updating payment information.
OrgRemoveMemberAuditEntryMembershipTypeUnaffiliated OrgRemoveMemberAuditEntryMembershipType = "UNAFFILIATED" // An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the Organization.
OrgRemoveMemberAuditEntryMembershipTypeOutsideCollaborator OrgRemoveMemberAuditEntryMembershipType = "OUTSIDE_COLLABORATOR" // An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization.
)
// OrgRemoveMemberAuditEntryReason represents the reason a member was removed from an Organization.
type OrgRemoveMemberAuditEntryReason string
// The reason a member was removed from an Organization.
const (
OrgRemoveMemberAuditEntryReasonTwoFactorRequirementNonCompliance OrgRemoveMemberAuditEntryReason = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE" // The organization required 2FA of its billing managers and this user did not have 2FA enabled.
OrgRemoveMemberAuditEntryReasonSamlExternalIdentityMissing OrgRemoveMemberAuditEntryReason = "SAML_EXTERNAL_IDENTITY_MISSING" // SAML external identity missing.
OrgRemoveMemberAuditEntryReasonSamlSsoEnforcementRequiresExternalIdentity OrgRemoveMemberAuditEntryReason = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY" // SAML SSO enforcement requires an external identity.
OrgRemoveMemberAuditEntryReasonUserAccountDeleted OrgRemoveMemberAuditEntryReason = "USER_ACCOUNT_DELETED" // User account has been deleted.
OrgRemoveMemberAuditEntryReasonTwoFactorAccountRecovery OrgRemoveMemberAuditEntryReason = "TWO_FACTOR_ACCOUNT_RECOVERY" // User was removed from organization during account recovery.
)
// OrgRemoveOutsideCollaboratorAuditEntryMembershipType represents the type of membership a user has with an Organization.
type OrgRemoveOutsideCollaboratorAuditEntryMembershipType string
// The type of membership a user has with an Organization.
const (
OrgRemoveOutsideCollaboratorAuditEntryMembershipTypeOutsideCollaborator OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "OUTSIDE_COLLABORATOR" // An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization.
OrgRemoveOutsideCollaboratorAuditEntryMembershipTypeUnaffiliated OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "UNAFFILIATED" // An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the organization.
OrgRemoveOutsideCollaboratorAuditEntryMembershipTypeBillingManager OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "BILLING_MANAGER" // A billing manager is a user who manages the billing settings for the Organization, such as updating payment information.