minor cleanup

Michael Muré created

Change summary

bug/op_add_comment.go  | 6 +++---
bug/op_create.go       | 6 +++---
bug/op_label_change.go | 6 +++---
bug/op_set_status.go   | 6 +++---
bug/op_set_title.go    | 6 +++---
5 files changed, 15 insertions(+), 15 deletions(-)

Detailed changes

bug/op_add_comment.go 🔗

@@ -136,6 +136,9 @@ type AddCommentTimelineItem struct {
 	CommentTimelineItem
 }
 
+// Sign post method for gqlgen
+func (a *AddCommentTimelineItem) IsAuthored() {}
+
 // Convenience function to apply the operation
 func AddComment(b Interface, author identity.Interface, unixTime int64, message string) (*AddCommentOperation, error) {
 	return AddCommentWithFiles(b, author, unixTime, message, nil)
@@ -149,6 +152,3 @@ func AddCommentWithFiles(b Interface, author identity.Interface, unixTime int64,
 	b.Append(addCommentOp)
 	return addCommentOp, nil
 }
-
-// Sign post method for gqlgen
-func (item *AddCommentTimelineItem) IsAuthored() {}

bug/op_create.go 🔗

@@ -156,6 +156,9 @@ type CreateTimelineItem struct {
 	CommentTimelineItem
 }
 
+// Sign post method for gqlgen
+func (c *CreateTimelineItem) IsAuthored() {}
+
 // Convenience function to apply the operation
 func Create(author identity.Interface, unixTime int64, title, message string) (*Bug, *CreateOperation, error) {
 	return CreateWithFiles(author, unixTime, title, message, nil)
@@ -173,6 +176,3 @@ func CreateWithFiles(author identity.Interface, unixTime int64, title, message s
 
 	return newBug, createOp, nil
 }
-
-// Sign post method for gqlgen
-func (item *CreateTimelineItem) IsAuthored() {}

bug/op_label_change.go 🔗

@@ -174,6 +174,9 @@ func (l LabelChangeTimelineItem) Hash() git.Hash {
 	return l.hash
 }
 
+// Sign post method for gqlgen
+func (l *LabelChangeTimelineItem) IsAuthored() {}
+
 // ChangeLabels is a convenience function to apply the operation
 func ChangeLabels(b Interface, author identity.Interface, unixTime int64, add, remove []string) ([]LabelChangeResult, *LabelChangeOperation, error) {
 	var added, removed []Label
@@ -303,6 +306,3 @@ func (l LabelChangeResult) String() string {
 		panic(fmt.Sprintf("unknown label change status %v", l.Status))
 	}
 }
-
-// Sign post method for gqlgen
-func (item *LabelChangeTimelineItem) IsAuthored() {}

bug/op_set_status.go 🔗

@@ -124,6 +124,9 @@ func (s SetStatusTimelineItem) Hash() git.Hash {
 	return s.hash
 }
 
+// Sign post method for gqlgen
+func (s *SetStatusTimelineItem) IsAuthored() {}
+
 // Convenience function to apply the operation
 func Open(b Interface, author identity.Interface, unixTime int64) (*SetStatusOperation, error) {
 	op := NewSetStatusOp(author, unixTime, OpenStatus)
@@ -143,6 +146,3 @@ func Close(b Interface, author identity.Interface, unixTime int64) (*SetStatusOp
 	b.Append(op)
 	return op, nil
 }
-
-// Sign post method for gqlgen
-func (item *SetStatusTimelineItem) IsAuthored() {}

bug/op_set_title.go 🔗

@@ -150,6 +150,9 @@ func (s SetTitleTimelineItem) Hash() git.Hash {
 	return s.hash
 }
 
+// Sign post method for gqlgen
+func (s *SetTitleTimelineItem) IsAuthored() {}
+
 // Convenience function to apply the operation
 func SetTitle(b Interface, author identity.Interface, unixTime int64, title string) (*SetTitleOperation, error) {
 	it := NewOperationIterator(b)
@@ -178,6 +181,3 @@ func SetTitle(b Interface, author identity.Interface, unixTime int64, title stri
 	b.Append(setTitleOp)
 	return setTitleOp, nil
 }
-
-// Sign post method for gqlgen
-func (item *SetTitleTimelineItem) IsAuthored() {}