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