aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
Diffstat (limited to 'bug')
-rw-r--r--bug/op_add_comment.go6
-rw-r--r--bug/op_create.go6
-rw-r--r--bug/op_label_change.go6
-rw-r--r--bug/op_set_status.go6
-rw-r--r--bug/op_set_title.go6
5 files changed, 15 insertions, 15 deletions
diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go
index 59ea08e0..095b7f43 100644
--- a/bug/op_add_comment.go
+++ b/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() {}
diff --git a/bug/op_create.go b/bug/op_create.go
index e0e8154b..e52e6254 100644
--- a/bug/op_create.go
+++ b/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() {}
diff --git a/bug/op_label_change.go b/bug/op_label_change.go
index c5b3765d..4c019d67 100644
--- a/bug/op_label_change.go
+++ b/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() {}
diff --git a/bug/op_set_status.go b/bug/op_set_status.go
index de7b8526..52ba8135 100644
--- a/bug/op_set_status.go
+++ b/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() {}
diff --git a/bug/op_set_title.go b/bug/op_set_title.go
index dce06014..31113943 100644
--- a/bug/op_set_title.go
+++ b/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() {}