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(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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(context.TODO(), 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 rc := graphql.GetOperationContext(ctx)
1789 ec := executionContext{rc, 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 rc.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, rc.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, rc.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/board.graphql", Input: `#type Board {
1898# """The identifier for this board"""
1899# id: ID!
1900# """The human version (truncated) identifier for this board"""
1901# humanId: String!
1902#
1903# createdAt: Time!
1904# lastEdit: Time!
1905#
1906# title: String!
1907# description: String!
1908#
1909#
1910#
1911# # TODO columns
1912# # TODO status
1913# # TODO: labels
1914#
1915# """The actors of the board. Actors are Identity that have interacted with the board."""
1916# actors(
1917# """Returns the elements in the list that come after the specified cursor."""
1918# after: String
1919# """Returns the elements in the list that come before the specified cursor."""
1920# before: String
1921# """Returns the first _n_ elements from the list."""
1922# first: Int
1923# """Returns the last _n_ elements from the list."""
1924# last: Int
1925# ): IdentityConnection!
1926#
1927# operations(
1928# """Returns the elements in the list that come after the specified cursor."""
1929# after: String
1930# """Returns the elements in the list that come before the specified cursor."""
1931# before: String
1932# """Returns the first _n_ elements from the list."""
1933# first: Int
1934# """Returns the last _n_ elements from the list."""
1935# last: Int
1936# ): OperationConnection!
1937#}
1938#
1939#"""The connection type for Board."""
1940#type BoardConnection {
1941# """A list of edges."""
1942# edges: [BoardEdge!]!
1943# nodes: [Board!]!
1944# """Information to aid in pagination."""
1945# pageInfo: PageInfo!
1946# """Identifies the total count of items in the connection."""
1947# totalCount: Int!
1948#}
1949#
1950#"""An edge in a connection."""
1951#type BoardEdge {
1952# """A cursor for use in pagination."""
1953# cursor: String!
1954# """The item at the end of the edge."""
1955# node: Board!
1956#}
1957`, BuiltIn: false},
1958 {Name: "../schema/bug.graphql", Input: `type Bug implements Authored {
1959 """The identifier for this bug"""
1960 id: ID!
1961 """The human version (truncated) identifier for this bug"""
1962 humanId: String!
1963 status: Status!
1964 title: String!
1965 labels: [Label!]!
1966 author: Identity!
1967 createdAt: Time!
1968 lastEdit: Time!
1969
1970 """The actors of the bug. Actors are Identity that have interacted with the bug."""
1971 actors(
1972 """Returns the elements in the list that come after the specified cursor."""
1973 after: String
1974 """Returns the elements in the list that come before the specified cursor."""
1975 before: String
1976 """Returns the first _n_ elements from the list."""
1977 first: Int
1978 """Returns the last _n_ elements from the list."""
1979 last: Int
1980 ): IdentityConnection!
1981
1982 """The participants of the bug. Participants are Identity that have created or
1983 added a comment on the bug."""
1984 participants(
1985 """Returns the elements in the list that come after the specified cursor."""
1986 after: String
1987 """Returns the elements in the list that come before the specified cursor."""
1988 before: String
1989 """Returns the first _n_ elements from the list."""
1990 first: Int
1991 """Returns the last _n_ elements from the list."""
1992 last: Int
1993 ): IdentityConnection!
1994
1995 comments(
1996 """Returns the elements in the list that come after the specified cursor."""
1997 after: String
1998 """Returns the elements in the list that come before the specified cursor."""
1999 before: String
2000 """Returns the first _n_ elements from the list."""
2001 first: Int
2002 """Returns the last _n_ elements from the list."""
2003 last: Int
2004 ): BugCommentConnection!
2005
2006 timeline(
2007 """Returns the elements in the list that come after the specified cursor."""
2008 after: String
2009 """Returns the elements in the list that come before the specified cursor."""
2010 before: String
2011 """Returns the first _n_ elements from the list."""
2012 first: Int
2013 """Returns the last _n_ elements from the list."""
2014 last: Int
2015 ): BugTimelineItemConnection!
2016
2017 operations(
2018 """Returns the elements in the list that come after the specified cursor."""
2019 after: String
2020 """Returns the elements in the list that come before the specified cursor."""
2021 before: String
2022 """Returns the first _n_ elements from the list."""
2023 first: Int
2024 """Returns the last _n_ elements from the list."""
2025 last: Int
2026 ): OperationConnection!
2027}
2028
2029"""The connection type for Bug."""
2030type BugConnection {
2031 """A list of edges."""
2032 edges: [BugEdge!]!
2033 nodes: [Bug!]!
2034 """Information to aid in pagination."""
2035 pageInfo: PageInfo!
2036 """Identifies the total count of items in the connection."""
2037 totalCount: Int!
2038}
2039
2040"""An edge in a connection."""
2041type BugEdge {
2042 """A cursor for use in pagination."""
2043 cursor: String!
2044 """The item at the end of the edge."""
2045 node: Bug!
2046}
2047`, BuiltIn: false},
2048 {Name: "../schema/bug_comment.graphql", Input: `"""Represents a comment on a bug."""
2049type BugComment implements Authored
2050@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
2051 id: CombinedId! @goField(name: "CombinedId")
2052
2053 """The author of this comment."""
2054 author: Identity!
2055
2056 """The message of this comment."""
2057 message: String!
2058
2059 """All media's hash referenced in this comment"""
2060 files: [Hash!]!
2061}
2062
2063type BugCommentConnection {
2064 edges: [BugCommentEdge!]!
2065 nodes: [BugComment!]!
2066 pageInfo: PageInfo!
2067 totalCount: Int!
2068}
2069
2070type BugCommentEdge {
2071 cursor: String!
2072 node: BugComment!
2073}
2074`, BuiltIn: false},
2075 {Name: "../schema/bug_mutations.graphql", Input: `extend type Mutation {
2076 """Create a new bug"""
2077 bugCreate(input: BugCreateInput!): BugCreatePayload!
2078 """Add a new comment to a bug"""
2079 bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
2080 """Add a new comment to a bug and close it"""
2081 bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
2082 """Add a new comment to a bug and reopen it"""
2083 bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
2084 """Change a comment of a bug"""
2085 bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
2086 """Add or remove a set of label on a bug"""
2087 bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
2088 """Change a bug's status to open"""
2089 bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
2090 """Change a bug's status to closed"""
2091 bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
2092 """Change a bug's title"""
2093 bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
2094}
2095
2096input BugCreateInput {
2097 """A unique identifier for the client performing the mutation."""
2098 clientMutationId: String
2099 """The name of the repository. If not set, the default repository is used."""
2100 repoRef: String
2101 """The title of the new bug."""
2102 title: String!
2103 """The first message of the new bug."""
2104 message: String!
2105 """The collection of file's hash required for the first message."""
2106 files: [Hash!]
2107}
2108
2109type BugCreatePayload {
2110 """A unique identifier for the client performing the mutation."""
2111 clientMutationId: String
2112 """The created bug."""
2113 bug: Bug!
2114 """The resulting operation."""
2115 operation: BugCreateOperation!
2116}
2117
2118input BugAddCommentInput {
2119 """A unique identifier for the client performing the mutation."""
2120 clientMutationId: String
2121 """The name of the repository. If not set, the default repository is used."""
2122 repoRef: String
2123 """The bug ID's prefix."""
2124 prefix: String!
2125 """The message to be added to the bug."""
2126 message: String!
2127 """The collection of file's hash required for the first message."""
2128 files: [Hash!]
2129}
2130
2131type BugAddCommentPayload {
2132 """A unique identifier for the client performing the mutation."""
2133 clientMutationId: String
2134 """The affected bug."""
2135 bug: Bug!
2136 """The resulting operation."""
2137 operation: BugAddCommentOperation!
2138}
2139
2140input BugAddCommentAndCloseInput {
2141 """A unique identifier for the client performing the mutation."""
2142 clientMutationId: String
2143 """The name of the repository. If not set, the default repository is used."""
2144 repoRef: String
2145 """The bug ID's prefix."""
2146 prefix: String!
2147 """The message to be added to the bug."""
2148 message: String!
2149 """The collection of file's hash required for the first message."""
2150 files: [Hash!]
2151}
2152
2153type BugAddCommentAndClosePayload {
2154 """A unique identifier for the client performing the mutation."""
2155 clientMutationId: String
2156 """The affected bug."""
2157 bug: Bug!
2158 """The resulting AddComment operation."""
2159 commentOperation: BugAddCommentOperation!
2160 """The resulting SetStatusOperation."""
2161 statusOperation: BugSetStatusOperation!
2162}
2163
2164input BugAddCommentAndReopenInput {
2165 """A unique identifier for the client performing the mutation."""
2166 clientMutationId: String
2167 """The name of the repository. If not set, the default repository is used."""
2168 repoRef: String
2169 """The bug ID's prefix."""
2170 prefix: String!
2171 """The message to be added to the bug."""
2172 message: String!
2173 """The collection of file's hash required for the first message."""
2174 files: [Hash!]
2175}
2176
2177type BugAddCommentAndReopenPayload {
2178 """A unique identifier for the client performing the mutation."""
2179 clientMutationId: String
2180 """The affected bug."""
2181 bug: Bug!
2182 """The resulting AddComment operation."""
2183 commentOperation: BugAddCommentOperation!
2184 """The resulting SetStatusOperation."""
2185 statusOperation: BugSetStatusOperation!
2186}
2187
2188input BugEditCommentInput {
2189 """A unique identifier for the client performing the mutation."""
2190 clientMutationId: String
2191 """The name of the repository. If not set, the default repository is used."""
2192 repoRef: String
2193 """A prefix of the CombinedId of the comment to be changed."""
2194 targetPrefix: String!
2195 """The new message to be set."""
2196 message: String!
2197 """The collection of file's hash required for the first message."""
2198 files: [Hash!]
2199}
2200
2201type BugEditCommentPayload {
2202 """A unique identifier for the client performing the mutation."""
2203 clientMutationId: String
2204 """The affected bug."""
2205 bug: Bug!
2206 """The resulting operation."""
2207 operation: BugEditCommentOperation!
2208}
2209
2210input BugChangeLabelInput {
2211 """A unique identifier for the client performing the mutation."""
2212 clientMutationId: String
2213 """The name of the repository. If not set, the default repository is used."""
2214 repoRef: String
2215 """The bug ID's prefix."""
2216 prefix: String!
2217 """The list of label to add."""
2218 added: [String!]
2219 """The list of label to remove."""
2220 Removed: [String!]
2221}
2222
2223type BugChangeLabelPayload {
2224 """A unique identifier for the client performing the mutation."""
2225 clientMutationId: String
2226 """The affected bug."""
2227 bug: Bug!
2228 """The resulting operation."""
2229 operation: BugLabelChangeOperation!
2230 """The effect each source label had."""
2231 results: [LabelChangeResult]!
2232}
2233
2234input BugStatusOpenInput {
2235 """A unique identifier for the client performing the mutation."""
2236 clientMutationId: String
2237 """The name of the repository. If not set, the default repository is used."""
2238 repoRef: String
2239 """The bug ID's prefix."""
2240 prefix: String!
2241}
2242
2243type BugStatusOpenPayload {
2244 """A unique identifier for the client performing the mutation."""
2245 clientMutationId: String
2246 """The affected bug."""
2247 bug: Bug!
2248 """The resulting operation."""
2249 operation: BugSetStatusOperation!
2250}
2251
2252input BugStatusCloseInput {
2253 """A unique identifier for the client performing the mutation."""
2254 clientMutationId: String
2255 """The name of the repository. If not set, the default repository is used."""
2256 repoRef: String
2257 """The bug ID's prefix."""
2258 prefix: String!
2259}
2260
2261type BugStatusClosePayload {
2262 """A unique identifier for the client performing the mutation."""
2263 clientMutationId: String
2264 """The affected bug."""
2265 bug: Bug!
2266 """The resulting operation."""
2267 operation: BugSetStatusOperation!
2268}
2269
2270input BugSetTitleInput {
2271 """A unique identifier for the client performing the mutation."""
2272 clientMutationId: String
2273 """The name of the repository. If not set, the default repository is used."""
2274 repoRef: String
2275 """The bug ID's prefix."""
2276 prefix: String!
2277 """The new title."""
2278 title: String!
2279}
2280
2281type BugSetTitlePayload {
2282 """A unique identifier for the client performing the mutation."""
2283 clientMutationId: String
2284 """The affected bug."""
2285 bug: Bug!
2286 """The resulting operation"""
2287 operation: BugSetTitleOperation!
2288}
2289`, BuiltIn: false},
2290 {Name: "../schema/bug_operations.graphql", Input: `type BugCreateOperation implements Operation & Authored
2291@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
2292 """The identifier of the operation"""
2293 id: ID!
2294 """The author of this object."""
2295 author: Identity!
2296 """The datetime when this operation was issued."""
2297 date: Time! @goField(name: "Time")
2298
2299 title: String!
2300 message: String!
2301 files: [Hash!]!
2302}
2303
2304type BugSetTitleOperation implements Operation & Authored
2305@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
2306 """The identifier of the operation"""
2307 id: ID!
2308 """The author of this object."""
2309 author: Identity!
2310 """The datetime when this operation was issued."""
2311 date: Time! @goField(name: "Time")
2312
2313 title: String!
2314 was: String!
2315}
2316
2317type BugAddCommentOperation implements Operation & Authored
2318@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
2319 """The identifier of the operation"""
2320 id: ID!
2321 """The author of this object."""
2322 author: Identity!
2323 """The datetime when this operation was issued."""
2324 date: Time! @goField(name: "Time")
2325
2326 message: String!
2327 files: [Hash!]!
2328}
2329
2330type BugEditCommentOperation implements Operation & Authored
2331@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
2332 """The identifier of the operation"""
2333 id: ID!
2334 """The author of this object."""
2335 author: Identity!
2336 """The datetime when this operation was issued."""
2337 date: Time! @goField(name: "Time")
2338
2339 target: String!
2340 message: String!
2341 files: [Hash!]!
2342}
2343
2344type BugSetStatusOperation implements Operation & Authored
2345@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
2346 """The identifier of the operation"""
2347 id: ID!
2348 """The author of this object."""
2349 author: Identity!
2350 """The datetime when this operation was issued."""
2351 date: Time! @goField(name: "Time")
2352
2353 status: Status!
2354}
2355
2356type BugLabelChangeOperation implements Operation & Authored
2357@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
2358 """The identifier of the operation"""
2359 id: ID!
2360 """The author of this object."""
2361 author: Identity!
2362 """The datetime when this operation was issued."""
2363 date: Time! @goField(name: "Time")
2364
2365 added: [Label!]!
2366 removed: [Label!]!
2367}
2368`, BuiltIn: false},
2369 {Name: "../schema/bug_timeline.graphql", Input: `"""An item in the timeline of bug events"""
2370interface BugTimelineItem
2371@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
2372 """The identifier of the source operation"""
2373 id: CombinedId!
2374}
2375
2376"""CommentHistoryStep hold one version of a message in the history"""
2377type BugCommentHistoryStep
2378@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
2379 message: String!
2380 date: Time!
2381}
2382
2383# Connection
2384
2385"""The connection type for TimelineItem"""
2386type BugTimelineItemConnection {
2387 edges: [BugTimelineItemEdge!]!
2388 nodes: [BugTimelineItem!]!
2389 pageInfo: PageInfo!
2390 totalCount: Int!
2391}
2392
2393"""Represent a TimelineItem"""
2394type BugTimelineItemEdge {
2395 cursor: String!
2396 node: BugTimelineItem!
2397}
2398
2399# Items
2400
2401"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
2402type BugCreateTimelineItem implements BugTimelineItem & Authored
2403@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
2404 """The identifier of the source operation"""
2405 id: CombinedId! @goField(name: "CombinedId")
2406 author: Identity!
2407 message: String!
2408 messageIsEmpty: Boolean!
2409 files: [Hash!]!
2410 createdAt: Time!
2411 lastEdit: Time!
2412 edited: Boolean!
2413 history: [BugCommentHistoryStep!]!
2414}
2415
2416"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
2417type BugAddCommentTimelineItem implements BugTimelineItem & Authored
2418@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
2419 """The identifier of the source operation"""
2420 id: CombinedId! @goField(name: "CombinedId")
2421 author: Identity!
2422 message: String!
2423 messageIsEmpty: Boolean!
2424 files: [Hash!]!
2425 createdAt: Time!
2426 lastEdit: Time!
2427 edited: Boolean!
2428 history: [BugCommentHistoryStep!]!
2429}
2430
2431"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
2432type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
2433@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
2434 """The identifier of the source operation"""
2435 id: CombinedId! @goField(name: "CombinedId")
2436 author: Identity!
2437 date: Time!
2438 added: [Label!]!
2439 removed: [Label!]!
2440}
2441
2442"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
2443type BugSetStatusTimelineItem implements BugTimelineItem & Authored
2444@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
2445 """The identifier of the source operation"""
2446 id: CombinedId! @goField(name: "CombinedId")
2447 author: Identity!
2448 date: Time!
2449 status: Status!
2450}
2451
2452"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
2453type BugSetTitleTimelineItem implements BugTimelineItem & Authored
2454@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
2455 """The identifier of the source operation"""
2456 id: CombinedId! @goField(name: "CombinedId")
2457 author: Identity!
2458 date: Time!
2459 title: String!
2460 was: String!
2461}
2462`, BuiltIn: false},
2463 {Name: "../schema/directives.graphql", Input: `# Below are directives defined by gqlgen, see https://gqlgen.com/config/
2464
2465directive @goModel(
2466 model: String
2467 models: [String!]
2468 forceGenerate: Boolean
2469) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
2470
2471directive @goField(
2472 forceResolver: Boolean
2473 name: String
2474 omittable: Boolean
2475) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2476
2477directive @goTag(
2478 key: String!
2479 value: String
2480) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
2481`, BuiltIn: false},
2482 {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
2483type Identity {
2484 """The identifier for this identity"""
2485 id: ID!
2486 """The human version (truncated) identifier for this identity"""
2487 humanId: String!
2488 """The name of the person, if known."""
2489 name: String
2490 """The email of the person, if known."""
2491 email: String
2492 """The login of the person, if known."""
2493 login: String
2494 """A non-empty string to display, representing the identity, based on the non-empty values."""
2495 displayName: String!
2496 """An url to an avatar"""
2497 avatarUrl: String
2498 """isProtected is true if the chain of git commits started to be signed.
2499 If that's the case, only signed commit with a valid key for this identity can be added."""
2500 isProtected: Boolean!
2501}
2502
2503type IdentityConnection {
2504 edges: [IdentityEdge!]!
2505 nodes: [Identity!]!
2506 pageInfo: PageInfo!
2507 totalCount: Int!
2508}
2509
2510type IdentityEdge {
2511 cursor: String!
2512 node: Identity!
2513}
2514`, BuiltIn: false},
2515 {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
2516type Label {
2517 """The name of the label."""
2518 name: String!
2519 """Color of the label."""
2520 color: Color!
2521}
2522
2523type LabelConnection {
2524 edges: [LabelEdge!]!
2525 nodes: [Label!]!
2526 pageInfo: PageInfo!
2527 totalCount: Int!
2528}
2529
2530type LabelEdge {
2531 cursor: String!
2532 node: Label!
2533}
2534
2535enum LabelChangeStatus {
2536 ADDED
2537 REMOVED
2538 DUPLICATE_IN_OP
2539 ALREADY_SET
2540 DOESNT_EXIST
2541}
2542
2543type LabelChangeResult {
2544 """The source label."""
2545 label: Label!
2546 """The effect this label had."""
2547 status: LabelChangeStatus!
2548}
2549`, BuiltIn: false},
2550 {Name: "../schema/operation.graphql", Input: `"""An operation applied to an entity."""
2551interface Operation {
2552 """The identifier of the operation"""
2553 id: ID!
2554 """The operations author."""
2555 author: Identity!
2556 """The datetime when this operation was issued."""
2557 date: Time! @goField(name: "Time")
2558}
2559
2560# Connection
2561
2562"""The connection type for an Operation"""
2563type OperationConnection {
2564 edges: [OperationEdge!]!
2565 nodes: [Operation!]!
2566 pageInfo: PageInfo!
2567 totalCount: Int!
2568}
2569
2570"""Represent an Operation"""
2571type OperationEdge {
2572 cursor: String!
2573 node: Operation!
2574}
2575`, BuiltIn: false},
2576 {Name: "../schema/repository.graphql", Input: `type Repository {
2577 """The name of the repository"""
2578 name: String
2579
2580 """All the bugs"""
2581 allBugs(
2582 """Returns the elements in the list that come after the specified cursor."""
2583 after: String
2584 """Returns the elements in the list that come before the specified cursor."""
2585 before: String
2586 """Returns the first _n_ elements from the list."""
2587 first: Int
2588 """Returns the last _n_ elements from the list."""
2589 last: Int
2590 """A query to select and order bugs."""
2591 query: String
2592 ): BugConnection!
2593
2594 bug(prefix: String!): Bug
2595
2596 """All the identities"""
2597 allIdentities(
2598 """Returns the elements in the list that come after the specified cursor."""
2599 after: String
2600 """Returns the elements in the list that come before the specified cursor."""
2601 before: String
2602 """Returns the first _n_ elements from the list."""
2603 first: Int
2604 """Returns the last _n_ elements from the list."""
2605 last: Int
2606 ): IdentityConnection!
2607
2608 identity(prefix: String!): Identity
2609
2610 """The identity created or selected by the user as its own"""
2611 userIdentity: Identity
2612
2613 """List of valid labels."""
2614 validLabels(
2615 """Returns the elements in the list that come after the specified cursor."""
2616 after: String
2617 """Returns the elements in the list that come before the specified cursor."""
2618 before: String
2619 """Returns the first _n_ elements from the list."""
2620 first: Int
2621 """Returns the last _n_ elements from the list."""
2622 last: Int
2623 ): LabelConnection!
2624}
2625`, BuiltIn: false},
2626 {Name: "../schema/root.graphql", Input: `type Query {
2627 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
2628 repository(ref: String): Repository
2629}
2630
2631type Mutation # See each entity mutations
2632`, BuiltIn: false},
2633 {Name: "../schema/status.graphql", Input: `enum Status {
2634 OPEN
2635 CLOSED
2636}
2637`, BuiltIn: false},
2638 {Name: "../schema/types.graphql", Input: `scalar CombinedId
2639scalar Time
2640scalar Hash
2641
2642"""Defines a color by red, green and blue components."""
2643type Color {
2644 """Red component of the color."""
2645 R: Int!
2646 """Green component of the color."""
2647 G: Int!
2648 """Blue component of the color."""
2649 B: Int!
2650}
2651
2652"""Information about pagination in a connection."""
2653type PageInfo {
2654 """When paginating forwards, are there more items?"""
2655 hasNextPage: Boolean!
2656 """When paginating backwards, are there more items?"""
2657 hasPreviousPage: Boolean!
2658 """When paginating backwards, the cursor to continue."""
2659 startCursor: String!
2660 """When paginating forwards, the cursor to continue."""
2661 endCursor: String!
2662}
2663
2664"""An object that has an author."""
2665interface Authored {
2666 """The author of this object."""
2667 author: Identity!
2668}
2669`, BuiltIn: false},
2670}
2671var parsedSchema = gqlparser.MustLoadSchema(sources...)