1// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3package graph
4
5import (
6 "bytes"
7 "context"
8 "errors"
9 "sync/atomic"
10
11 "github.com/99designs/gqlgen/graphql"
12 "github.com/99designs/gqlgen/graphql/introspection"
13 "github.com/git-bug/git-bug/api/graphql/models"
14 gqlparser "github.com/vektah/gqlparser/v2"
15 "github.com/vektah/gqlparser/v2/ast"
16)
17
18// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
19func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
20 return &executableSchema{
21 schema: cfg.Schema,
22 resolvers: cfg.Resolvers,
23 directives: cfg.Directives,
24 complexity: cfg.Complexity,
25 }
26}
27
28type Config struct {
29 Schema *ast.Schema
30 Resolvers ResolverRoot
31 Directives DirectiveRoot
32 Complexity ComplexityRoot
33}
34
35type ResolverRoot interface {
36 Bug() BugResolver
37 BugAddCommentOperation() BugAddCommentOperationResolver
38 BugAddCommentTimelineItem() BugAddCommentTimelineItemResolver
39 BugComment() BugCommentResolver
40 BugCommentHistoryStep() BugCommentHistoryStepResolver
41 BugCreateOperation() BugCreateOperationResolver
42 BugCreateTimelineItem() BugCreateTimelineItemResolver
43 BugEditCommentOperation() BugEditCommentOperationResolver
44 BugLabelChangeOperation() BugLabelChangeOperationResolver
45 BugLabelChangeTimelineItem() BugLabelChangeTimelineItemResolver
46 BugSetStatusOperation() BugSetStatusOperationResolver
47 BugSetStatusTimelineItem() BugSetStatusTimelineItemResolver
48 BugSetTitleOperation() BugSetTitleOperationResolver
49 BugSetTitleTimelineItem() BugSetTitleTimelineItemResolver
50 Color() ColorResolver
51 Identity() IdentityResolver
52 Label() LabelResolver
53 Mutation() MutationResolver
54 Query() QueryResolver
55 Repository() RepositoryResolver
56 Subscription() SubscriptionResolver
57}
58
59type DirectiveRoot struct {
60}
61
62type ComplexityRoot struct {
63 Bug struct {
64 Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
65 Author func(childComplexity int) int
66 Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
67 CreatedAt func(childComplexity int) int
68 HumanID func(childComplexity int) int
69 Id func(childComplexity int) int
70 Labels func(childComplexity int) int
71 LastEdit func(childComplexity int) int
72 Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
73 Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
74 Status func(childComplexity int) int
75 Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
76 Title func(childComplexity int) int
77 }
78
79 BugAddCommentAndClosePayload struct {
80 Bug func(childComplexity int) int
81 ClientMutationID func(childComplexity int) int
82 CommentOperation func(childComplexity int) int
83 StatusOperation func(childComplexity int) int
84 }
85
86 BugAddCommentAndReopenPayload struct {
87 Bug func(childComplexity int) int
88 ClientMutationID func(childComplexity int) int
89 CommentOperation func(childComplexity int) int
90 StatusOperation func(childComplexity int) int
91 }
92
93 BugAddCommentOperation struct {
94 Author func(childComplexity int) int
95 Files func(childComplexity int) int
96 Id func(childComplexity int) int
97 Message func(childComplexity int) int
98 Time func(childComplexity int) int
99 }
100
101 BugAddCommentPayload struct {
102 Bug func(childComplexity int) int
103 ClientMutationID func(childComplexity int) int
104 Operation func(childComplexity int) int
105 }
106
107 BugAddCommentTimelineItem struct {
108 Author func(childComplexity int) int
109 CombinedId func(childComplexity int) int
110 CreatedAt func(childComplexity int) int
111 Edited func(childComplexity int) int
112 Files func(childComplexity int) int
113 History func(childComplexity int) int
114 LastEdit func(childComplexity int) int
115 Message func(childComplexity int) int
116 MessageIsEmpty func(childComplexity int) int
117 }
118
119 BugChangeLabelPayload struct {
120 Bug func(childComplexity int) int
121 ClientMutationID func(childComplexity int) int
122 Operation func(childComplexity int) int
123 Results func(childComplexity int) int
124 }
125
126 BugComment struct {
127 Author func(childComplexity int) int
128 CombinedId func(childComplexity int) int
129 Files func(childComplexity int) int
130 Message func(childComplexity int) int
131 }
132
133 BugCommentConnection struct {
134 Edges func(childComplexity int) int
135 Nodes func(childComplexity int) int
136 PageInfo func(childComplexity int) int
137 TotalCount func(childComplexity int) int
138 }
139
140 BugCommentEdge struct {
141 Cursor func(childComplexity int) int
142 Node func(childComplexity int) int
143 }
144
145 BugCommentHistoryStep struct {
146 Date func(childComplexity int) int
147 Message func(childComplexity int) int
148 }
149
150 BugConnection struct {
151 Edges func(childComplexity int) int
152 Nodes func(childComplexity int) int
153 PageInfo func(childComplexity int) int
154 TotalCount func(childComplexity int) int
155 }
156
157 BugCreateOperation struct {
158 Author func(childComplexity int) int
159 Files func(childComplexity int) int
160 Id func(childComplexity int) int
161 Message func(childComplexity int) int
162 Time func(childComplexity int) int
163 Title func(childComplexity int) int
164 }
165
166 BugCreatePayload struct {
167 Bug func(childComplexity int) int
168 ClientMutationID func(childComplexity int) int
169 Operation func(childComplexity int) int
170 }
171
172 BugCreateTimelineItem struct {
173 Author func(childComplexity int) int
174 CombinedId func(childComplexity int) int
175 CreatedAt func(childComplexity int) int
176 Edited func(childComplexity int) int
177 Files func(childComplexity int) int
178 History func(childComplexity int) int
179 LastEdit func(childComplexity int) int
180 Message func(childComplexity int) int
181 MessageIsEmpty func(childComplexity int) int
182 }
183
184 BugEdge struct {
185 Cursor func(childComplexity int) int
186 Node func(childComplexity int) int
187 }
188
189 BugEditCommentOperation struct {
190 Author func(childComplexity int) int
191 Files func(childComplexity int) int
192 Id func(childComplexity int) int
193 Message func(childComplexity int) int
194 Target func(childComplexity int) int
195 Time func(childComplexity int) int
196 }
197
198 BugEditCommentPayload struct {
199 Bug func(childComplexity int) int
200 ClientMutationID func(childComplexity int) int
201 Operation func(childComplexity int) int
202 }
203
204 BugEvent struct {
205 Bug func(childComplexity int) int
206 Type func(childComplexity int) int
207 }
208
209 BugLabelChangeOperation struct {
210 Added func(childComplexity int) int
211 Author func(childComplexity int) int
212 Id func(childComplexity int) int
213 Removed func(childComplexity int) int
214 Time func(childComplexity int) int
215 }
216
217 BugLabelChangeTimelineItem struct {
218 Added func(childComplexity int) int
219 Author func(childComplexity int) int
220 CombinedId func(childComplexity int) int
221 Date func(childComplexity int) int
222 Removed func(childComplexity int) int
223 }
224
225 BugSetStatusOperation struct {
226 Author func(childComplexity int) int
227 Id func(childComplexity int) int
228 Status func(childComplexity int) int
229 Time func(childComplexity int) int
230 }
231
232 BugSetStatusTimelineItem struct {
233 Author func(childComplexity int) int
234 CombinedId func(childComplexity int) int
235 Date func(childComplexity int) int
236 Status func(childComplexity int) int
237 }
238
239 BugSetTitleOperation struct {
240 Author func(childComplexity int) int
241 Id func(childComplexity int) int
242 Time func(childComplexity int) int
243 Title func(childComplexity int) int
244 Was func(childComplexity int) int
245 }
246
247 BugSetTitlePayload struct {
248 Bug func(childComplexity int) int
249 ClientMutationID func(childComplexity int) int
250 Operation func(childComplexity int) int
251 }
252
253 BugSetTitleTimelineItem struct {
254 Author func(childComplexity int) int
255 CombinedId func(childComplexity int) int
256 Date func(childComplexity int) int
257 Title func(childComplexity int) int
258 Was func(childComplexity int) int
259 }
260
261 BugStatusClosePayload struct {
262 Bug func(childComplexity int) int
263 ClientMutationID func(childComplexity int) int
264 Operation func(childComplexity int) int
265 }
266
267 BugStatusOpenPayload struct {
268 Bug func(childComplexity int) int
269 ClientMutationID func(childComplexity int) int
270 Operation func(childComplexity int) int
271 }
272
273 BugTimelineItemConnection struct {
274 Edges func(childComplexity int) int
275 Nodes func(childComplexity int) int
276 PageInfo func(childComplexity int) int
277 TotalCount func(childComplexity int) int
278 }
279
280 BugTimelineItemEdge struct {
281 Cursor func(childComplexity int) int
282 Node func(childComplexity int) int
283 }
284
285 Color struct {
286 B func(childComplexity int) int
287 G func(childComplexity int) int
288 R func(childComplexity int) int
289 }
290
291 EntityEvent struct {
292 Entity func(childComplexity int) int
293 Type func(childComplexity int) int
294 }
295
296 Identity struct {
297 AvatarUrl func(childComplexity int) int
298 DisplayName func(childComplexity int) int
299 Email func(childComplexity int) int
300 HumanID func(childComplexity int) int
301 Id func(childComplexity int) int
302 IsProtected func(childComplexity int) int
303 Login func(childComplexity int) int
304 Name func(childComplexity int) int
305 }
306
307 IdentityConnection struct {
308 Edges func(childComplexity int) int
309 Nodes func(childComplexity int) int
310 PageInfo func(childComplexity int) int
311 TotalCount func(childComplexity int) int
312 }
313
314 IdentityEdge struct {
315 Cursor func(childComplexity int) int
316 Node func(childComplexity int) int
317 }
318
319 IdentityEvent struct {
320 Identity func(childComplexity int) int
321 Type func(childComplexity int) int
322 }
323
324 Label struct {
325 Color func(childComplexity int) int
326 Name func(childComplexity int) int
327 }
328
329 LabelChangeResult struct {
330 Label func(childComplexity int) int
331 Status func(childComplexity int) int
332 }
333
334 LabelConnection struct {
335 Edges func(childComplexity int) int
336 Nodes func(childComplexity int) int
337 PageInfo func(childComplexity int) int
338 TotalCount func(childComplexity int) int
339 }
340
341 LabelEdge struct {
342 Cursor func(childComplexity int) int
343 Node func(childComplexity int) int
344 }
345
346 Mutation struct {
347 BugAddComment func(childComplexity int, input models.BugAddCommentInput) int
348 BugAddCommentAndClose func(childComplexity int, input models.BugAddCommentAndCloseInput) int
349 BugAddCommentAndReopen func(childComplexity int, input models.BugAddCommentAndReopenInput) int
350 BugChangeLabels func(childComplexity int, input *models.BugChangeLabelInput) int
351 BugCreate func(childComplexity int, input models.BugCreateInput) int
352 BugEditComment func(childComplexity int, input models.BugEditCommentInput) int
353 BugSetTitle func(childComplexity int, input models.BugSetTitleInput) int
354 BugStatusClose func(childComplexity int, input models.BugStatusCloseInput) int
355 BugStatusOpen func(childComplexity int, input models.BugStatusOpenInput) int
356 }
357
358 OperationConnection struct {
359 Edges func(childComplexity int) int
360 Nodes func(childComplexity int) int
361 PageInfo func(childComplexity int) int
362 TotalCount func(childComplexity int) int
363 }
364
365 OperationEdge struct {
366 Cursor func(childComplexity int) int
367 Node func(childComplexity int) int
368 }
369
370 PageInfo struct {
371 EndCursor func(childComplexity int) int
372 HasNextPage func(childComplexity int) int
373 HasPreviousPage func(childComplexity int) int
374 StartCursor func(childComplexity int) int
375 }
376
377 Query struct {
378 Repositories func(childComplexity int, after *string, before *string, first *int, last *int) int
379 Repository func(childComplexity int, ref *string) int
380 ServerConfig func(childComplexity int) int
381 }
382
383 Repository struct {
384 AllBugs func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
385 AllIdentities func(childComplexity int, after *string, before *string, first *int, last *int) int
386 Bug func(childComplexity int, prefix string) int
387 Identity func(childComplexity int, prefix string) int
388 LocalName func(childComplexity int) int
389 Name func(childComplexity int) int
390 UserIdentity func(childComplexity int) int
391 ValidLabels func(childComplexity int, after *string, before *string, first *int, last *int) int
392 }
393
394 RepositoryConnection struct {
395 Edges func(childComplexity int) int
396 Nodes func(childComplexity int) int
397 PageInfo func(childComplexity int) int
398 TotalCount func(childComplexity int) int
399 }
400
401 RepositoryEdge struct {
402 Cursor func(childComplexity int) int
403 Node func(childComplexity int) int
404 }
405
406 ServerConfig struct {
407 AuthMode func(childComplexity int) int
408 LoginProviders func(childComplexity int) int
409 }
410
411 Subscription struct {
412 AllEvents func(childComplexity int, repoRef *string, typename *string) int
413 BugEvents func(childComplexity int, repoRef *string) int
414 IdentityEvents func(childComplexity int, repoRef *string) int
415 }
416}
417
418type executableSchema struct {
419 schema *ast.Schema
420 resolvers ResolverRoot
421 directives DirectiveRoot
422 complexity ComplexityRoot
423}
424
425func (e *executableSchema) Schema() *ast.Schema {
426 if e.schema != nil {
427 return e.schema
428 }
429 return parsedSchema
430}
431
432func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
433 ec := executionContext{nil, e, 0, 0, nil}
434 _ = ec
435 switch typeName + "." + field {
436
437 case "Bug.actors":
438 if e.complexity.Bug.Actors == nil {
439 break
440 }
441
442 args, err := ec.field_Bug_actors_args(ctx, rawArgs)
443 if err != nil {
444 return 0, false
445 }
446
447 return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
448
449 case "Bug.author":
450 if e.complexity.Bug.Author == nil {
451 break
452 }
453
454 return e.complexity.Bug.Author(childComplexity), true
455
456 case "Bug.comments":
457 if e.complexity.Bug.Comments == nil {
458 break
459 }
460
461 args, err := ec.field_Bug_comments_args(ctx, rawArgs)
462 if err != nil {
463 return 0, false
464 }
465
466 return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
467
468 case "Bug.createdAt":
469 if e.complexity.Bug.CreatedAt == nil {
470 break
471 }
472
473 return e.complexity.Bug.CreatedAt(childComplexity), true
474
475 case "Bug.humanId":
476 if e.complexity.Bug.HumanID == nil {
477 break
478 }
479
480 return e.complexity.Bug.HumanID(childComplexity), true
481
482 case "Bug.id":
483 if e.complexity.Bug.Id == nil {
484 break
485 }
486
487 return e.complexity.Bug.Id(childComplexity), true
488
489 case "Bug.labels":
490 if e.complexity.Bug.Labels == nil {
491 break
492 }
493
494 return e.complexity.Bug.Labels(childComplexity), true
495
496 case "Bug.lastEdit":
497 if e.complexity.Bug.LastEdit == nil {
498 break
499 }
500
501 return e.complexity.Bug.LastEdit(childComplexity), true
502
503 case "Bug.operations":
504 if e.complexity.Bug.Operations == nil {
505 break
506 }
507
508 args, err := ec.field_Bug_operations_args(ctx, rawArgs)
509 if err != nil {
510 return 0, false
511 }
512
513 return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
514
515 case "Bug.participants":
516 if e.complexity.Bug.Participants == nil {
517 break
518 }
519
520 args, err := ec.field_Bug_participants_args(ctx, rawArgs)
521 if err != nil {
522 return 0, false
523 }
524
525 return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
526
527 case "Bug.status":
528 if e.complexity.Bug.Status == nil {
529 break
530 }
531
532 return e.complexity.Bug.Status(childComplexity), true
533
534 case "Bug.timeline":
535 if e.complexity.Bug.Timeline == nil {
536 break
537 }
538
539 args, err := ec.field_Bug_timeline_args(ctx, rawArgs)
540 if err != nil {
541 return 0, false
542 }
543
544 return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
545
546 case "Bug.title":
547 if e.complexity.Bug.Title == nil {
548 break
549 }
550
551 return e.complexity.Bug.Title(childComplexity), true
552
553 case "BugAddCommentAndClosePayload.bug":
554 if e.complexity.BugAddCommentAndClosePayload.Bug == nil {
555 break
556 }
557
558 return e.complexity.BugAddCommentAndClosePayload.Bug(childComplexity), true
559
560 case "BugAddCommentAndClosePayload.clientMutationId":
561 if e.complexity.BugAddCommentAndClosePayload.ClientMutationID == nil {
562 break
563 }
564
565 return e.complexity.BugAddCommentAndClosePayload.ClientMutationID(childComplexity), true
566
567 case "BugAddCommentAndClosePayload.commentOperation":
568 if e.complexity.BugAddCommentAndClosePayload.CommentOperation == nil {
569 break
570 }
571
572 return e.complexity.BugAddCommentAndClosePayload.CommentOperation(childComplexity), true
573
574 case "BugAddCommentAndClosePayload.statusOperation":
575 if e.complexity.BugAddCommentAndClosePayload.StatusOperation == nil {
576 break
577 }
578
579 return e.complexity.BugAddCommentAndClosePayload.StatusOperation(childComplexity), true
580
581 case "BugAddCommentAndReopenPayload.bug":
582 if e.complexity.BugAddCommentAndReopenPayload.Bug == nil {
583 break
584 }
585
586 return e.complexity.BugAddCommentAndReopenPayload.Bug(childComplexity), true
587
588 case "BugAddCommentAndReopenPayload.clientMutationId":
589 if e.complexity.BugAddCommentAndReopenPayload.ClientMutationID == nil {
590 break
591 }
592
593 return e.complexity.BugAddCommentAndReopenPayload.ClientMutationID(childComplexity), true
594
595 case "BugAddCommentAndReopenPayload.commentOperation":
596 if e.complexity.BugAddCommentAndReopenPayload.CommentOperation == nil {
597 break
598 }
599
600 return e.complexity.BugAddCommentAndReopenPayload.CommentOperation(childComplexity), true
601
602 case "BugAddCommentAndReopenPayload.statusOperation":
603 if e.complexity.BugAddCommentAndReopenPayload.StatusOperation == nil {
604 break
605 }
606
607 return e.complexity.BugAddCommentAndReopenPayload.StatusOperation(childComplexity), true
608
609 case "BugAddCommentOperation.author":
610 if e.complexity.BugAddCommentOperation.Author == nil {
611 break
612 }
613
614 return e.complexity.BugAddCommentOperation.Author(childComplexity), true
615
616 case "BugAddCommentOperation.files":
617 if e.complexity.BugAddCommentOperation.Files == nil {
618 break
619 }
620
621 return e.complexity.BugAddCommentOperation.Files(childComplexity), true
622
623 case "BugAddCommentOperation.id":
624 if e.complexity.BugAddCommentOperation.Id == nil {
625 break
626 }
627
628 return e.complexity.BugAddCommentOperation.Id(childComplexity), true
629
630 case "BugAddCommentOperation.message":
631 if e.complexity.BugAddCommentOperation.Message == nil {
632 break
633 }
634
635 return e.complexity.BugAddCommentOperation.Message(childComplexity), true
636
637 case "BugAddCommentOperation.date":
638 if e.complexity.BugAddCommentOperation.Time == nil {
639 break
640 }
641
642 return e.complexity.BugAddCommentOperation.Time(childComplexity), true
643
644 case "BugAddCommentPayload.bug":
645 if e.complexity.BugAddCommentPayload.Bug == nil {
646 break
647 }
648
649 return e.complexity.BugAddCommentPayload.Bug(childComplexity), true
650
651 case "BugAddCommentPayload.clientMutationId":
652 if e.complexity.BugAddCommentPayload.ClientMutationID == nil {
653 break
654 }
655
656 return e.complexity.BugAddCommentPayload.ClientMutationID(childComplexity), true
657
658 case "BugAddCommentPayload.operation":
659 if e.complexity.BugAddCommentPayload.Operation == nil {
660 break
661 }
662
663 return e.complexity.BugAddCommentPayload.Operation(childComplexity), true
664
665 case "BugAddCommentTimelineItem.author":
666 if e.complexity.BugAddCommentTimelineItem.Author == nil {
667 break
668 }
669
670 return e.complexity.BugAddCommentTimelineItem.Author(childComplexity), true
671
672 case "BugAddCommentTimelineItem.id":
673 if e.complexity.BugAddCommentTimelineItem.CombinedId == nil {
674 break
675 }
676
677 return e.complexity.BugAddCommentTimelineItem.CombinedId(childComplexity), true
678
679 case "BugAddCommentTimelineItem.createdAt":
680 if e.complexity.BugAddCommentTimelineItem.CreatedAt == nil {
681 break
682 }
683
684 return e.complexity.BugAddCommentTimelineItem.CreatedAt(childComplexity), true
685
686 case "BugAddCommentTimelineItem.edited":
687 if e.complexity.BugAddCommentTimelineItem.Edited == nil {
688 break
689 }
690
691 return e.complexity.BugAddCommentTimelineItem.Edited(childComplexity), true
692
693 case "BugAddCommentTimelineItem.files":
694 if e.complexity.BugAddCommentTimelineItem.Files == nil {
695 break
696 }
697
698 return e.complexity.BugAddCommentTimelineItem.Files(childComplexity), true
699
700 case "BugAddCommentTimelineItem.history":
701 if e.complexity.BugAddCommentTimelineItem.History == nil {
702 break
703 }
704
705 return e.complexity.BugAddCommentTimelineItem.History(childComplexity), true
706
707 case "BugAddCommentTimelineItem.lastEdit":
708 if e.complexity.BugAddCommentTimelineItem.LastEdit == nil {
709 break
710 }
711
712 return e.complexity.BugAddCommentTimelineItem.LastEdit(childComplexity), true
713
714 case "BugAddCommentTimelineItem.message":
715 if e.complexity.BugAddCommentTimelineItem.Message == nil {
716 break
717 }
718
719 return e.complexity.BugAddCommentTimelineItem.Message(childComplexity), true
720
721 case "BugAddCommentTimelineItem.messageIsEmpty":
722 if e.complexity.BugAddCommentTimelineItem.MessageIsEmpty == nil {
723 break
724 }
725
726 return e.complexity.BugAddCommentTimelineItem.MessageIsEmpty(childComplexity), true
727
728 case "BugChangeLabelPayload.bug":
729 if e.complexity.BugChangeLabelPayload.Bug == nil {
730 break
731 }
732
733 return e.complexity.BugChangeLabelPayload.Bug(childComplexity), true
734
735 case "BugChangeLabelPayload.clientMutationId":
736 if e.complexity.BugChangeLabelPayload.ClientMutationID == nil {
737 break
738 }
739
740 return e.complexity.BugChangeLabelPayload.ClientMutationID(childComplexity), true
741
742 case "BugChangeLabelPayload.operation":
743 if e.complexity.BugChangeLabelPayload.Operation == nil {
744 break
745 }
746
747 return e.complexity.BugChangeLabelPayload.Operation(childComplexity), true
748
749 case "BugChangeLabelPayload.results":
750 if e.complexity.BugChangeLabelPayload.Results == nil {
751 break
752 }
753
754 return e.complexity.BugChangeLabelPayload.Results(childComplexity), true
755
756 case "BugComment.author":
757 if e.complexity.BugComment.Author == nil {
758 break
759 }
760
761 return e.complexity.BugComment.Author(childComplexity), true
762
763 case "BugComment.id":
764 if e.complexity.BugComment.CombinedId == nil {
765 break
766 }
767
768 return e.complexity.BugComment.CombinedId(childComplexity), true
769
770 case "BugComment.files":
771 if e.complexity.BugComment.Files == nil {
772 break
773 }
774
775 return e.complexity.BugComment.Files(childComplexity), true
776
777 case "BugComment.message":
778 if e.complexity.BugComment.Message == nil {
779 break
780 }
781
782 return e.complexity.BugComment.Message(childComplexity), true
783
784 case "BugCommentConnection.edges":
785 if e.complexity.BugCommentConnection.Edges == nil {
786 break
787 }
788
789 return e.complexity.BugCommentConnection.Edges(childComplexity), true
790
791 case "BugCommentConnection.nodes":
792 if e.complexity.BugCommentConnection.Nodes == nil {
793 break
794 }
795
796 return e.complexity.BugCommentConnection.Nodes(childComplexity), true
797
798 case "BugCommentConnection.pageInfo":
799 if e.complexity.BugCommentConnection.PageInfo == nil {
800 break
801 }
802
803 return e.complexity.BugCommentConnection.PageInfo(childComplexity), true
804
805 case "BugCommentConnection.totalCount":
806 if e.complexity.BugCommentConnection.TotalCount == nil {
807 break
808 }
809
810 return e.complexity.BugCommentConnection.TotalCount(childComplexity), true
811
812 case "BugCommentEdge.cursor":
813 if e.complexity.BugCommentEdge.Cursor == nil {
814 break
815 }
816
817 return e.complexity.BugCommentEdge.Cursor(childComplexity), true
818
819 case "BugCommentEdge.node":
820 if e.complexity.BugCommentEdge.Node == nil {
821 break
822 }
823
824 return e.complexity.BugCommentEdge.Node(childComplexity), true
825
826 case "BugCommentHistoryStep.date":
827 if e.complexity.BugCommentHistoryStep.Date == nil {
828 break
829 }
830
831 return e.complexity.BugCommentHistoryStep.Date(childComplexity), true
832
833 case "BugCommentHistoryStep.message":
834 if e.complexity.BugCommentHistoryStep.Message == nil {
835 break
836 }
837
838 return e.complexity.BugCommentHistoryStep.Message(childComplexity), true
839
840 case "BugConnection.edges":
841 if e.complexity.BugConnection.Edges == nil {
842 break
843 }
844
845 return e.complexity.BugConnection.Edges(childComplexity), true
846
847 case "BugConnection.nodes":
848 if e.complexity.BugConnection.Nodes == nil {
849 break
850 }
851
852 return e.complexity.BugConnection.Nodes(childComplexity), true
853
854 case "BugConnection.pageInfo":
855 if e.complexity.BugConnection.PageInfo == nil {
856 break
857 }
858
859 return e.complexity.BugConnection.PageInfo(childComplexity), true
860
861 case "BugConnection.totalCount":
862 if e.complexity.BugConnection.TotalCount == nil {
863 break
864 }
865
866 return e.complexity.BugConnection.TotalCount(childComplexity), true
867
868 case "BugCreateOperation.author":
869 if e.complexity.BugCreateOperation.Author == nil {
870 break
871 }
872
873 return e.complexity.BugCreateOperation.Author(childComplexity), true
874
875 case "BugCreateOperation.files":
876 if e.complexity.BugCreateOperation.Files == nil {
877 break
878 }
879
880 return e.complexity.BugCreateOperation.Files(childComplexity), true
881
882 case "BugCreateOperation.id":
883 if e.complexity.BugCreateOperation.Id == nil {
884 break
885 }
886
887 return e.complexity.BugCreateOperation.Id(childComplexity), true
888
889 case "BugCreateOperation.message":
890 if e.complexity.BugCreateOperation.Message == nil {
891 break
892 }
893
894 return e.complexity.BugCreateOperation.Message(childComplexity), true
895
896 case "BugCreateOperation.date":
897 if e.complexity.BugCreateOperation.Time == nil {
898 break
899 }
900
901 return e.complexity.BugCreateOperation.Time(childComplexity), true
902
903 case "BugCreateOperation.title":
904 if e.complexity.BugCreateOperation.Title == nil {
905 break
906 }
907
908 return e.complexity.BugCreateOperation.Title(childComplexity), true
909
910 case "BugCreatePayload.bug":
911 if e.complexity.BugCreatePayload.Bug == nil {
912 break
913 }
914
915 return e.complexity.BugCreatePayload.Bug(childComplexity), true
916
917 case "BugCreatePayload.clientMutationId":
918 if e.complexity.BugCreatePayload.ClientMutationID == nil {
919 break
920 }
921
922 return e.complexity.BugCreatePayload.ClientMutationID(childComplexity), true
923
924 case "BugCreatePayload.operation":
925 if e.complexity.BugCreatePayload.Operation == nil {
926 break
927 }
928
929 return e.complexity.BugCreatePayload.Operation(childComplexity), true
930
931 case "BugCreateTimelineItem.author":
932 if e.complexity.BugCreateTimelineItem.Author == nil {
933 break
934 }
935
936 return e.complexity.BugCreateTimelineItem.Author(childComplexity), true
937
938 case "BugCreateTimelineItem.id":
939 if e.complexity.BugCreateTimelineItem.CombinedId == nil {
940 break
941 }
942
943 return e.complexity.BugCreateTimelineItem.CombinedId(childComplexity), true
944
945 case "BugCreateTimelineItem.createdAt":
946 if e.complexity.BugCreateTimelineItem.CreatedAt == nil {
947 break
948 }
949
950 return e.complexity.BugCreateTimelineItem.CreatedAt(childComplexity), true
951
952 case "BugCreateTimelineItem.edited":
953 if e.complexity.BugCreateTimelineItem.Edited == nil {
954 break
955 }
956
957 return e.complexity.BugCreateTimelineItem.Edited(childComplexity), true
958
959 case "BugCreateTimelineItem.files":
960 if e.complexity.BugCreateTimelineItem.Files == nil {
961 break
962 }
963
964 return e.complexity.BugCreateTimelineItem.Files(childComplexity), true
965
966 case "BugCreateTimelineItem.history":
967 if e.complexity.BugCreateTimelineItem.History == nil {
968 break
969 }
970
971 return e.complexity.BugCreateTimelineItem.History(childComplexity), true
972
973 case "BugCreateTimelineItem.lastEdit":
974 if e.complexity.BugCreateTimelineItem.LastEdit == nil {
975 break
976 }
977
978 return e.complexity.BugCreateTimelineItem.LastEdit(childComplexity), true
979
980 case "BugCreateTimelineItem.message":
981 if e.complexity.BugCreateTimelineItem.Message == nil {
982 break
983 }
984
985 return e.complexity.BugCreateTimelineItem.Message(childComplexity), true
986
987 case "BugCreateTimelineItem.messageIsEmpty":
988 if e.complexity.BugCreateTimelineItem.MessageIsEmpty == nil {
989 break
990 }
991
992 return e.complexity.BugCreateTimelineItem.MessageIsEmpty(childComplexity), true
993
994 case "BugEdge.cursor":
995 if e.complexity.BugEdge.Cursor == nil {
996 break
997 }
998
999 return e.complexity.BugEdge.Cursor(childComplexity), true
1000
1001 case "BugEdge.node":
1002 if e.complexity.BugEdge.Node == nil {
1003 break
1004 }
1005
1006 return e.complexity.BugEdge.Node(childComplexity), true
1007
1008 case "BugEditCommentOperation.author":
1009 if e.complexity.BugEditCommentOperation.Author == nil {
1010 break
1011 }
1012
1013 return e.complexity.BugEditCommentOperation.Author(childComplexity), true
1014
1015 case "BugEditCommentOperation.files":
1016 if e.complexity.BugEditCommentOperation.Files == nil {
1017 break
1018 }
1019
1020 return e.complexity.BugEditCommentOperation.Files(childComplexity), true
1021
1022 case "BugEditCommentOperation.id":
1023 if e.complexity.BugEditCommentOperation.Id == nil {
1024 break
1025 }
1026
1027 return e.complexity.BugEditCommentOperation.Id(childComplexity), true
1028
1029 case "BugEditCommentOperation.message":
1030 if e.complexity.BugEditCommentOperation.Message == nil {
1031 break
1032 }
1033
1034 return e.complexity.BugEditCommentOperation.Message(childComplexity), true
1035
1036 case "BugEditCommentOperation.target":
1037 if e.complexity.BugEditCommentOperation.Target == nil {
1038 break
1039 }
1040
1041 return e.complexity.BugEditCommentOperation.Target(childComplexity), true
1042
1043 case "BugEditCommentOperation.date":
1044 if e.complexity.BugEditCommentOperation.Time == nil {
1045 break
1046 }
1047
1048 return e.complexity.BugEditCommentOperation.Time(childComplexity), true
1049
1050 case "BugEditCommentPayload.bug":
1051 if e.complexity.BugEditCommentPayload.Bug == nil {
1052 break
1053 }
1054
1055 return e.complexity.BugEditCommentPayload.Bug(childComplexity), true
1056
1057 case "BugEditCommentPayload.clientMutationId":
1058 if e.complexity.BugEditCommentPayload.ClientMutationID == nil {
1059 break
1060 }
1061
1062 return e.complexity.BugEditCommentPayload.ClientMutationID(childComplexity), true
1063
1064 case "BugEditCommentPayload.operation":
1065 if e.complexity.BugEditCommentPayload.Operation == nil {
1066 break
1067 }
1068
1069 return e.complexity.BugEditCommentPayload.Operation(childComplexity), true
1070
1071 case "BugEvent.bug":
1072 if e.complexity.BugEvent.Bug == nil {
1073 break
1074 }
1075
1076 return e.complexity.BugEvent.Bug(childComplexity), true
1077
1078 case "BugEvent.type":
1079 if e.complexity.BugEvent.Type == nil {
1080 break
1081 }
1082
1083 return e.complexity.BugEvent.Type(childComplexity), true
1084
1085 case "BugLabelChangeOperation.added":
1086 if e.complexity.BugLabelChangeOperation.Added == nil {
1087 break
1088 }
1089
1090 return e.complexity.BugLabelChangeOperation.Added(childComplexity), true
1091
1092 case "BugLabelChangeOperation.author":
1093 if e.complexity.BugLabelChangeOperation.Author == nil {
1094 break
1095 }
1096
1097 return e.complexity.BugLabelChangeOperation.Author(childComplexity), true
1098
1099 case "BugLabelChangeOperation.id":
1100 if e.complexity.BugLabelChangeOperation.Id == nil {
1101 break
1102 }
1103
1104 return e.complexity.BugLabelChangeOperation.Id(childComplexity), true
1105
1106 case "BugLabelChangeOperation.removed":
1107 if e.complexity.BugLabelChangeOperation.Removed == nil {
1108 break
1109 }
1110
1111 return e.complexity.BugLabelChangeOperation.Removed(childComplexity), true
1112
1113 case "BugLabelChangeOperation.date":
1114 if e.complexity.BugLabelChangeOperation.Time == nil {
1115 break
1116 }
1117
1118 return e.complexity.BugLabelChangeOperation.Time(childComplexity), true
1119
1120 case "BugLabelChangeTimelineItem.added":
1121 if e.complexity.BugLabelChangeTimelineItem.Added == nil {
1122 break
1123 }
1124
1125 return e.complexity.BugLabelChangeTimelineItem.Added(childComplexity), true
1126
1127 case "BugLabelChangeTimelineItem.author":
1128 if e.complexity.BugLabelChangeTimelineItem.Author == nil {
1129 break
1130 }
1131
1132 return e.complexity.BugLabelChangeTimelineItem.Author(childComplexity), true
1133
1134 case "BugLabelChangeTimelineItem.id":
1135 if e.complexity.BugLabelChangeTimelineItem.CombinedId == nil {
1136 break
1137 }
1138
1139 return e.complexity.BugLabelChangeTimelineItem.CombinedId(childComplexity), true
1140
1141 case "BugLabelChangeTimelineItem.date":
1142 if e.complexity.BugLabelChangeTimelineItem.Date == nil {
1143 break
1144 }
1145
1146 return e.complexity.BugLabelChangeTimelineItem.Date(childComplexity), true
1147
1148 case "BugLabelChangeTimelineItem.removed":
1149 if e.complexity.BugLabelChangeTimelineItem.Removed == nil {
1150 break
1151 }
1152
1153 return e.complexity.BugLabelChangeTimelineItem.Removed(childComplexity), true
1154
1155 case "BugSetStatusOperation.author":
1156 if e.complexity.BugSetStatusOperation.Author == nil {
1157 break
1158 }
1159
1160 return e.complexity.BugSetStatusOperation.Author(childComplexity), true
1161
1162 case "BugSetStatusOperation.id":
1163 if e.complexity.BugSetStatusOperation.Id == nil {
1164 break
1165 }
1166
1167 return e.complexity.BugSetStatusOperation.Id(childComplexity), true
1168
1169 case "BugSetStatusOperation.status":
1170 if e.complexity.BugSetStatusOperation.Status == nil {
1171 break
1172 }
1173
1174 return e.complexity.BugSetStatusOperation.Status(childComplexity), true
1175
1176 case "BugSetStatusOperation.date":
1177 if e.complexity.BugSetStatusOperation.Time == nil {
1178 break
1179 }
1180
1181 return e.complexity.BugSetStatusOperation.Time(childComplexity), true
1182
1183 case "BugSetStatusTimelineItem.author":
1184 if e.complexity.BugSetStatusTimelineItem.Author == nil {
1185 break
1186 }
1187
1188 return e.complexity.BugSetStatusTimelineItem.Author(childComplexity), true
1189
1190 case "BugSetStatusTimelineItem.id":
1191 if e.complexity.BugSetStatusTimelineItem.CombinedId == nil {
1192 break
1193 }
1194
1195 return e.complexity.BugSetStatusTimelineItem.CombinedId(childComplexity), true
1196
1197 case "BugSetStatusTimelineItem.date":
1198 if e.complexity.BugSetStatusTimelineItem.Date == nil {
1199 break
1200 }
1201
1202 return e.complexity.BugSetStatusTimelineItem.Date(childComplexity), true
1203
1204 case "BugSetStatusTimelineItem.status":
1205 if e.complexity.BugSetStatusTimelineItem.Status == nil {
1206 break
1207 }
1208
1209 return e.complexity.BugSetStatusTimelineItem.Status(childComplexity), true
1210
1211 case "BugSetTitleOperation.author":
1212 if e.complexity.BugSetTitleOperation.Author == nil {
1213 break
1214 }
1215
1216 return e.complexity.BugSetTitleOperation.Author(childComplexity), true
1217
1218 case "BugSetTitleOperation.id":
1219 if e.complexity.BugSetTitleOperation.Id == nil {
1220 break
1221 }
1222
1223 return e.complexity.BugSetTitleOperation.Id(childComplexity), true
1224
1225 case "BugSetTitleOperation.date":
1226 if e.complexity.BugSetTitleOperation.Time == nil {
1227 break
1228 }
1229
1230 return e.complexity.BugSetTitleOperation.Time(childComplexity), true
1231
1232 case "BugSetTitleOperation.title":
1233 if e.complexity.BugSetTitleOperation.Title == nil {
1234 break
1235 }
1236
1237 return e.complexity.BugSetTitleOperation.Title(childComplexity), true
1238
1239 case "BugSetTitleOperation.was":
1240 if e.complexity.BugSetTitleOperation.Was == nil {
1241 break
1242 }
1243
1244 return e.complexity.BugSetTitleOperation.Was(childComplexity), true
1245
1246 case "BugSetTitlePayload.bug":
1247 if e.complexity.BugSetTitlePayload.Bug == nil {
1248 break
1249 }
1250
1251 return e.complexity.BugSetTitlePayload.Bug(childComplexity), true
1252
1253 case "BugSetTitlePayload.clientMutationId":
1254 if e.complexity.BugSetTitlePayload.ClientMutationID == nil {
1255 break
1256 }
1257
1258 return e.complexity.BugSetTitlePayload.ClientMutationID(childComplexity), true
1259
1260 case "BugSetTitlePayload.operation":
1261 if e.complexity.BugSetTitlePayload.Operation == nil {
1262 break
1263 }
1264
1265 return e.complexity.BugSetTitlePayload.Operation(childComplexity), true
1266
1267 case "BugSetTitleTimelineItem.author":
1268 if e.complexity.BugSetTitleTimelineItem.Author == nil {
1269 break
1270 }
1271
1272 return e.complexity.BugSetTitleTimelineItem.Author(childComplexity), true
1273
1274 case "BugSetTitleTimelineItem.id":
1275 if e.complexity.BugSetTitleTimelineItem.CombinedId == nil {
1276 break
1277 }
1278
1279 return e.complexity.BugSetTitleTimelineItem.CombinedId(childComplexity), true
1280
1281 case "BugSetTitleTimelineItem.date":
1282 if e.complexity.BugSetTitleTimelineItem.Date == nil {
1283 break
1284 }
1285
1286 return e.complexity.BugSetTitleTimelineItem.Date(childComplexity), true
1287
1288 case "BugSetTitleTimelineItem.title":
1289 if e.complexity.BugSetTitleTimelineItem.Title == nil {
1290 break
1291 }
1292
1293 return e.complexity.BugSetTitleTimelineItem.Title(childComplexity), true
1294
1295 case "BugSetTitleTimelineItem.was":
1296 if e.complexity.BugSetTitleTimelineItem.Was == nil {
1297 break
1298 }
1299
1300 return e.complexity.BugSetTitleTimelineItem.Was(childComplexity), true
1301
1302 case "BugStatusClosePayload.bug":
1303 if e.complexity.BugStatusClosePayload.Bug == nil {
1304 break
1305 }
1306
1307 return e.complexity.BugStatusClosePayload.Bug(childComplexity), true
1308
1309 case "BugStatusClosePayload.clientMutationId":
1310 if e.complexity.BugStatusClosePayload.ClientMutationID == nil {
1311 break
1312 }
1313
1314 return e.complexity.BugStatusClosePayload.ClientMutationID(childComplexity), true
1315
1316 case "BugStatusClosePayload.operation":
1317 if e.complexity.BugStatusClosePayload.Operation == nil {
1318 break
1319 }
1320
1321 return e.complexity.BugStatusClosePayload.Operation(childComplexity), true
1322
1323 case "BugStatusOpenPayload.bug":
1324 if e.complexity.BugStatusOpenPayload.Bug == nil {
1325 break
1326 }
1327
1328 return e.complexity.BugStatusOpenPayload.Bug(childComplexity), true
1329
1330 case "BugStatusOpenPayload.clientMutationId":
1331 if e.complexity.BugStatusOpenPayload.ClientMutationID == nil {
1332 break
1333 }
1334
1335 return e.complexity.BugStatusOpenPayload.ClientMutationID(childComplexity), true
1336
1337 case "BugStatusOpenPayload.operation":
1338 if e.complexity.BugStatusOpenPayload.Operation == nil {
1339 break
1340 }
1341
1342 return e.complexity.BugStatusOpenPayload.Operation(childComplexity), true
1343
1344 case "BugTimelineItemConnection.edges":
1345 if e.complexity.BugTimelineItemConnection.Edges == nil {
1346 break
1347 }
1348
1349 return e.complexity.BugTimelineItemConnection.Edges(childComplexity), true
1350
1351 case "BugTimelineItemConnection.nodes":
1352 if e.complexity.BugTimelineItemConnection.Nodes == nil {
1353 break
1354 }
1355
1356 return e.complexity.BugTimelineItemConnection.Nodes(childComplexity), true
1357
1358 case "BugTimelineItemConnection.pageInfo":
1359 if e.complexity.BugTimelineItemConnection.PageInfo == nil {
1360 break
1361 }
1362
1363 return e.complexity.BugTimelineItemConnection.PageInfo(childComplexity), true
1364
1365 case "BugTimelineItemConnection.totalCount":
1366 if e.complexity.BugTimelineItemConnection.TotalCount == nil {
1367 break
1368 }
1369
1370 return e.complexity.BugTimelineItemConnection.TotalCount(childComplexity), true
1371
1372 case "BugTimelineItemEdge.cursor":
1373 if e.complexity.BugTimelineItemEdge.Cursor == nil {
1374 break
1375 }
1376
1377 return e.complexity.BugTimelineItemEdge.Cursor(childComplexity), true
1378
1379 case "BugTimelineItemEdge.node":
1380 if e.complexity.BugTimelineItemEdge.Node == nil {
1381 break
1382 }
1383
1384 return e.complexity.BugTimelineItemEdge.Node(childComplexity), true
1385
1386 case "Color.B":
1387 if e.complexity.Color.B == nil {
1388 break
1389 }
1390
1391 return e.complexity.Color.B(childComplexity), true
1392
1393 case "Color.G":
1394 if e.complexity.Color.G == nil {
1395 break
1396 }
1397
1398 return e.complexity.Color.G(childComplexity), true
1399
1400 case "Color.R":
1401 if e.complexity.Color.R == nil {
1402 break
1403 }
1404
1405 return e.complexity.Color.R(childComplexity), true
1406
1407 case "EntityEvent.entity":
1408 if e.complexity.EntityEvent.Entity == nil {
1409 break
1410 }
1411
1412 return e.complexity.EntityEvent.Entity(childComplexity), true
1413
1414 case "EntityEvent.type":
1415 if e.complexity.EntityEvent.Type == nil {
1416 break
1417 }
1418
1419 return e.complexity.EntityEvent.Type(childComplexity), true
1420
1421 case "Identity.avatarUrl":
1422 if e.complexity.Identity.AvatarUrl == nil {
1423 break
1424 }
1425
1426 return e.complexity.Identity.AvatarUrl(childComplexity), true
1427
1428 case "Identity.displayName":
1429 if e.complexity.Identity.DisplayName == nil {
1430 break
1431 }
1432
1433 return e.complexity.Identity.DisplayName(childComplexity), true
1434
1435 case "Identity.email":
1436 if e.complexity.Identity.Email == nil {
1437 break
1438 }
1439
1440 return e.complexity.Identity.Email(childComplexity), true
1441
1442 case "Identity.humanId":
1443 if e.complexity.Identity.HumanID == nil {
1444 break
1445 }
1446
1447 return e.complexity.Identity.HumanID(childComplexity), true
1448
1449 case "Identity.id":
1450 if e.complexity.Identity.Id == nil {
1451 break
1452 }
1453
1454 return e.complexity.Identity.Id(childComplexity), true
1455
1456 case "Identity.isProtected":
1457 if e.complexity.Identity.IsProtected == nil {
1458 break
1459 }
1460
1461 return e.complexity.Identity.IsProtected(childComplexity), true
1462
1463 case "Identity.login":
1464 if e.complexity.Identity.Login == nil {
1465 break
1466 }
1467
1468 return e.complexity.Identity.Login(childComplexity), true
1469
1470 case "Identity.name":
1471 if e.complexity.Identity.Name == nil {
1472 break
1473 }
1474
1475 return e.complexity.Identity.Name(childComplexity), true
1476
1477 case "IdentityConnection.edges":
1478 if e.complexity.IdentityConnection.Edges == nil {
1479 break
1480 }
1481
1482 return e.complexity.IdentityConnection.Edges(childComplexity), true
1483
1484 case "IdentityConnection.nodes":
1485 if e.complexity.IdentityConnection.Nodes == nil {
1486 break
1487 }
1488
1489 return e.complexity.IdentityConnection.Nodes(childComplexity), true
1490
1491 case "IdentityConnection.pageInfo":
1492 if e.complexity.IdentityConnection.PageInfo == nil {
1493 break
1494 }
1495
1496 return e.complexity.IdentityConnection.PageInfo(childComplexity), true
1497
1498 case "IdentityConnection.totalCount":
1499 if e.complexity.IdentityConnection.TotalCount == nil {
1500 break
1501 }
1502
1503 return e.complexity.IdentityConnection.TotalCount(childComplexity), true
1504
1505 case "IdentityEdge.cursor":
1506 if e.complexity.IdentityEdge.Cursor == nil {
1507 break
1508 }
1509
1510 return e.complexity.IdentityEdge.Cursor(childComplexity), true
1511
1512 case "IdentityEdge.node":
1513 if e.complexity.IdentityEdge.Node == nil {
1514 break
1515 }
1516
1517 return e.complexity.IdentityEdge.Node(childComplexity), true
1518
1519 case "IdentityEvent.identity":
1520 if e.complexity.IdentityEvent.Identity == nil {
1521 break
1522 }
1523
1524 return e.complexity.IdentityEvent.Identity(childComplexity), true
1525
1526 case "IdentityEvent.type":
1527 if e.complexity.IdentityEvent.Type == nil {
1528 break
1529 }
1530
1531 return e.complexity.IdentityEvent.Type(childComplexity), true
1532
1533 case "Label.color":
1534 if e.complexity.Label.Color == nil {
1535 break
1536 }
1537
1538 return e.complexity.Label.Color(childComplexity), true
1539
1540 case "Label.name":
1541 if e.complexity.Label.Name == nil {
1542 break
1543 }
1544
1545 return e.complexity.Label.Name(childComplexity), true
1546
1547 case "LabelChangeResult.label":
1548 if e.complexity.LabelChangeResult.Label == nil {
1549 break
1550 }
1551
1552 return e.complexity.LabelChangeResult.Label(childComplexity), true
1553
1554 case "LabelChangeResult.status":
1555 if e.complexity.LabelChangeResult.Status == nil {
1556 break
1557 }
1558
1559 return e.complexity.LabelChangeResult.Status(childComplexity), true
1560
1561 case "LabelConnection.edges":
1562 if e.complexity.LabelConnection.Edges == nil {
1563 break
1564 }
1565
1566 return e.complexity.LabelConnection.Edges(childComplexity), true
1567
1568 case "LabelConnection.nodes":
1569 if e.complexity.LabelConnection.Nodes == nil {
1570 break
1571 }
1572
1573 return e.complexity.LabelConnection.Nodes(childComplexity), true
1574
1575 case "LabelConnection.pageInfo":
1576 if e.complexity.LabelConnection.PageInfo == nil {
1577 break
1578 }
1579
1580 return e.complexity.LabelConnection.PageInfo(childComplexity), true
1581
1582 case "LabelConnection.totalCount":
1583 if e.complexity.LabelConnection.TotalCount == nil {
1584 break
1585 }
1586
1587 return e.complexity.LabelConnection.TotalCount(childComplexity), true
1588
1589 case "LabelEdge.cursor":
1590 if e.complexity.LabelEdge.Cursor == nil {
1591 break
1592 }
1593
1594 return e.complexity.LabelEdge.Cursor(childComplexity), true
1595
1596 case "LabelEdge.node":
1597 if e.complexity.LabelEdge.Node == nil {
1598 break
1599 }
1600
1601 return e.complexity.LabelEdge.Node(childComplexity), true
1602
1603 case "Mutation.bugAddComment":
1604 if e.complexity.Mutation.BugAddComment == nil {
1605 break
1606 }
1607
1608 args, err := ec.field_Mutation_bugAddComment_args(ctx, rawArgs)
1609 if err != nil {
1610 return 0, false
1611 }
1612
1613 return e.complexity.Mutation.BugAddComment(childComplexity, args["input"].(models.BugAddCommentInput)), true
1614
1615 case "Mutation.bugAddCommentAndClose":
1616 if e.complexity.Mutation.BugAddCommentAndClose == nil {
1617 break
1618 }
1619
1620 args, err := ec.field_Mutation_bugAddCommentAndClose_args(ctx, rawArgs)
1621 if err != nil {
1622 return 0, false
1623 }
1624
1625 return e.complexity.Mutation.BugAddCommentAndClose(childComplexity, args["input"].(models.BugAddCommentAndCloseInput)), true
1626
1627 case "Mutation.bugAddCommentAndReopen":
1628 if e.complexity.Mutation.BugAddCommentAndReopen == nil {
1629 break
1630 }
1631
1632 args, err := ec.field_Mutation_bugAddCommentAndReopen_args(ctx, rawArgs)
1633 if err != nil {
1634 return 0, false
1635 }
1636
1637 return e.complexity.Mutation.BugAddCommentAndReopen(childComplexity, args["input"].(models.BugAddCommentAndReopenInput)), true
1638
1639 case "Mutation.bugChangeLabels":
1640 if e.complexity.Mutation.BugChangeLabels == nil {
1641 break
1642 }
1643
1644 args, err := ec.field_Mutation_bugChangeLabels_args(ctx, rawArgs)
1645 if err != nil {
1646 return 0, false
1647 }
1648
1649 return e.complexity.Mutation.BugChangeLabels(childComplexity, args["input"].(*models.BugChangeLabelInput)), true
1650
1651 case "Mutation.bugCreate":
1652 if e.complexity.Mutation.BugCreate == nil {
1653 break
1654 }
1655
1656 args, err := ec.field_Mutation_bugCreate_args(ctx, rawArgs)
1657 if err != nil {
1658 return 0, false
1659 }
1660
1661 return e.complexity.Mutation.BugCreate(childComplexity, args["input"].(models.BugCreateInput)), true
1662
1663 case "Mutation.bugEditComment":
1664 if e.complexity.Mutation.BugEditComment == nil {
1665 break
1666 }
1667
1668 args, err := ec.field_Mutation_bugEditComment_args(ctx, rawArgs)
1669 if err != nil {
1670 return 0, false
1671 }
1672
1673 return e.complexity.Mutation.BugEditComment(childComplexity, args["input"].(models.BugEditCommentInput)), true
1674
1675 case "Mutation.bugSetTitle":
1676 if e.complexity.Mutation.BugSetTitle == nil {
1677 break
1678 }
1679
1680 args, err := ec.field_Mutation_bugSetTitle_args(ctx, rawArgs)
1681 if err != nil {
1682 return 0, false
1683 }
1684
1685 return e.complexity.Mutation.BugSetTitle(childComplexity, args["input"].(models.BugSetTitleInput)), true
1686
1687 case "Mutation.bugStatusClose":
1688 if e.complexity.Mutation.BugStatusClose == nil {
1689 break
1690 }
1691
1692 args, err := ec.field_Mutation_bugStatusClose_args(ctx, rawArgs)
1693 if err != nil {
1694 return 0, false
1695 }
1696
1697 return e.complexity.Mutation.BugStatusClose(childComplexity, args["input"].(models.BugStatusCloseInput)), true
1698
1699 case "Mutation.bugStatusOpen":
1700 if e.complexity.Mutation.BugStatusOpen == nil {
1701 break
1702 }
1703
1704 args, err := ec.field_Mutation_bugStatusOpen_args(ctx, rawArgs)
1705 if err != nil {
1706 return 0, false
1707 }
1708
1709 return e.complexity.Mutation.BugStatusOpen(childComplexity, args["input"].(models.BugStatusOpenInput)), true
1710
1711 case "OperationConnection.edges":
1712 if e.complexity.OperationConnection.Edges == nil {
1713 break
1714 }
1715
1716 return e.complexity.OperationConnection.Edges(childComplexity), true
1717
1718 case "OperationConnection.nodes":
1719 if e.complexity.OperationConnection.Nodes == nil {
1720 break
1721 }
1722
1723 return e.complexity.OperationConnection.Nodes(childComplexity), true
1724
1725 case "OperationConnection.pageInfo":
1726 if e.complexity.OperationConnection.PageInfo == nil {
1727 break
1728 }
1729
1730 return e.complexity.OperationConnection.PageInfo(childComplexity), true
1731
1732 case "OperationConnection.totalCount":
1733 if e.complexity.OperationConnection.TotalCount == nil {
1734 break
1735 }
1736
1737 return e.complexity.OperationConnection.TotalCount(childComplexity), true
1738
1739 case "OperationEdge.cursor":
1740 if e.complexity.OperationEdge.Cursor == nil {
1741 break
1742 }
1743
1744 return e.complexity.OperationEdge.Cursor(childComplexity), true
1745
1746 case "OperationEdge.node":
1747 if e.complexity.OperationEdge.Node == nil {
1748 break
1749 }
1750
1751 return e.complexity.OperationEdge.Node(childComplexity), true
1752
1753 case "PageInfo.endCursor":
1754 if e.complexity.PageInfo.EndCursor == nil {
1755 break
1756 }
1757
1758 return e.complexity.PageInfo.EndCursor(childComplexity), true
1759
1760 case "PageInfo.hasNextPage":
1761 if e.complexity.PageInfo.HasNextPage == nil {
1762 break
1763 }
1764
1765 return e.complexity.PageInfo.HasNextPage(childComplexity), true
1766
1767 case "PageInfo.hasPreviousPage":
1768 if e.complexity.PageInfo.HasPreviousPage == nil {
1769 break
1770 }
1771
1772 return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
1773
1774 case "PageInfo.startCursor":
1775 if e.complexity.PageInfo.StartCursor == nil {
1776 break
1777 }
1778
1779 return e.complexity.PageInfo.StartCursor(childComplexity), true
1780
1781 case "Query.repositories":
1782 if e.complexity.Query.Repositories == nil {
1783 break
1784 }
1785
1786 args, err := ec.field_Query_repositories_args(ctx, rawArgs)
1787 if err != nil {
1788 return 0, false
1789 }
1790
1791 return e.complexity.Query.Repositories(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1792
1793 case "Query.repository":
1794 if e.complexity.Query.Repository == nil {
1795 break
1796 }
1797
1798 args, err := ec.field_Query_repository_args(ctx, rawArgs)
1799 if err != nil {
1800 return 0, false
1801 }
1802
1803 return e.complexity.Query.Repository(childComplexity, args["ref"].(*string)), true
1804
1805 case "Query.serverConfig":
1806 if e.complexity.Query.ServerConfig == nil {
1807 break
1808 }
1809
1810 return e.complexity.Query.ServerConfig(childComplexity), true
1811
1812 case "Repository.allBugs":
1813 if e.complexity.Repository.AllBugs == nil {
1814 break
1815 }
1816
1817 args, err := ec.field_Repository_allBugs_args(ctx, rawArgs)
1818 if err != nil {
1819 return 0, false
1820 }
1821
1822 return e.complexity.Repository.AllBugs(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string)), true
1823
1824 case "Repository.allIdentities":
1825 if e.complexity.Repository.AllIdentities == nil {
1826 break
1827 }
1828
1829 args, err := ec.field_Repository_allIdentities_args(ctx, rawArgs)
1830 if err != nil {
1831 return 0, false
1832 }
1833
1834 return e.complexity.Repository.AllIdentities(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1835
1836 case "Repository.bug":
1837 if e.complexity.Repository.Bug == nil {
1838 break
1839 }
1840
1841 args, err := ec.field_Repository_bug_args(ctx, rawArgs)
1842 if err != nil {
1843 return 0, false
1844 }
1845
1846 return e.complexity.Repository.Bug(childComplexity, args["prefix"].(string)), true
1847
1848 case "Repository.identity":
1849 if e.complexity.Repository.Identity == nil {
1850 break
1851 }
1852
1853 args, err := ec.field_Repository_identity_args(ctx, rawArgs)
1854 if err != nil {
1855 return 0, false
1856 }
1857
1858 return e.complexity.Repository.Identity(childComplexity, args["prefix"].(string)), true
1859
1860 case "Repository.localName":
1861 if e.complexity.Repository.LocalName == nil {
1862 break
1863 }
1864
1865 return e.complexity.Repository.LocalName(childComplexity), true
1866
1867 case "Repository.name":
1868 if e.complexity.Repository.Name == nil {
1869 break
1870 }
1871
1872 return e.complexity.Repository.Name(childComplexity), true
1873
1874 case "Repository.userIdentity":
1875 if e.complexity.Repository.UserIdentity == nil {
1876 break
1877 }
1878
1879 return e.complexity.Repository.UserIdentity(childComplexity), true
1880
1881 case "Repository.validLabels":
1882 if e.complexity.Repository.ValidLabels == nil {
1883 break
1884 }
1885
1886 args, err := ec.field_Repository_validLabels_args(ctx, rawArgs)
1887 if err != nil {
1888 return 0, false
1889 }
1890
1891 return e.complexity.Repository.ValidLabels(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1892
1893 case "RepositoryConnection.edges":
1894 if e.complexity.RepositoryConnection.Edges == nil {
1895 break
1896 }
1897
1898 return e.complexity.RepositoryConnection.Edges(childComplexity), true
1899
1900 case "RepositoryConnection.nodes":
1901 if e.complexity.RepositoryConnection.Nodes == nil {
1902 break
1903 }
1904
1905 return e.complexity.RepositoryConnection.Nodes(childComplexity), true
1906
1907 case "RepositoryConnection.pageInfo":
1908 if e.complexity.RepositoryConnection.PageInfo == nil {
1909 break
1910 }
1911
1912 return e.complexity.RepositoryConnection.PageInfo(childComplexity), true
1913
1914 case "RepositoryConnection.totalCount":
1915 if e.complexity.RepositoryConnection.TotalCount == nil {
1916 break
1917 }
1918
1919 return e.complexity.RepositoryConnection.TotalCount(childComplexity), true
1920
1921 case "RepositoryEdge.cursor":
1922 if e.complexity.RepositoryEdge.Cursor == nil {
1923 break
1924 }
1925
1926 return e.complexity.RepositoryEdge.Cursor(childComplexity), true
1927
1928 case "RepositoryEdge.node":
1929 if e.complexity.RepositoryEdge.Node == nil {
1930 break
1931 }
1932
1933 return e.complexity.RepositoryEdge.Node(childComplexity), true
1934
1935 case "ServerConfig.authMode":
1936 if e.complexity.ServerConfig.AuthMode == nil {
1937 break
1938 }
1939
1940 return e.complexity.ServerConfig.AuthMode(childComplexity), true
1941
1942 case "ServerConfig.loginProviders":
1943 if e.complexity.ServerConfig.LoginProviders == nil {
1944 break
1945 }
1946
1947 return e.complexity.ServerConfig.LoginProviders(childComplexity), true
1948
1949 case "Subscription.allEvents":
1950 if e.complexity.Subscription.AllEvents == nil {
1951 break
1952 }
1953
1954 args, err := ec.field_Subscription_allEvents_args(ctx, rawArgs)
1955 if err != nil {
1956 return 0, false
1957 }
1958
1959 return e.complexity.Subscription.AllEvents(childComplexity, args["repoRef"].(*string), args["typename"].(*string)), true
1960
1961 case "Subscription.bugEvents":
1962 if e.complexity.Subscription.BugEvents == nil {
1963 break
1964 }
1965
1966 args, err := ec.field_Subscription_bugEvents_args(ctx, rawArgs)
1967 if err != nil {
1968 return 0, false
1969 }
1970
1971 return e.complexity.Subscription.BugEvents(childComplexity, args["repoRef"].(*string)), true
1972
1973 case "Subscription.identityEvents":
1974 if e.complexity.Subscription.IdentityEvents == nil {
1975 break
1976 }
1977
1978 args, err := ec.field_Subscription_identityEvents_args(ctx, rawArgs)
1979 if err != nil {
1980 return 0, false
1981 }
1982
1983 return e.complexity.Subscription.IdentityEvents(childComplexity, args["repoRef"].(*string)), true
1984
1985 }
1986 return 0, false
1987}
1988
1989func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
1990 opCtx := graphql.GetOperationContext(ctx)
1991 ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
1992 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
1993 ec.unmarshalInputBugAddCommentAndCloseInput,
1994 ec.unmarshalInputBugAddCommentAndReopenInput,
1995 ec.unmarshalInputBugAddCommentInput,
1996 ec.unmarshalInputBugChangeLabelInput,
1997 ec.unmarshalInputBugCreateInput,
1998 ec.unmarshalInputBugEditCommentInput,
1999 ec.unmarshalInputBugSetTitleInput,
2000 ec.unmarshalInputBugStatusCloseInput,
2001 ec.unmarshalInputBugStatusOpenInput,
2002 )
2003 first := true
2004
2005 switch opCtx.Operation.Operation {
2006 case ast.Query:
2007 return func(ctx context.Context) *graphql.Response {
2008 var response graphql.Response
2009 var data graphql.Marshaler
2010 if first {
2011 first = false
2012 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
2013 data = ec._Query(ctx, opCtx.Operation.SelectionSet)
2014 } else {
2015 if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
2016 result := <-ec.deferredResults
2017 atomic.AddInt32(&ec.pendingDeferred, -1)
2018 data = result.Result
2019 response.Path = result.Path
2020 response.Label = result.Label
2021 response.Errors = result.Errors
2022 } else {
2023 return nil
2024 }
2025 }
2026 var buf bytes.Buffer
2027 data.MarshalGQL(&buf)
2028 response.Data = buf.Bytes()
2029 if atomic.LoadInt32(&ec.deferred) > 0 {
2030 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
2031 response.HasNext = &hasNext
2032 }
2033
2034 return &response
2035 }
2036 case ast.Mutation:
2037 return func(ctx context.Context) *graphql.Response {
2038 if !first {
2039 return nil
2040 }
2041 first = false
2042 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
2043 data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
2044 var buf bytes.Buffer
2045 data.MarshalGQL(&buf)
2046
2047 return &graphql.Response{
2048 Data: buf.Bytes(),
2049 }
2050 }
2051 case ast.Subscription:
2052 next := ec._Subscription(ctx, opCtx.Operation.SelectionSet)
2053
2054 var buf bytes.Buffer
2055 return func(ctx context.Context) *graphql.Response {
2056 buf.Reset()
2057 data := next(ctx)
2058
2059 if data == nil {
2060 return nil
2061 }
2062 data.MarshalGQL(&buf)
2063
2064 return &graphql.Response{
2065 Data: buf.Bytes(),
2066 }
2067 }
2068
2069 default:
2070 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
2071 }
2072}
2073
2074type executionContext struct {
2075 *graphql.OperationContext
2076 *executableSchema
2077 deferred int32
2078 pendingDeferred int32
2079 deferredResults chan graphql.DeferredResult
2080}
2081
2082func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
2083 atomic.AddInt32(&ec.pendingDeferred, 1)
2084 go func() {
2085 ctx := graphql.WithFreshResponseContext(dg.Context)
2086 dg.FieldSet.Dispatch(ctx)
2087 ds := graphql.DeferredResult{
2088 Path: dg.Path,
2089 Label: dg.Label,
2090 Result: dg.FieldSet,
2091 Errors: graphql.GetErrors(ctx),
2092 }
2093 // null fields should bubble up
2094 if dg.FieldSet.Invalids > 0 {
2095 ds.Result = graphql.Null
2096 }
2097 ec.deferredResults <- ds
2098 }()
2099}
2100
2101func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
2102 if ec.DisableIntrospection {
2103 return nil, errors.New("introspection disabled")
2104 }
2105 return introspection.WrapSchema(ec.Schema()), nil
2106}
2107
2108func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
2109 if ec.DisableIntrospection {
2110 return nil, errors.New("introspection disabled")
2111 }
2112 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
2113}
2114
2115var sources = []*ast.Source{
2116 {Name: "../schema/bug.graphql", Input: `type Bug implements Authored & Entity {
2117 """The identifier for this bug"""
2118 id: ID!
2119 """The human version (truncated) identifier for this bug"""
2120 humanId: String!
2121 status: Status!
2122 title: String!
2123 labels: [Label!]!
2124 author: Identity!
2125 createdAt: Time!
2126 lastEdit: Time!
2127
2128 """The actors of the bug. Actors are Identity that have interacted with the bug."""
2129 actors(
2130 """Returns the elements in the list that come after the specified cursor."""
2131 after: String
2132 """Returns the elements in the list that come before the specified cursor."""
2133 before: String
2134 """Returns the first _n_ elements from the list."""
2135 first: Int
2136 """Returns the last _n_ elements from the list."""
2137 last: Int
2138 ): IdentityConnection!
2139
2140 """The participants of the bug. Participants are Identity that have created or
2141 added a comment on the bug."""
2142 participants(
2143 """Returns the elements in the list that come after the specified cursor."""
2144 after: String
2145 """Returns the elements in the list that come before the specified cursor."""
2146 before: String
2147 """Returns the first _n_ elements from the list."""
2148 first: Int
2149 """Returns the last _n_ elements from the list."""
2150 last: Int
2151 ): IdentityConnection!
2152
2153 comments(
2154 """Returns the elements in the list that come after the specified cursor."""
2155 after: String
2156 """Returns the elements in the list that come before the specified cursor."""
2157 before: String
2158 """Returns the first _n_ elements from the list."""
2159 first: Int
2160 """Returns the last _n_ elements from the list."""
2161 last: Int
2162 ): BugCommentConnection!
2163
2164 timeline(
2165 """Returns the elements in the list that come after the specified cursor."""
2166 after: String
2167 """Returns the elements in the list that come before the specified cursor."""
2168 before: String
2169 """Returns the first _n_ elements from the list."""
2170 first: Int
2171 """Returns the last _n_ elements from the list."""
2172 last: Int
2173 ): BugTimelineItemConnection!
2174
2175 operations(
2176 """Returns the elements in the list that come after the specified cursor."""
2177 after: String
2178 """Returns the elements in the list that come before the specified cursor."""
2179 before: String
2180 """Returns the first _n_ elements from the list."""
2181 first: Int
2182 """Returns the last _n_ elements from the list."""
2183 last: Int
2184 ): OperationConnection!
2185}
2186
2187"""The connection type for Bug."""
2188type BugConnection {
2189 """A list of edges."""
2190 edges: [BugEdge!]!
2191 nodes: [Bug!]!
2192 """Information to aid in pagination."""
2193 pageInfo: PageInfo!
2194 """Identifies the total count of items in the connection."""
2195 totalCount: Int!
2196}
2197
2198"""An edge in a connection."""
2199type BugEdge {
2200 """A cursor for use in pagination."""
2201 cursor: String!
2202 """The item at the end of the edge."""
2203 node: Bug!
2204}
2205`, BuiltIn: false},
2206 {Name: "../schema/bug_comment.graphql", Input: `"""Represents a comment on a bug."""
2207type BugComment implements Authored
2208@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
2209 id: CombinedId! @goField(name: "CombinedId")
2210
2211 """The author of this comment."""
2212 author: Identity!
2213
2214 """The message of this comment."""
2215 message: String!
2216
2217 """All media's hash referenced in this comment"""
2218 files: [Hash!]!
2219}
2220
2221type BugCommentConnection {
2222 edges: [BugCommentEdge!]!
2223 nodes: [BugComment!]!
2224 pageInfo: PageInfo!
2225 totalCount: Int!
2226}
2227
2228type BugCommentEdge {
2229 cursor: String!
2230 node: BugComment!
2231}
2232`, BuiltIn: false},
2233 {Name: "../schema/bug_mutations.graphql", Input: `extend type Mutation {
2234 """Create a new bug"""
2235 bugCreate(input: BugCreateInput!): BugCreatePayload!
2236 """Add a new comment to a bug"""
2237 bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
2238 """Add a new comment to a bug and close it"""
2239 bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
2240 """Add a new comment to a bug and reopen it"""
2241 bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
2242 """Change a comment of a bug"""
2243 bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
2244 """Add or remove a set of label on a bug"""
2245 bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
2246 """Change a bug's status to open"""
2247 bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
2248 """Change a bug's status to closed"""
2249 bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
2250 """Change a bug's title"""
2251 bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
2252}
2253
2254input BugCreateInput {
2255 """A unique identifier for the client performing the mutation."""
2256 clientMutationId: String
2257 """The name of the repository. If not set, the default repository is used."""
2258 repoRef: String
2259 """The title of the new bug."""
2260 title: String!
2261 """The first message of the new bug."""
2262 message: String!
2263 """The collection of file's hash required for the first message."""
2264 files: [Hash!]
2265}
2266
2267type BugCreatePayload {
2268 """A unique identifier for the client performing the mutation."""
2269 clientMutationId: String
2270 """The created bug."""
2271 bug: Bug!
2272 """The resulting operation."""
2273 operation: BugCreateOperation!
2274}
2275
2276input BugAddCommentInput {
2277 """A unique identifier for the client performing the mutation."""
2278 clientMutationId: String
2279 """The name of the repository. If not set, the default repository is used."""
2280 repoRef: String
2281 """The bug ID's prefix."""
2282 prefix: String!
2283 """The message to be added to the bug."""
2284 message: String!
2285 """The collection of file's hash required for the first message."""
2286 files: [Hash!]
2287}
2288
2289type BugAddCommentPayload {
2290 """A unique identifier for the client performing the mutation."""
2291 clientMutationId: String
2292 """The affected bug."""
2293 bug: Bug!
2294 """The resulting operation."""
2295 operation: BugAddCommentOperation!
2296}
2297
2298input BugAddCommentAndCloseInput {
2299 """A unique identifier for the client performing the mutation."""
2300 clientMutationId: String
2301 """The name of the repository. If not set, the default repository is used."""
2302 repoRef: String
2303 """The bug ID's prefix."""
2304 prefix: String!
2305 """The message to be added to the bug."""
2306 message: String!
2307 """The collection of file's hash required for the first message."""
2308 files: [Hash!]
2309}
2310
2311type BugAddCommentAndClosePayload {
2312 """A unique identifier for the client performing the mutation."""
2313 clientMutationId: String
2314 """The affected bug."""
2315 bug: Bug!
2316 """The resulting AddComment operation."""
2317 commentOperation: BugAddCommentOperation!
2318 """The resulting SetStatusOperation."""
2319 statusOperation: BugSetStatusOperation!
2320}
2321
2322input BugAddCommentAndReopenInput {
2323 """A unique identifier for the client performing the mutation."""
2324 clientMutationId: String
2325 """The name of the repository. If not set, the default repository is used."""
2326 repoRef: String
2327 """The bug ID's prefix."""
2328 prefix: String!
2329 """The message to be added to the bug."""
2330 message: String!
2331 """The collection of file's hash required for the first message."""
2332 files: [Hash!]
2333}
2334
2335type BugAddCommentAndReopenPayload {
2336 """A unique identifier for the client performing the mutation."""
2337 clientMutationId: String
2338 """The affected bug."""
2339 bug: Bug!
2340 """The resulting AddComment operation."""
2341 commentOperation: BugAddCommentOperation!
2342 """The resulting SetStatusOperation."""
2343 statusOperation: BugSetStatusOperation!
2344}
2345
2346input BugEditCommentInput {
2347 """A unique identifier for the client performing the mutation."""
2348 clientMutationId: String
2349 """The name of the repository. If not set, the default repository is used."""
2350 repoRef: String
2351 """A prefix of the CombinedId of the comment to be changed."""
2352 targetPrefix: String!
2353 """The new message to be set."""
2354 message: String!
2355 """The collection of file's hash required for the first message."""
2356 files: [Hash!]
2357}
2358
2359type BugEditCommentPayload {
2360 """A unique identifier for the client performing the mutation."""
2361 clientMutationId: String
2362 """The affected bug."""
2363 bug: Bug!
2364 """The resulting operation."""
2365 operation: BugEditCommentOperation!
2366}
2367
2368input BugChangeLabelInput {
2369 """A unique identifier for the client performing the mutation."""
2370 clientMutationId: String
2371 """The name of the repository. If not set, the default repository is used."""
2372 repoRef: String
2373 """The bug ID's prefix."""
2374 prefix: String!
2375 """The list of label to add."""
2376 added: [String!]
2377 """The list of label to remove."""
2378 Removed: [String!]
2379}
2380
2381type BugChangeLabelPayload {
2382 """A unique identifier for the client performing the mutation."""
2383 clientMutationId: String
2384 """The affected bug."""
2385 bug: Bug!
2386 """The resulting operation."""
2387 operation: BugLabelChangeOperation!
2388 """The effect each source label had."""
2389 results: [LabelChangeResult]!
2390}
2391
2392input BugStatusOpenInput {
2393 """A unique identifier for the client performing the mutation."""
2394 clientMutationId: String
2395 """The name of the repository. If not set, the default repository is used."""
2396 repoRef: String
2397 """The bug ID's prefix."""
2398 prefix: String!
2399}
2400
2401type BugStatusOpenPayload {
2402 """A unique identifier for the client performing the mutation."""
2403 clientMutationId: String
2404 """The affected bug."""
2405 bug: Bug!
2406 """The resulting operation."""
2407 operation: BugSetStatusOperation!
2408}
2409
2410input BugStatusCloseInput {
2411 """A unique identifier for the client performing the mutation."""
2412 clientMutationId: String
2413 """The name of the repository. If not set, the default repository is used."""
2414 repoRef: String
2415 """The bug ID's prefix."""
2416 prefix: String!
2417}
2418
2419type BugStatusClosePayload {
2420 """A unique identifier for the client performing the mutation."""
2421 clientMutationId: String
2422 """The affected bug."""
2423 bug: Bug!
2424 """The resulting operation."""
2425 operation: BugSetStatusOperation!
2426}
2427
2428input BugSetTitleInput {
2429 """A unique identifier for the client performing the mutation."""
2430 clientMutationId: String
2431 """The name of the repository. If not set, the default repository is used."""
2432 repoRef: String
2433 """The bug ID's prefix."""
2434 prefix: String!
2435 """The new title."""
2436 title: String!
2437}
2438
2439type BugSetTitlePayload {
2440 """A unique identifier for the client performing the mutation."""
2441 clientMutationId: String
2442 """The affected bug."""
2443 bug: Bug!
2444 """The resulting operation"""
2445 operation: BugSetTitleOperation!
2446}
2447`, BuiltIn: false},
2448 {Name: "../schema/bug_operations.graphql", Input: `type BugCreateOperation implements Operation & Authored
2449@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
2450 """The identifier of the operation"""
2451 id: ID!
2452 """The author of this object."""
2453 author: Identity!
2454 """The datetime when this operation was issued."""
2455 date: Time! @goField(name: "Time")
2456
2457 title: String!
2458 message: String!
2459 files: [Hash!]!
2460}
2461
2462type BugSetTitleOperation implements Operation & Authored
2463@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
2464 """The identifier of the operation"""
2465 id: ID!
2466 """The author of this object."""
2467 author: Identity!
2468 """The datetime when this operation was issued."""
2469 date: Time! @goField(name: "Time")
2470
2471 title: String!
2472 was: String!
2473}
2474
2475type BugAddCommentOperation implements Operation & Authored
2476@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
2477 """The identifier of the operation"""
2478 id: ID!
2479 """The author of this object."""
2480 author: Identity!
2481 """The datetime when this operation was issued."""
2482 date: Time! @goField(name: "Time")
2483
2484 message: String!
2485 files: [Hash!]!
2486}
2487
2488type BugEditCommentOperation implements Operation & Authored
2489@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
2490 """The identifier of the operation"""
2491 id: ID!
2492 """The author of this object."""
2493 author: Identity!
2494 """The datetime when this operation was issued."""
2495 date: Time! @goField(name: "Time")
2496
2497 target: String!
2498 message: String!
2499 files: [Hash!]!
2500}
2501
2502type BugSetStatusOperation implements Operation & Authored
2503@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
2504 """The identifier of the operation"""
2505 id: ID!
2506 """The author of this object."""
2507 author: Identity!
2508 """The datetime when this operation was issued."""
2509 date: Time! @goField(name: "Time")
2510
2511 status: Status!
2512}
2513
2514type BugLabelChangeOperation implements Operation & Authored
2515@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
2516 """The identifier of the operation"""
2517 id: ID!
2518 """The author of this object."""
2519 author: Identity!
2520 """The datetime when this operation was issued."""
2521 date: Time! @goField(name: "Time")
2522
2523 added: [Label!]!
2524 removed: [Label!]!
2525}
2526`, BuiltIn: false},
2527 {Name: "../schema/bug_timeline.graphql", Input: `"""An item in the timeline of bug events"""
2528interface BugTimelineItem
2529@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
2530 """The identifier of the source operation"""
2531 id: CombinedId!
2532}
2533
2534"""CommentHistoryStep hold one version of a message in the history"""
2535type BugCommentHistoryStep
2536@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
2537 message: String!
2538 date: Time!
2539}
2540
2541# Connection
2542
2543"""The connection type for TimelineItem"""
2544type BugTimelineItemConnection {
2545 edges: [BugTimelineItemEdge!]!
2546 nodes: [BugTimelineItem!]!
2547 pageInfo: PageInfo!
2548 totalCount: Int!
2549}
2550
2551"""Represent a TimelineItem"""
2552type BugTimelineItemEdge {
2553 cursor: String!
2554 node: BugTimelineItem!
2555}
2556
2557# Items
2558
2559"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
2560type BugCreateTimelineItem implements BugTimelineItem & Authored
2561@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
2562 """The identifier of the source operation"""
2563 id: CombinedId! @goField(name: "CombinedId")
2564 author: Identity!
2565 message: String!
2566 messageIsEmpty: Boolean!
2567 files: [Hash!]!
2568 createdAt: Time!
2569 lastEdit: Time!
2570 edited: Boolean!
2571 history: [BugCommentHistoryStep!]!
2572}
2573
2574"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
2575type BugAddCommentTimelineItem implements BugTimelineItem & Authored
2576@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
2577 """The identifier of the source operation"""
2578 id: CombinedId! @goField(name: "CombinedId")
2579 author: Identity!
2580 message: String!
2581 messageIsEmpty: Boolean!
2582 files: [Hash!]!
2583 createdAt: Time!
2584 lastEdit: Time!
2585 edited: Boolean!
2586 history: [BugCommentHistoryStep!]!
2587}
2588
2589"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
2590type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
2591@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
2592 """The identifier of the source operation"""
2593 id: CombinedId! @goField(name: "CombinedId")
2594 author: Identity!
2595 date: Time!
2596 added: [Label!]!
2597 removed: [Label!]!
2598}
2599
2600"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
2601type BugSetStatusTimelineItem implements BugTimelineItem & Authored
2602@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
2603 """The identifier of the source operation"""
2604 id: CombinedId! @goField(name: "CombinedId")
2605 author: Identity!
2606 date: Time!
2607 status: Status!
2608}
2609
2610"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
2611type BugSetTitleTimelineItem implements BugTimelineItem & Authored
2612@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
2613 """The identifier of the source operation"""
2614 id: CombinedId! @goField(name: "CombinedId")
2615 author: Identity!
2616 date: Time!
2617 title: String!
2618 was: String!
2619}
2620`, BuiltIn: false},
2621 {Name: "../schema/directives.graphql", Input: `# Below are directives defined by gqlgen, see https://gqlgen.com/config/
2622
2623directive @goModel(
2624 model: String
2625 models: [String!]
2626 forceGenerate: Boolean
2627) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
2628
2629directive @goField(
2630 forceResolver: Boolean
2631 name: String
2632 omittable: Boolean
2633) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2634
2635directive @goTag(
2636 key: String!
2637 value: String
2638) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2639`, BuiltIn: false},
2640 {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
2641type Identity implements Entity {
2642 """The identifier for this identity"""
2643 id: ID!
2644 """The human version (truncated) identifier for this identity"""
2645 humanId: String!
2646 """The name of the person, if known."""
2647 name: String
2648 """The email of the person, if known."""
2649 email: String
2650 """The login of the person, if known."""
2651 login: String
2652 """A non-empty string to display, representing the identity, based on the non-empty values."""
2653 displayName: String!
2654 """An url to an avatar"""
2655 avatarUrl: String
2656 """isProtected is true if the chain of git commits started to be signed.
2657 If that's the case, only signed commit with a valid key for this identity can be added."""
2658 isProtected: Boolean!
2659}
2660
2661type IdentityConnection {
2662 edges: [IdentityEdge!]!
2663 nodes: [Identity!]!
2664 pageInfo: PageInfo!
2665 totalCount: Int!
2666}
2667
2668type IdentityEdge {
2669 cursor: String!
2670 node: Identity!
2671}
2672`, BuiltIn: false},
2673 {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
2674type Label {
2675 """The name of the label."""
2676 name: String!
2677 """Color of the label."""
2678 color: Color!
2679}
2680
2681type LabelConnection {
2682 edges: [LabelEdge!]!
2683 nodes: [Label!]!
2684 pageInfo: PageInfo!
2685 totalCount: Int!
2686}
2687
2688type LabelEdge {
2689 cursor: String!
2690 node: Label!
2691}
2692
2693enum LabelChangeStatus {
2694 ADDED
2695 REMOVED
2696 DUPLICATE_IN_OP
2697 ALREADY_SET
2698 DOESNT_EXIST
2699}
2700
2701type LabelChangeResult {
2702 """The source label."""
2703 label: Label!
2704 """The effect this label had."""
2705 status: LabelChangeStatus!
2706}
2707`, BuiltIn: false},
2708 {Name: "../schema/operation.graphql", Input: `"""An operation applied to an entity."""
2709interface Operation
2710@goModel(model: "github.com/git-bug/git-bug/entity/dag.Operation") {
2711 """The identifier of the operation"""
2712 id: ID!
2713 """The operations author."""
2714 author: Identity!
2715 """The datetime when this operation was issued."""
2716 date: Time! @goField(name: "Time")
2717}
2718
2719# Connection
2720
2721"""The connection type for an Operation"""
2722type OperationConnection {
2723 edges: [OperationEdge!]!
2724 nodes: [Operation!]!
2725 pageInfo: PageInfo!
2726 totalCount: Int!
2727}
2728
2729"""Represent an Operation"""
2730type OperationEdge {
2731 cursor: String!
2732 node: Operation!
2733}
2734`, BuiltIn: false},
2735 {Name: "../schema/repository.graphql", Input: `type Repository {
2736 """The name of the repository. Null for the default (unnamed) repository."""
2737 name: String
2738
2739 """The local directory name of the repository (basename only, no path)."""
2740 localName: String!
2741
2742 """All the bugs"""
2743 allBugs(
2744 """Returns the elements in the list that come after the specified cursor."""
2745 after: String
2746 """Returns the elements in the list that come before the specified cursor."""
2747 before: String
2748 """Returns the first _n_ elements from the list."""
2749 first: Int
2750 """Returns the last _n_ elements from the list."""
2751 last: Int
2752 """A query to select and order bugs."""
2753 query: String
2754 ): BugConnection!
2755
2756 bug(prefix: String!): Bug
2757
2758 """All the identities"""
2759 allIdentities(
2760 """Returns the elements in the list that come after the specified cursor."""
2761 after: String
2762 """Returns the elements in the list that come before the specified cursor."""
2763 before: String
2764 """Returns the first _n_ elements from the list."""
2765 first: Int
2766 """Returns the last _n_ elements from the list."""
2767 last: Int
2768 ): IdentityConnection!
2769
2770 identity(prefix: String!): Identity
2771
2772 """The identity created or selected by the user as its own"""
2773 userIdentity: Identity
2774
2775 """List of valid labels."""
2776 validLabels(
2777 """Returns the elements in the list that come after the specified cursor."""
2778 after: String
2779 """Returns the elements in the list that come before the specified cursor."""
2780 before: String
2781 """Returns the first _n_ elements from the list."""
2782 first: Int
2783 """Returns the last _n_ elements from the list."""
2784 last: Int
2785 ): LabelConnection!
2786}
2787
2788type RepositoryConnection {
2789 edges: [RepositoryEdge!]!
2790 nodes: [Repository!]!
2791 pageInfo: PageInfo!
2792 totalCount: Int!
2793}
2794
2795type RepositoryEdge {
2796 cursor: String!
2797 node: Repository!
2798}
2799`, BuiltIn: false},
2800 {Name: "../schema/root.graphql", Input: `"""Server-wide configuration, independent of any repository."""
2801type ServerConfig {
2802 """Authentication mode: 'local' (single user from git config),
2803 'external' (multi-user via OAuth/OIDC providers), or 'readonly'."""
2804 authMode: String!
2805
2806 """Names of the login providers enabled on this server, e.g. ['github'].
2807 Empty when authMode is not 'external'."""
2808 loginProviders: [String!]!
2809}
2810
2811type Query {
2812 """Server configuration and authentication mode."""
2813 serverConfig: ServerConfig!
2814
2815 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
2816 repository(ref: String): Repository
2817
2818 """List all registered repositories."""
2819 repositories(
2820 """Returns the elements in the list that come after the specified cursor."""
2821 after: String
2822 """Returns the elements in the list that come before the specified cursor."""
2823 before: String
2824 """Returns the first _n_ elements from the list."""
2825 first: Int
2826 """Returns the last _n_ elements from the list."""
2827 last: Int
2828 ): RepositoryConnection!
2829}
2830
2831type Mutation # See each entity mutations
2832`, BuiltIn: false},
2833 {Name: "../schema/status.graphql", Input: `enum Status {
2834 OPEN
2835 CLOSED
2836}
2837`, BuiltIn: false},
2838 {Name: "../schema/subscription.graphql", Input: `type Subscription {
2839 """Subscribe to events on all entities. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2840 allEvents(repoRef: String, typename: String): EntityEvent!
2841 """Subscribe to identity entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2842 identityEvents(repoRef: String): IdentityEvent!
2843 """Subscribe to bug entity events. For events on a specific repo you can provide a repo reference. Without it, you get the unique default repo or all repo events."""
2844 bugEvents(repoRef: String): BugEvent!
2845}
2846
2847enum EntityEventType {
2848 CREATED
2849 UPDATED
2850 REMOVED
2851}
2852
2853type EntityEvent {
2854 type: EntityEventType!
2855 entity: Entity
2856}
2857
2858type IdentityEvent {
2859 type: EntityEventType!
2860 identity: Identity!
2861}
2862
2863type BugEvent {
2864 type: EntityEventType!
2865 bug: Bug!
2866}
2867`, BuiltIn: false},
2868 {Name: "../schema/types.graphql", Input: `scalar CombinedId
2869scalar Time
2870scalar Hash
2871
2872"""Defines a color by red, green and blue components."""
2873type Color {
2874 """Red component of the color."""
2875 R: Int!
2876 """Green component of the color."""
2877 G: Int!
2878 """Blue component of the color."""
2879 B: Int!
2880}
2881
2882"""Information about pagination in a connection."""
2883type PageInfo {
2884 """When paginating forwards, are there more items?"""
2885 hasNextPage: Boolean!
2886 """When paginating backwards, are there more items?"""
2887 hasPreviousPage: Boolean!
2888 """When paginating backwards, the cursor to continue."""
2889 startCursor: String!
2890 """When paginating forwards, the cursor to continue."""
2891 endCursor: String!
2892}
2893
2894"""An object that has an author."""
2895interface Authored {
2896 """The author of this object."""
2897 author: Identity!
2898}
2899
2900
2901"""An entity (identity, bug, ...)."""
2902interface Entity {
2903 """The identifier for this entity"""
2904 id: ID!
2905 """The human version (truncated) identifier for this entity"""
2906 humanId: String!
2907}
2908`, BuiltIn: false},
2909}
2910var parsedSchema = gqlparser.MustLoadSchema(sources...)