1// Code generated by gen.go; DO NOT EDIT.
2
3package githubv4
4
5// CollaboratorAffiliation represents collaborators affiliation level with a subject.
6type CollaboratorAffiliation string
7
8// Collaborators affiliation level with a subject.
9const (
10 CollaboratorAffiliationOutside CollaboratorAffiliation = "OUTSIDE" // All outside collaborators of an organization-owned subject.
11 CollaboratorAffiliationDirect CollaboratorAffiliation = "DIRECT" // All collaborators with permissions to an organization-owned subject, regardless of organization membership status.
12 CollaboratorAffiliationAll CollaboratorAffiliation = "ALL" // All collaborators the authenticated user can see.
13)
14
15// CommentAuthorAssociation represents a comment author association with repository.
16type CommentAuthorAssociation string
17
18// A comment author association with repository.
19const (
20 CommentAuthorAssociationMember CommentAuthorAssociation = "MEMBER" // Author is a member of the organization that owns the repository.
21 CommentAuthorAssociationOwner CommentAuthorAssociation = "OWNER" // Author is the owner of the repository.
22 CommentAuthorAssociationCollaborator CommentAuthorAssociation = "COLLABORATOR" // Author has been invited to collaborate on the repository.
23 CommentAuthorAssociationContributor CommentAuthorAssociation = "CONTRIBUTOR" // Author has previously committed to the repository.
24 CommentAuthorAssociationFirstTimeContributor CommentAuthorAssociation = "FIRST_TIME_CONTRIBUTOR" // Author has not previously committed to the repository.
25 CommentAuthorAssociationFirstTimer CommentAuthorAssociation = "FIRST_TIMER" // Author has not previously committed to GitHub.
26 CommentAuthorAssociationNone CommentAuthorAssociation = "NONE" // Author has no association with the repository.
27)
28
29// CommentCannotUpdateReason represents the possible errors that will prevent a user from updating a comment.
30type CommentCannotUpdateReason string
31
32// The possible errors that will prevent a user from updating a comment.
33const (
34 CommentCannotUpdateReasonInsufficientAccess CommentCannotUpdateReason = "INSUFFICIENT_ACCESS" // You must be the author or have write access to this repository to update this comment.
35 CommentCannotUpdateReasonLocked CommentCannotUpdateReason = "LOCKED" // Unable to create comment because issue is locked.
36 CommentCannotUpdateReasonLoginRequired CommentCannotUpdateReason = "LOGIN_REQUIRED" // You must be logged in to update this comment.
37 CommentCannotUpdateReasonMaintenance CommentCannotUpdateReason = "MAINTENANCE" // Repository is under maintenance.
38 CommentCannotUpdateReasonVerifiedEmailRequired CommentCannotUpdateReason = "VERIFIED_EMAIL_REQUIRED" // At least one email address must be verified to update this comment.
39)
40
41// DefaultRepositoryPermissionField represents the possible default permissions for repositories.
42type DefaultRepositoryPermissionField string
43
44// The possible default permissions for repositories.
45const (
46 DefaultRepositoryPermissionFieldNone DefaultRepositoryPermissionField = "NONE" // No access.
47 DefaultRepositoryPermissionFieldRead DefaultRepositoryPermissionField = "READ" // Can read repos by default.
48 DefaultRepositoryPermissionFieldWrite DefaultRepositoryPermissionField = "WRITE" // Can read and write repos by default.
49 DefaultRepositoryPermissionFieldAdmin DefaultRepositoryPermissionField = "ADMIN" // Can read, write, and administrate repos by default.
50)
51
52// DeploymentState represents the possible states in which a deployment can be.
53type DeploymentState string
54
55// The possible states in which a deployment can be.
56const (
57 DeploymentStateAbandoned DeploymentState = "ABANDONED" // The pending deployment was not updated after 30 minutes.
58 DeploymentStateActive DeploymentState = "ACTIVE" // The deployment is currently active.
59 DeploymentStateDestroyed DeploymentState = "DESTROYED" // An inactive transient deployment.
60 DeploymentStateError DeploymentState = "ERROR" // The deployment experienced an error.
61 DeploymentStateFailure DeploymentState = "FAILURE" // The deployment has failed.
62 DeploymentStateInactive DeploymentState = "INACTIVE" // The deployment is inactive.
63 DeploymentStatePending DeploymentState = "PENDING" // The deployment is pending.
64)
65
66// DeploymentStatusState represents the possible states for a deployment status.
67type DeploymentStatusState string
68
69// The possible states for a deployment status.
70const (
71 DeploymentStatusStatePending DeploymentStatusState = "PENDING" // The deployment is pending.
72 DeploymentStatusStateSuccess DeploymentStatusState = "SUCCESS" // The deployment was successful.
73 DeploymentStatusStateFailure DeploymentStatusState = "FAILURE" // The deployment has failed.
74 DeploymentStatusStateInactive DeploymentStatusState = "INACTIVE" // The deployment is inactive.
75 DeploymentStatusStateError DeploymentStatusState = "ERROR" // The deployment experienced an error.
76)
77
78// GistOrderField represents properties by which gist connections can be ordered.
79type GistOrderField string
80
81// Properties by which gist connections can be ordered.
82const (
83 GistOrderFieldCreatedAt GistOrderField = "CREATED_AT" // Order gists by creation time.
84 GistOrderFieldUpdatedAt GistOrderField = "UPDATED_AT" // Order gists by update time.
85 GistOrderFieldPushedAt GistOrderField = "PUSHED_AT" // Order gists by push time.
86)
87
88// GistPrivacy represents the privacy of a Gist.
89type GistPrivacy string
90
91// The privacy of a Gist.
92const (
93 GistPrivacyPublic GistPrivacy = "PUBLIC" // Public.
94 GistPrivacySecret GistPrivacy = "SECRET" // Secret.
95 GistPrivacyAll GistPrivacy = "ALL" // Gists that are public and secret.
96)
97
98// GitSignatureState represents the state of a Git signature.
99type GitSignatureState string
100
101// The state of a Git signature.
102const (
103 GitSignatureStateValid GitSignatureState = "VALID" // Valid signature and verified by GitHub.
104 GitSignatureStateInvalid GitSignatureState = "INVALID" // Invalid signature.
105 GitSignatureStateMalformedSig GitSignatureState = "MALFORMED_SIG" // Malformed signature.
106 GitSignatureStateUnknownKey GitSignatureState = "UNKNOWN_KEY" // Key used for signing not known to GitHub.
107 GitSignatureStateBadEmail GitSignatureState = "BAD_EMAIL" // Invalid email used for signing.
108 GitSignatureStateUnverifiedEmail GitSignatureState = "UNVERIFIED_EMAIL" // Email used for signing unverified on GitHub.
109 GitSignatureStateNoUser GitSignatureState = "NO_USER" // Email used for signing not known to GitHub.
110 GitSignatureStateUnknownSigType GitSignatureState = "UNKNOWN_SIG_TYPE" // Unknown signature type.
111 GitSignatureStateUnsigned GitSignatureState = "UNSIGNED" // Unsigned.
112 GitSignatureStateGpgverifyUnavailable GitSignatureState = "GPGVERIFY_UNAVAILABLE" // Internal error - the GPG verification service is unavailable at the moment.
113 GitSignatureStateGpgverifyError GitSignatureState = "GPGVERIFY_ERROR" // Internal error - the GPG verification service misbehaved.
114 GitSignatureStateNotSigningKey GitSignatureState = "NOT_SIGNING_KEY" // The usage flags for the key that signed this don't allow signing.
115 GitSignatureStateExpiredKey GitSignatureState = "EXPIRED_KEY" // Signing key expired.
116 GitSignatureStateOcspPending GitSignatureState = "OCSP_PENDING" // Valid signature, pending certificate revocation checking.
117 GitSignatureStateOcspError GitSignatureState = "OCSP_ERROR" // Valid siganture, though certificate revocation check failed.
118 GitSignatureStateOcspRevoked GitSignatureState = "OCSP_REVOKED" // One or more certificates in chain has been revoked.
119)
120
121// IssueOrderField represents properties by which issue connections can be ordered.
122type IssueOrderField string
123
124// Properties by which issue connections can be ordered.
125const (
126 IssueOrderFieldCreatedAt IssueOrderField = "CREATED_AT" // Order issues by creation time.
127 IssueOrderFieldUpdatedAt IssueOrderField = "UPDATED_AT" // Order issues by update time.
128 IssueOrderFieldComments IssueOrderField = "COMMENTS" // Order issues by comment count.
129)
130
131// IssuePubSubTopic represents the possible PubSub channels for an issue.
132type IssuePubSubTopic string
133
134// The possible PubSub channels for an issue.
135const (
136 IssuePubSubTopicUpdated IssuePubSubTopic = "UPDATED" // The channel ID for observing issue updates.
137 IssuePubSubTopicMarkasread IssuePubSubTopic = "MARKASREAD" // The channel ID for marking an issue as read.
138 IssuePubSubTopicTimeline IssuePubSubTopic = "TIMELINE" // The channel ID for updating items on the issue timeline.
139)
140
141// IssueState represents the possible states of an issue.
142type IssueState string
143
144// The possible states of an issue.
145const (
146 IssueStateOpen IssueState = "OPEN" // An issue that is still open.
147 IssueStateClosed IssueState = "CLOSED" // An issue that has been closed.
148)
149
150// LanguageOrderField represents properties by which language connections can be ordered.
151type LanguageOrderField string
152
153// Properties by which language connections can be ordered.
154const (
155 LanguageOrderFieldSize LanguageOrderField = "SIZE" // Order languages by the size of all files containing the language.
156)
157
158// LockReason represents the possible reasons that an issue or pull request was locked.
159type LockReason string
160
161// The possible reasons that an issue or pull request was locked.
162const (
163 LockReasonOffTopic LockReason = "OFF_TOPIC" // The issue or pull request was locked because the conversation was off-topic.
164 LockReasonTooHeated LockReason = "TOO_HEATED" // The issue or pull request was locked because the conversation was too heated.
165 LockReasonResolved LockReason = "RESOLVED" // The issue or pull request was locked because the conversation was resolved.
166 LockReasonSpam LockReason = "SPAM" // The issue or pull request was locked because the conversation was spam.
167)
168
169// MergeableState represents whether or not a PullRequest can be merged.
170type MergeableState string
171
172// Whether or not a PullRequest can be merged.
173const (
174 MergeableStateMergeable MergeableState = "MERGEABLE" // The pull request can be merged.
175 MergeableStateConflicting MergeableState = "CONFLICTING" // The pull request cannot be merged due to merge conflicts.
176 MergeableStateUnknown MergeableState = "UNKNOWN" // The mergeability of the pull request is still being calculated.
177)
178
179// MilestoneOrderField represents properties by which milestone connections can be ordered.
180type MilestoneOrderField string
181
182// Properties by which milestone connections can be ordered.
183const (
184 MilestoneOrderFieldDueDate MilestoneOrderField = "DUE_DATE" // Order milestones by when they are due.
185 MilestoneOrderFieldCreatedAt MilestoneOrderField = "CREATED_AT" // Order milestones by when they were created.
186 MilestoneOrderFieldUpdatedAt MilestoneOrderField = "UPDATED_AT" // Order milestones by when they were last updated.
187 MilestoneOrderFieldNumber MilestoneOrderField = "NUMBER" // Order milestones by their number.
188)
189
190// MilestoneState represents the possible states of a milestone.
191type MilestoneState string
192
193// The possible states of a milestone.
194const (
195 MilestoneStateOpen MilestoneState = "OPEN" // A milestone that is still open.
196 MilestoneStateClosed MilestoneState = "CLOSED" // A milestone that has been closed.
197)
198
199// OrderDirection represents possible directions in which to order a list of items when provided an `orderBy` argument.
200type OrderDirection string
201
202// Possible directions in which to order a list of items when provided an `orderBy` argument.
203const (
204 OrderDirectionAsc OrderDirection = "ASC" // Specifies an ascending order for a given `orderBy` argument.
205 OrderDirectionDesc OrderDirection = "DESC" // Specifies a descending order for a given `orderBy` argument.
206)
207
208// OrganizationInvitationRole represents the possible organization invitation roles.
209type OrganizationInvitationRole string
210
211// The possible organization invitation roles.
212const (
213 OrganizationInvitationRoleDirectMember OrganizationInvitationRole = "DIRECT_MEMBER" // The user is invited to be a direct member of the organization.
214 OrganizationInvitationRoleAdmin OrganizationInvitationRole = "ADMIN" // The user is invited to be an admin of the organization.
215 OrganizationInvitationRoleBillingManager OrganizationInvitationRole = "BILLING_MANAGER" // The user is invited to be a billing manager of the organization.
216 OrganizationInvitationRoleReinstate OrganizationInvitationRole = "REINSTATE" // The user's previous role will be reinstated.
217)
218
219// OrganizationInvitationType represents the possible organization invitation types.
220type OrganizationInvitationType string
221
222// The possible organization invitation types.
223const (
224 OrganizationInvitationTypeUser OrganizationInvitationType = "USER" // The invitation was to an existing user.
225 OrganizationInvitationTypeEmail OrganizationInvitationType = "EMAIL" // The invitation was to an email address.
226)
227
228// ProjectCardState represents various content states of a ProjectCard.
229type ProjectCardState string
230
231// Various content states of a ProjectCard.
232const (
233 ProjectCardStateContentOnly ProjectCardState = "CONTENT_ONLY" // The card has content only.
234 ProjectCardStateNoteOnly ProjectCardState = "NOTE_ONLY" // The card has a note only.
235 ProjectCardStateRedacted ProjectCardState = "REDACTED" // The card is redacted.
236)
237
238// ProjectOrderField represents properties by which project connections can be ordered.
239type ProjectOrderField string
240
241// Properties by which project connections can be ordered.
242const (
243 ProjectOrderFieldCreatedAt ProjectOrderField = "CREATED_AT" // Order projects by creation time.
244 ProjectOrderFieldUpdatedAt ProjectOrderField = "UPDATED_AT" // Order projects by update time.
245 ProjectOrderFieldName ProjectOrderField = "NAME" // Order projects by name.
246)
247
248// ProjectState represents state of the project; either 'open' or 'closed'.
249type ProjectState string
250
251// State of the project; either 'open' or 'closed'.
252const (
253 ProjectStateOpen ProjectState = "OPEN" // The project is open.
254 ProjectStateClosed ProjectState = "CLOSED" // The project is closed.
255)
256
257// PullRequestPubSubTopic represents the possible PubSub channels for a pull request.
258type PullRequestPubSubTopic string
259
260// The possible PubSub channels for a pull request.
261const (
262 PullRequestPubSubTopicUpdated PullRequestPubSubTopic = "UPDATED" // The channel ID for observing pull request updates.
263 PullRequestPubSubTopicMarkasread PullRequestPubSubTopic = "MARKASREAD" // The channel ID for marking an pull request as read.
264 PullRequestPubSubTopicHeadRef PullRequestPubSubTopic = "HEAD_REF" // The channel ID for observing head ref updates.
265 PullRequestPubSubTopicTimeline PullRequestPubSubTopic = "TIMELINE" // The channel ID for updating items on the pull request timeline.
266)
267
268// PullRequestReviewEvent represents the possible events to perform on a pull request review.
269type PullRequestReviewEvent string
270
271// The possible events to perform on a pull request review.
272const (
273 PullRequestReviewEventComment PullRequestReviewEvent = "COMMENT" // Submit general feedback without explicit approval.
274 PullRequestReviewEventApprove PullRequestReviewEvent = "APPROVE" // Submit feedback and approve merging these changes.
275 PullRequestReviewEventRequestChanges PullRequestReviewEvent = "REQUEST_CHANGES" // Submit feedback that must be addressed before merging.
276 PullRequestReviewEventDismiss PullRequestReviewEvent = "DISMISS" // Dismiss review so it now longer effects merging.
277)
278
279// PullRequestReviewState represents the possible states of a pull request review.
280type PullRequestReviewState string
281
282// The possible states of a pull request review.
283const (
284 PullRequestReviewStatePending PullRequestReviewState = "PENDING" // A review that has not yet been submitted.
285 PullRequestReviewStateCommented PullRequestReviewState = "COMMENTED" // An informational review.
286 PullRequestReviewStateApproved PullRequestReviewState = "APPROVED" // A review allowing the pull request to merge.
287 PullRequestReviewStateChangesRequested PullRequestReviewState = "CHANGES_REQUESTED" // A review blocking the pull request from merging.
288 PullRequestReviewStateDismissed PullRequestReviewState = "DISMISSED" // A review that has been dismissed.
289)
290
291// PullRequestState represents the possible states of a pull request.
292type PullRequestState string
293
294// The possible states of a pull request.
295const (
296 PullRequestStateOpen PullRequestState = "OPEN" // A pull request that is still open.
297 PullRequestStateClosed PullRequestState = "CLOSED" // A pull request that has been closed without being merged.
298 PullRequestStateMerged PullRequestState = "MERGED" // A pull request that has been closed by being merged.
299)
300
301// ReactionContent represents emojis that can be attached to Issues, Pull Requests and Comments.
302type ReactionContent string
303
304// Emojis that can be attached to Issues, Pull Requests and Comments.
305const (
306 ReactionContentThumbsUp ReactionContent = "THUMBS_UP" // Represents the 👍 emoji.
307 ReactionContentThumbsDown ReactionContent = "THUMBS_DOWN" // Represents the 👎 emoji.
308 ReactionContentLaugh ReactionContent = "LAUGH" // Represents the 😄 emoji.
309 ReactionContentHooray ReactionContent = "HOORAY" // Represents the 🎉 emoji.
310 ReactionContentConfused ReactionContent = "CONFUSED" // Represents the 😕 emoji.
311 ReactionContentHeart ReactionContent = "HEART" // Represents the ❤️ emoji.
312)
313
314// ReactionOrderField represents a list of fields that reactions can be ordered by.
315type ReactionOrderField string
316
317// A list of fields that reactions can be ordered by.
318const (
319 ReactionOrderFieldCreatedAt ReactionOrderField = "CREATED_AT" // Allows ordering a list of reactions by when they were created.
320)
321
322// RefOrderField represents properties by which ref connections can be ordered.
323type RefOrderField string
324
325// Properties by which ref connections can be ordered.
326const (
327 RefOrderFieldTagCommitDate RefOrderField = "TAG_COMMIT_DATE" // Order refs by underlying commit date if the ref prefix is refs/tags/.
328 RefOrderFieldAlphabetical RefOrderField = "ALPHABETICAL" // Order refs by their alphanumeric name.
329)
330
331// ReleaseOrderField represents properties by which release connections can be ordered.
332type ReleaseOrderField string
333
334// Properties by which release connections can be ordered.
335const (
336 ReleaseOrderFieldCreatedAt ReleaseOrderField = "CREATED_AT" // Order releases by creation time.
337 ReleaseOrderFieldName ReleaseOrderField = "NAME" // Order releases alphabetically by name.
338)
339
340// RepositoryAffiliation represents the affiliation of a user to a repository.
341type RepositoryAffiliation string
342
343// The affiliation of a user to a repository.
344const (
345 RepositoryAffiliationOwner RepositoryAffiliation = "OWNER" // Repositories that are owned by the authenticated user.
346 RepositoryAffiliationCollaborator RepositoryAffiliation = "COLLABORATOR" // Repositories that the user has been added to as a collaborator.
347 RepositoryAffiliationOrganizationMember RepositoryAffiliation = "ORGANIZATION_MEMBER" // Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.
348)
349
350// RepositoryCollaboratorAffiliation represents the affiliation type between collaborator and repository.
351type RepositoryCollaboratorAffiliation string
352
353// The affiliation type between collaborator and repository.
354const (
355 RepositoryCollaboratorAffiliationAll RepositoryCollaboratorAffiliation = "ALL" // All collaborators of the repository.
356 RepositoryCollaboratorAffiliationOutside RepositoryCollaboratorAffiliation = "OUTSIDE" // All outside collaborators of an organization-owned repository.
357)
358
359// RepositoryContributionType represents the reason a repository is listed as 'contributed'.
360type RepositoryContributionType string
361
362// The reason a repository is listed as 'contributed'.
363const (
364 RepositoryContributionTypeCommit RepositoryContributionType = "COMMIT" // Created a commit.
365 RepositoryContributionTypeIssue RepositoryContributionType = "ISSUE" // Created an issue.
366 RepositoryContributionTypePullRequest RepositoryContributionType = "PULL_REQUEST" // Created a pull request.
367 RepositoryContributionTypeRepository RepositoryContributionType = "REPOSITORY" // Created the repository.
368 RepositoryContributionTypePullRequestReview RepositoryContributionType = "PULL_REQUEST_REVIEW" // Reviewed a pull request.
369)
370
371// RepositoryLockReason represents the possible reasons a given repository could be in a locked state.
372type RepositoryLockReason string
373
374// The possible reasons a given repository could be in a locked state.
375const (
376 RepositoryLockReasonMoving RepositoryLockReason = "MOVING" // The repository is locked due to a move.
377 RepositoryLockReasonBilling RepositoryLockReason = "BILLING" // The repository is locked due to a billing related reason.
378 RepositoryLockReasonRename RepositoryLockReason = "RENAME" // The repository is locked due to a rename.
379 RepositoryLockReasonMigrating RepositoryLockReason = "MIGRATING" // The repository is locked due to a migration.
380)
381
382// RepositoryOrderField represents properties by which repository connections can be ordered.
383type RepositoryOrderField string
384
385// Properties by which repository connections can be ordered.
386const (
387 RepositoryOrderFieldCreatedAt RepositoryOrderField = "CREATED_AT" // Order repositories by creation time.
388 RepositoryOrderFieldUpdatedAt RepositoryOrderField = "UPDATED_AT" // Order repositories by update time.
389 RepositoryOrderFieldPushedAt RepositoryOrderField = "PUSHED_AT" // Order repositories by push time.
390 RepositoryOrderFieldName RepositoryOrderField = "NAME" // Order repositories by name.
391 RepositoryOrderFieldStargazers RepositoryOrderField = "STARGAZERS" // Order repositories by number of stargazers.
392)
393
394// RepositoryPermission represents the access level to a repository.
395type RepositoryPermission string
396
397// The access level to a repository.
398const (
399 RepositoryPermissionAdmin RepositoryPermission = "ADMIN" // Can read, clone, push, and add collaborators.
400 RepositoryPermissionWrite RepositoryPermission = "WRITE" // Can read, clone and push.
401 RepositoryPermissionRead RepositoryPermission = "READ" // Can read and clone.
402)
403
404// RepositoryPrivacy represents the privacy of a repository.
405type RepositoryPrivacy string
406
407// The privacy of a repository.
408const (
409 RepositoryPrivacyPublic RepositoryPrivacy = "PUBLIC" // Public.
410 RepositoryPrivacyPrivate RepositoryPrivacy = "PRIVATE" // Private.
411)
412
413// SearchType represents represents the individual results of a search.
414type SearchType string
415
416// Represents the individual results of a search.
417const (
418 SearchTypeIssue SearchType = "ISSUE" // Returns results matching issues in repositories.
419 SearchTypeRepository SearchType = "REPOSITORY" // Returns results matching repositories.
420 SearchTypeUser SearchType = "USER" // Returns results matching users and organizations on GitHub.
421)
422
423// StarOrderField represents properties by which star connections can be ordered.
424type StarOrderField string
425
426// Properties by which star connections can be ordered.
427const (
428 StarOrderFieldStarredAt StarOrderField = "STARRED_AT" // Allows ordering a list of stars by when they were created.
429)
430
431// StatusState represents the possible commit status states.
432type StatusState string
433
434// The possible commit status states.
435const (
436 StatusStateExpected StatusState = "EXPECTED" // Status is expected.
437 StatusStateError StatusState = "ERROR" // Status is errored.
438 StatusStateFailure StatusState = "FAILURE" // Status is failing.
439 StatusStatePending StatusState = "PENDING" // Status is pending.
440 StatusStateSuccess StatusState = "SUCCESS" // Status is successful.
441)
442
443// SubscriptionState represents the possible states of a subscription.
444type SubscriptionState string
445
446// The possible states of a subscription.
447const (
448 SubscriptionStateUnsubscribed SubscriptionState = "UNSUBSCRIBED" // The User is only notified when particpating or @mentioned.
449 SubscriptionStateSubscribed SubscriptionState = "SUBSCRIBED" // The User is notified of all conversations.
450 SubscriptionStateIgnored SubscriptionState = "IGNORED" // The User is never notified.
451)
452
453// TeamMemberOrderField represents properties by which team member connections can be ordered.
454type TeamMemberOrderField string
455
456// Properties by which team member connections can be ordered.
457const (
458 TeamMemberOrderFieldLogin TeamMemberOrderField = "LOGIN" // Order team members by login.
459 TeamMemberOrderFieldCreatedAt TeamMemberOrderField = "CREATED_AT" // Order team members by creation time.
460)
461
462// TeamMemberRole represents the possible team member roles; either 'maintainer' or 'member'.
463type TeamMemberRole string
464
465// The possible team member roles; either 'maintainer' or 'member'.
466const (
467 TeamMemberRoleMaintainer TeamMemberRole = "MAINTAINER" // A team maintainer has permission to add and remove team members.
468 TeamMemberRoleMember TeamMemberRole = "MEMBER" // A team member has no administrative permissions on the team.
469)
470
471// TeamMembershipType represents defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL.
472type TeamMembershipType string
473
474// Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL.
475const (
476 TeamMembershipTypeImmediate TeamMembershipType = "IMMEDIATE" // Includes only immediate members of the team.
477 TeamMembershipTypeChildTeam TeamMembershipType = "CHILD_TEAM" // Includes only child team members for the team.
478 TeamMembershipTypeAll TeamMembershipType = "ALL" // Includes immediate and child team members for the team.
479)
480
481// TeamOrderField represents properties by which team connections can be ordered.
482type TeamOrderField string
483
484// Properties by which team connections can be ordered.
485const (
486 TeamOrderFieldName TeamOrderField = "NAME" // Allows ordering a list of teams by name.
487)
488
489// TeamPrivacy represents the possible team privacy values.
490type TeamPrivacy string
491
492// The possible team privacy values.
493const (
494 TeamPrivacySecret TeamPrivacy = "SECRET" // A secret team can only be seen by its members.
495 TeamPrivacyVisible TeamPrivacy = "VISIBLE" // A visible team can be seen and @mentioned by every member of the organization.
496)
497
498// TeamRepositoryOrderField represents properties by which team repository connections can be ordered.
499type TeamRepositoryOrderField string
500
501// Properties by which team repository connections can be ordered.
502const (
503 TeamRepositoryOrderFieldCreatedAt TeamRepositoryOrderField = "CREATED_AT" // Order repositories by creation time.
504 TeamRepositoryOrderFieldUpdatedAt TeamRepositoryOrderField = "UPDATED_AT" // Order repositories by update time.
505 TeamRepositoryOrderFieldPushedAt TeamRepositoryOrderField = "PUSHED_AT" // Order repositories by push time.
506 TeamRepositoryOrderFieldName TeamRepositoryOrderField = "NAME" // Order repositories by name.
507 TeamRepositoryOrderFieldPermission TeamRepositoryOrderField = "PERMISSION" // Order repositories by permission.
508 TeamRepositoryOrderFieldStargazers TeamRepositoryOrderField = "STARGAZERS" // Order repositories by number of stargazers.
509)
510
511// TeamRole represents the role of a user on a team.
512type TeamRole string
513
514// The role of a user on a team.
515const (
516 TeamRoleAdmin TeamRole = "ADMIN" // User has admin rights on the team.
517 TeamRoleMember TeamRole = "MEMBER" // User is a member of the team.
518)
519
520// TopicSuggestionDeclineReason represents reason that the suggested topic is declined.
521type TopicSuggestionDeclineReason string
522
523// Reason that the suggested topic is declined.
524const (
525 TopicSuggestionDeclineReasonNotRelevant TopicSuggestionDeclineReason = "NOT_RELEVANT" // The suggested topic is not relevant to the repository.
526 TopicSuggestionDeclineReasonTooSpecific TopicSuggestionDeclineReason = "TOO_SPECIFIC" // The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).
527 TopicSuggestionDeclineReasonPersonalPreference TopicSuggestionDeclineReason = "PERSONAL_PREFERENCE" // The viewer does not like the suggested topic.
528 TopicSuggestionDeclineReasonTooGeneral TopicSuggestionDeclineReason = "TOO_GENERAL" // The suggested topic is too general for the repository.
529)