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