1// Code generated by gen.go; DO NOT EDIT.
2
3package githubv4
4
5// Input represents one of the Input structs:
6//
7// AcceptTopicSuggestionInput, AddCommentInput, AddProjectCardInput, AddProjectColumnInput, AddPullRequestReviewCommentInput, AddPullRequestReviewInput, AddReactionInput, AddStarInput, CommitAuthor, CreateProjectInput, DeclineTopicSuggestionInput, DeleteProjectCardInput, DeleteProjectColumnInput, DeleteProjectInput, DeletePullRequestReviewInput, DismissPullRequestReviewInput, DraftPullRequestReviewComment, GistOrder, IssueOrder, LanguageOrder, LockLockableInput, MilestoneOrder, MoveProjectCardInput, MoveProjectColumnInput, ProjectOrder, ReactionOrder, RefOrder, ReleaseOrder, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RepositoryOrder, RequestReviewsInput, StarOrder, SubmitPullRequestReviewInput, TeamMemberOrder, TeamOrder, TeamRepositoryOrder, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectInput, UpdatePullRequestReviewCommentInput, UpdatePullRequestReviewInput, UpdateSubscriptionInput, UpdateTopicsInput.
8type Input interface{}
9
10// AcceptTopicSuggestionInput is an autogenerated input type of AcceptTopicSuggestion.
11type AcceptTopicSuggestionInput struct {
12 // The Node ID of the repository. (Required.)
13 RepositoryID ID `json:"repositoryId"`
14 // The name of the suggested topic. (Required.)
15 Name String `json:"name"`
16
17 // A unique identifier for the client performing the mutation. (Optional.)
18 ClientMutationID *String `json:"clientMutationId,omitempty"`
19}
20
21// AddCommentInput is an autogenerated input type of AddComment.
22type AddCommentInput struct {
23 // The Node ID of the subject to modify. (Required.)
24 SubjectID ID `json:"subjectId"`
25 // The contents of the comment. (Required.)
26 Body String `json:"body"`
27
28 // A unique identifier for the client performing the mutation. (Optional.)
29 ClientMutationID *String `json:"clientMutationId,omitempty"`
30}
31
32// AddProjectCardInput is an autogenerated input type of AddProjectCard.
33type AddProjectCardInput struct {
34 // The Node ID of the ProjectColumn. (Required.)
35 ProjectColumnID ID `json:"projectColumnId"`
36
37 // The content of the card. Must be a member of the ProjectCardItem union. (Optional.)
38 ContentID *ID `json:"contentId,omitempty"`
39 // The note on the card. (Optional.)
40 Note *String `json:"note,omitempty"`
41 // A unique identifier for the client performing the mutation. (Optional.)
42 ClientMutationID *String `json:"clientMutationId,omitempty"`
43}
44
45// AddProjectColumnInput is an autogenerated input type of AddProjectColumn.
46type AddProjectColumnInput struct {
47 // The Node ID of the project. (Required.)
48 ProjectID ID `json:"projectId"`
49 // The name of the column. (Required.)
50 Name String `json:"name"`
51
52 // A unique identifier for the client performing the mutation. (Optional.)
53 ClientMutationID *String `json:"clientMutationId,omitempty"`
54}
55
56// AddPullRequestReviewCommentInput is an autogenerated input type of AddPullRequestReviewComment.
57type AddPullRequestReviewCommentInput struct {
58 // The Node ID of the review to modify. (Required.)
59 PullRequestReviewID ID `json:"pullRequestReviewId"`
60 // The text of the comment. (Required.)
61 Body String `json:"body"`
62
63 // The SHA of the commit to comment on. (Optional.)
64 CommitOID *GitObjectID `json:"commitOID,omitempty"`
65 // The relative path of the file to comment on. (Optional.)
66 Path *String `json:"path,omitempty"`
67 // The line index in the diff to comment on. (Optional.)
68 Position *Int `json:"position,omitempty"`
69 // The comment id to reply to. (Optional.)
70 InReplyTo *ID `json:"inReplyTo,omitempty"`
71 // A unique identifier for the client performing the mutation. (Optional.)
72 ClientMutationID *String `json:"clientMutationId,omitempty"`
73}
74
75// AddPullRequestReviewInput is an autogenerated input type of AddPullRequestReview.
76type AddPullRequestReviewInput struct {
77 // The Node ID of the pull request to modify. (Required.)
78 PullRequestID ID `json:"pullRequestId"`
79
80 // The commit OID the review pertains to. (Optional.)
81 CommitOID *GitObjectID `json:"commitOID,omitempty"`
82 // The contents of the review body comment. (Optional.)
83 Body *String `json:"body,omitempty"`
84 // The event to perform on the pull request review. (Optional.)
85 Event *PullRequestReviewEvent `json:"event,omitempty"`
86 // The review line comments. (Optional.)
87 Comments *[]*DraftPullRequestReviewComment `json:"comments,omitempty"`
88 // A unique identifier for the client performing the mutation. (Optional.)
89 ClientMutationID *String `json:"clientMutationId,omitempty"`
90}
91
92// AddReactionInput is an autogenerated input type of AddReaction.
93type AddReactionInput struct {
94 // The Node ID of the subject to modify. (Required.)
95 SubjectID ID `json:"subjectId"`
96 // The name of the emoji to react with. (Required.)
97 Content ReactionContent `json:"content"`
98
99 // A unique identifier for the client performing the mutation. (Optional.)
100 ClientMutationID *String `json:"clientMutationId,omitempty"`
101}
102
103// AddStarInput is an autogenerated input type of AddStar.
104type AddStarInput struct {
105 // The Starrable ID to star. (Required.)
106 StarrableID ID `json:"starrableId"`
107
108 // A unique identifier for the client performing the mutation. (Optional.)
109 ClientMutationID *String `json:"clientMutationId,omitempty"`
110}
111
112// CommitAuthor specifies an author for filtering Git commits.
113type CommitAuthor struct {
114
115 // ID of a User to filter by. If non-null, only commits authored by this user will be returned. This field takes precedence over emails. (Optional.)
116 ID *ID `json:"id,omitempty"`
117 // Email addresses to filter by. Commits authored by any of the specified email addresses will be returned. (Optional.)
118 Emails *[]String `json:"emails,omitempty"`
119}
120
121// CreateProjectInput is an autogenerated input type of CreateProject.
122type CreateProjectInput struct {
123 // The owner ID to create the project under. (Required.)
124 OwnerID ID `json:"ownerId"`
125 // The name of project. (Required.)
126 Name String `json:"name"`
127
128 // The description of project. (Optional.)
129 Body *String `json:"body,omitempty"`
130 // A unique identifier for the client performing the mutation. (Optional.)
131 ClientMutationID *String `json:"clientMutationId,omitempty"`
132}
133
134// DeclineTopicSuggestionInput is an autogenerated input type of DeclineTopicSuggestion.
135type DeclineTopicSuggestionInput struct {
136 // The Node ID of the repository. (Required.)
137 RepositoryID ID `json:"repositoryId"`
138 // The name of the suggested topic. (Required.)
139 Name String `json:"name"`
140 // The reason why the suggested topic is declined. (Required.)
141 Reason TopicSuggestionDeclineReason `json:"reason"`
142
143 // A unique identifier for the client performing the mutation. (Optional.)
144 ClientMutationID *String `json:"clientMutationId,omitempty"`
145}
146
147// DeleteProjectCardInput is an autogenerated input type of DeleteProjectCard.
148type DeleteProjectCardInput struct {
149 // The id of the card to delete. (Required.)
150 CardID ID `json:"cardId"`
151
152 // A unique identifier for the client performing the mutation. (Optional.)
153 ClientMutationID *String `json:"clientMutationId,omitempty"`
154}
155
156// DeleteProjectColumnInput is an autogenerated input type of DeleteProjectColumn.
157type DeleteProjectColumnInput struct {
158 // The id of the column to delete. (Required.)
159 ColumnID ID `json:"columnId"`
160
161 // A unique identifier for the client performing the mutation. (Optional.)
162 ClientMutationID *String `json:"clientMutationId,omitempty"`
163}
164
165// DeleteProjectInput is an autogenerated input type of DeleteProject.
166type DeleteProjectInput struct {
167 // The Project ID to update. (Required.)
168 ProjectID ID `json:"projectId"`
169
170 // A unique identifier for the client performing the mutation. (Optional.)
171 ClientMutationID *String `json:"clientMutationId,omitempty"`
172}
173
174// DeletePullRequestReviewInput is an autogenerated input type of DeletePullRequestReview.
175type DeletePullRequestReviewInput struct {
176 // The Node ID of the pull request review to delete. (Required.)
177 PullRequestReviewID ID `json:"pullRequestReviewId"`
178
179 // A unique identifier for the client performing the mutation. (Optional.)
180 ClientMutationID *String `json:"clientMutationId,omitempty"`
181}
182
183// DismissPullRequestReviewInput is an autogenerated input type of DismissPullRequestReview.
184type DismissPullRequestReviewInput struct {
185 // The Node ID of the pull request review to modify. (Required.)
186 PullRequestReviewID ID `json:"pullRequestReviewId"`
187 // The contents of the pull request review dismissal message. (Required.)
188 Message String `json:"message"`
189
190 // A unique identifier for the client performing the mutation. (Optional.)
191 ClientMutationID *String `json:"clientMutationId,omitempty"`
192}
193
194// DraftPullRequestReviewComment specifies a review comment to be left with a Pull Request Review.
195type DraftPullRequestReviewComment struct {
196 // Path to the file being commented on. (Required.)
197 Path String `json:"path"`
198 // Position in the file to leave a comment on. (Required.)
199 Position Int `json:"position"`
200 // Body of the comment to leave. (Required.)
201 Body String `json:"body"`
202}
203
204// GistOrder represents ordering options for gist connections.
205type GistOrder struct {
206 // The field to order repositories by. (Required.)
207 Field GistOrderField `json:"field"`
208 // The ordering direction. (Required.)
209 Direction OrderDirection `json:"direction"`
210}
211
212// IssueOrder represents ways in which lists of issues can be ordered upon return.
213type IssueOrder struct {
214 // The field in which to order issues by. (Required.)
215 Field IssueOrderField `json:"field"`
216 // The direction in which to order issues by the specified field. (Required.)
217 Direction OrderDirection `json:"direction"`
218}
219
220// LanguageOrder represents ordering options for language connections.
221type LanguageOrder struct {
222 // The field to order languages by. (Required.)
223 Field LanguageOrderField `json:"field"`
224 // The ordering direction. (Required.)
225 Direction OrderDirection `json:"direction"`
226}
227
228// LockLockableInput is an autogenerated input type of LockLockable.
229type LockLockableInput struct {
230 // ID of the issue or pull request to be locked. (Required.)
231 LockableID ID `json:"lockableId"`
232
233 // A reason for why the issue or pull request will be locked. (Optional.)
234 LockReason *LockReason `json:"lockReason,omitempty"`
235 // A unique identifier for the client performing the mutation. (Optional.)
236 ClientMutationID *String `json:"clientMutationId,omitempty"`
237}
238
239// MilestoneOrder represents ordering options for milestone connections.
240type MilestoneOrder struct {
241 // The field to order milestones by. (Required.)
242 Field MilestoneOrderField `json:"field"`
243 // The ordering direction. (Required.)
244 Direction OrderDirection `json:"direction"`
245}
246
247// MoveProjectCardInput is an autogenerated input type of MoveProjectCard.
248type MoveProjectCardInput struct {
249 // The id of the card to move. (Required.)
250 CardID ID `json:"cardId"`
251 // The id of the column to move it into. (Required.)
252 ColumnID ID `json:"columnId"`
253
254 // Place the new card after the card with this id. Pass null to place it at the top. (Optional.)
255 AfterCardID *ID `json:"afterCardId,omitempty"`
256 // A unique identifier for the client performing the mutation. (Optional.)
257 ClientMutationID *String `json:"clientMutationId,omitempty"`
258}
259
260// MoveProjectColumnInput is an autogenerated input type of MoveProjectColumn.
261type MoveProjectColumnInput struct {
262 // The id of the column to move. (Required.)
263 ColumnID ID `json:"columnId"`
264
265 // Place the new column after the column with this id. Pass null to place it at the front. (Optional.)
266 AfterColumnID *ID `json:"afterColumnId,omitempty"`
267 // A unique identifier for the client performing the mutation. (Optional.)
268 ClientMutationID *String `json:"clientMutationId,omitempty"`
269}
270
271// ProjectOrder represents ways in which lists of projects can be ordered upon return.
272type ProjectOrder struct {
273 // The field in which to order projects by. (Required.)
274 Field ProjectOrderField `json:"field"`
275 // The direction in which to order projects by the specified field. (Required.)
276 Direction OrderDirection `json:"direction"`
277}
278
279// ReactionOrder represents ways in which lists of reactions can be ordered upon return.
280type ReactionOrder struct {
281 // The field in which to order reactions by. (Required.)
282 Field ReactionOrderField `json:"field"`
283 // The direction in which to order reactions by the specified field. (Required.)
284 Direction OrderDirection `json:"direction"`
285}
286
287// RefOrder represents ways in which lists of git refs can be ordered upon return.
288type RefOrder struct {
289 // The field in which to order refs by. (Required.)
290 Field RefOrderField `json:"field"`
291 // The direction in which to order refs by the specified field. (Required.)
292 Direction OrderDirection `json:"direction"`
293}
294
295// ReleaseOrder represents ways in which lists of releases can be ordered upon return.
296type ReleaseOrder struct {
297 // The field in which to order releases by. (Required.)
298 Field ReleaseOrderField `json:"field"`
299 // The direction in which to order releases by the specified field. (Required.)
300 Direction OrderDirection `json:"direction"`
301}
302
303// RemoveOutsideCollaboratorInput is an autogenerated input type of RemoveOutsideCollaborator.
304type RemoveOutsideCollaboratorInput struct {
305 // The ID of the outside collaborator to remove. (Required.)
306 UserID ID `json:"userId"`
307 // The ID of the organization to remove the outside collaborator from. (Required.)
308 OrganizationID ID `json:"organizationId"`
309
310 // A unique identifier for the client performing the mutation. (Optional.)
311 ClientMutationID *String `json:"clientMutationId,omitempty"`
312}
313
314// RemoveReactionInput is an autogenerated input type of RemoveReaction.
315type RemoveReactionInput struct {
316 // The Node ID of the subject to modify. (Required.)
317 SubjectID ID `json:"subjectId"`
318 // The name of the emoji reaction to remove. (Required.)
319 Content ReactionContent `json:"content"`
320
321 // A unique identifier for the client performing the mutation. (Optional.)
322 ClientMutationID *String `json:"clientMutationId,omitempty"`
323}
324
325// RemoveStarInput is an autogenerated input type of RemoveStar.
326type RemoveStarInput struct {
327 // The Starrable ID to unstar. (Required.)
328 StarrableID ID `json:"starrableId"`
329
330 // A unique identifier for the client performing the mutation. (Optional.)
331 ClientMutationID *String `json:"clientMutationId,omitempty"`
332}
333
334// RepositoryOrder represents ordering options for repository connections.
335type RepositoryOrder struct {
336 // The field to order repositories by. (Required.)
337 Field RepositoryOrderField `json:"field"`
338 // The ordering direction. (Required.)
339 Direction OrderDirection `json:"direction"`
340}
341
342// RequestReviewsInput is an autogenerated input type of RequestReviews.
343type RequestReviewsInput struct {
344 // The Node ID of the pull request to modify. (Required.)
345 PullRequestID ID `json:"pullRequestId"`
346
347 // The Node IDs of the user to request. (Optional.)
348 UserIDs *[]ID `json:"userIds,omitempty"`
349 // The Node IDs of the team to request. (Optional.)
350 TeamIDs *[]ID `json:"teamIds,omitempty"`
351 // Add users to the set rather than replace. (Optional.)
352 Union *Boolean `json:"union,omitempty"`
353 // A unique identifier for the client performing the mutation. (Optional.)
354 ClientMutationID *String `json:"clientMutationId,omitempty"`
355}
356
357// StarOrder represents ways in which star connections can be ordered.
358type StarOrder struct {
359 // The field in which to order nodes by. (Required.)
360 Field StarOrderField `json:"field"`
361 // The direction in which to order nodes. (Required.)
362 Direction OrderDirection `json:"direction"`
363}
364
365// SubmitPullRequestReviewInput is an autogenerated input type of SubmitPullRequestReview.
366type SubmitPullRequestReviewInput struct {
367 // The Pull Request Review ID to submit. (Required.)
368 PullRequestReviewID ID `json:"pullRequestReviewId"`
369 // The event to send to the Pull Request Review. (Required.)
370 Event PullRequestReviewEvent `json:"event"`
371
372 // The text field to set on the Pull Request Review. (Optional.)
373 Body *String `json:"body,omitempty"`
374 // A unique identifier for the client performing the mutation. (Optional.)
375 ClientMutationID *String `json:"clientMutationId,omitempty"`
376}
377
378// TeamMemberOrder represents ordering options for team member connections.
379type TeamMemberOrder struct {
380 // The field to order team members by. (Required.)
381 Field TeamMemberOrderField `json:"field"`
382 // The ordering direction. (Required.)
383 Direction OrderDirection `json:"direction"`
384}
385
386// TeamOrder represents ways in which team connections can be ordered.
387type TeamOrder struct {
388 // The field in which to order nodes by. (Required.)
389 Field TeamOrderField `json:"field"`
390 // The direction in which to order nodes. (Required.)
391 Direction OrderDirection `json:"direction"`
392}
393
394// TeamRepositoryOrder represents ordering options for team repository connections.
395type TeamRepositoryOrder struct {
396 // The field to order repositories by. (Required.)
397 Field TeamRepositoryOrderField `json:"field"`
398 // The ordering direction. (Required.)
399 Direction OrderDirection `json:"direction"`
400}
401
402// UpdateProjectCardInput is an autogenerated input type of UpdateProjectCard.
403type UpdateProjectCardInput struct {
404 // The ProjectCard ID to update. (Required.)
405 ProjectCardID ID `json:"projectCardId"`
406 // The note of ProjectCard. (Required.)
407 Note String `json:"note"`
408
409 // A unique identifier for the client performing the mutation. (Optional.)
410 ClientMutationID *String `json:"clientMutationId,omitempty"`
411}
412
413// UpdateProjectColumnInput is an autogenerated input type of UpdateProjectColumn.
414type UpdateProjectColumnInput struct {
415 // The ProjectColumn ID to update. (Required.)
416 ProjectColumnID ID `json:"projectColumnId"`
417 // The name of project column. (Required.)
418 Name String `json:"name"`
419
420 // A unique identifier for the client performing the mutation. (Optional.)
421 ClientMutationID *String `json:"clientMutationId,omitempty"`
422}
423
424// UpdateProjectInput is an autogenerated input type of UpdateProject.
425type UpdateProjectInput struct {
426 // The Project ID to update. (Required.)
427 ProjectID ID `json:"projectId"`
428
429 // The name of project. (Optional.)
430 Name *String `json:"name,omitempty"`
431 // The description of project. (Optional.)
432 Body *String `json:"body,omitempty"`
433 // Whether the project is open or closed. (Optional.)
434 State *ProjectState `json:"state,omitempty"`
435 // Whether the project is public or not. (Optional.)
436 Public *Boolean `json:"public,omitempty"`
437 // A unique identifier for the client performing the mutation. (Optional.)
438 ClientMutationID *String `json:"clientMutationId,omitempty"`
439}
440
441// UpdatePullRequestReviewCommentInput is an autogenerated input type of UpdatePullRequestReviewComment.
442type UpdatePullRequestReviewCommentInput struct {
443 // The Node ID of the comment to modify. (Required.)
444 PullRequestReviewCommentID ID `json:"pullRequestReviewCommentId"`
445 // The text of the comment. (Required.)
446 Body String `json:"body"`
447
448 // A unique identifier for the client performing the mutation. (Optional.)
449 ClientMutationID *String `json:"clientMutationId,omitempty"`
450}
451
452// UpdatePullRequestReviewInput is an autogenerated input type of UpdatePullRequestReview.
453type UpdatePullRequestReviewInput struct {
454 // The Node ID of the pull request review to modify. (Required.)
455 PullRequestReviewID ID `json:"pullRequestReviewId"`
456 // The contents of the pull request review body. (Required.)
457 Body String `json:"body"`
458
459 // A unique identifier for the client performing the mutation. (Optional.)
460 ClientMutationID *String `json:"clientMutationId,omitempty"`
461}
462
463// UpdateSubscriptionInput is an autogenerated input type of UpdateSubscription.
464type UpdateSubscriptionInput struct {
465 // The Node ID of the subscribable object to modify. (Required.)
466 SubscribableID ID `json:"subscribableId"`
467 // The new state of the subscription. (Required.)
468 State SubscriptionState `json:"state"`
469
470 // A unique identifier for the client performing the mutation. (Optional.)
471 ClientMutationID *String `json:"clientMutationId,omitempty"`
472}
473
474// UpdateTopicsInput is an autogenerated input type of UpdateTopics.
475type UpdateTopicsInput struct {
476 // The Node ID of the repository. (Required.)
477 RepositoryID ID `json:"repositoryId"`
478 // An array of topic names. (Required.)
479 TopicNames []String `json:"topicNames"`
480
481 // A unique identifier for the client performing the mutation. (Optional.)
482 ClientMutationID *String `json:"clientMutationId,omitempty"`
483}